help: Get access to generated OgImage path

📚 What are you trying to do?
Hello,
I'm looking for a way to get the path to an ogImage without actually defining it as the ogImage of the current page. The objective is to provide the user a "screenshot" of a component in full static.
Something like (pseudo-code) :
<template>

</template>

Thanks. 🤗
🔍 What have you tried?
No response
ℹ Additional context
No response

Hi, thanks for the issue.
I may look to add a composable as you've described or alternatively just return the meta data from the defineOgImage composable if more people need it.
For the time being you can use this code.
export function getOgImagePath(pagePath?: string, _options?: Partial<Pick<OgImageOptions, 'extension'>>) {
  const runtimeConfig = useRuntimeConfig()
  const { baseURL } = runtimeConfig.app
  const route = useRoute()
  const options = defu(_options, runtimeConfig['nuxt-og-image'].defaults)
  return joinURL('/', baseURL, `__og-image__/${import.meta.prerender ? 'static' : 'image'}`, pagePath || route.path, `og.${options.extension}`)
}

<template>

</template>

export function getOgImagePath(pagePath?: string, _options?: Partial<Pick<OgImageOptions, 'extension'>>) {
  const runtimeConfig = useRuntimeConfig()
  const { baseURL } = runtimeConfig.app
  const route = useRoute()
  const options = defu(_options, runtimeConfig['nuxt-og-image'].defaults)
  return joinURL('/', baseURL, `__og-image__/${import.meta.prerender ? 'static' : 'image'}`, pagePath || route.path, `og.${options.extension}`)
}

@harlan-zw
Your reply is very helpful to me. Thank you very much.
I have a website that has many paths that need a unified style.
How can I change the __og-image__ path?
eg:
`/${import.meta.prerender ? 'static' : 'image'}`, pagePath || route.path, `og.${options.extension}`


[Bug] l'esercizio "it/c/variables/15.md" ha un problema

The template has problem with space and formatting

@all-contributors please add @pampua84 for bug


Packer Build Task – For User provided template Artifacts referenced in the template File are not available

Packer Build Task – For User provided template Artifacts referenced in the template File are not available. This is because template file is copied to temp folder, however the associated artifacts are not.
Steps to replicate

Use a User provided template which references other files or folder like a file provisioner and run the build or release. files / folders could be referenced in the packer template as follows
{
    "type": "ansible-local",
    "playbook_file": "{{ template_dir }}/phpapp-packer-ansible-provisioner.yml"
}

OR
 {
    "type": "file",
    "source": "{{ template_dir }}/data.php",
    "destination": "/tmp/data.php"
  },

Build Will fail and throw an error

Output from VSTS log

template file getting copied and not other artifacts
Copying original template from /opt/vsts/work/r1/a/RockM-Dashboard-Build/repofiles/build-files/packer-files/phpapp-packerpreviewtask.json to temporary location /opt/vsts/work/_temp/1500914709724
 2017-07-24T16:45:10.6603660Z Copied template file to a temporary location: /opt/vsts/work/_temp/1500914709724"

Error being thrown
 Bad source '/opt/vsts/work/_temp/1500914709724/../../data.php'

Sample template
{
"variables": {
 "tenant_id": "{{env `ARM_TENANT_ID`}}",
 "client_id": "{{env `ARM_CLIENT_ID`}}",
 "client_secret": "{{env `ARM_CLIENT_SECRET`}}",
 "resource_group": "{{env `ARM_RESOURCE_GROUP`}}",
 "storage_account": "{{env `ARM_STORAGE_ACCOUNT`}}",
 "subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}"
},
"builders": [{
 "type": "azure-arm",

 "client_id": "{{user `client_id`}}",
 "client_secret": "{{user `client_secret`}}",
 "resource_group_name": "{{user `resource_group`}}",
 "storage_account": "{{user `storage_account`}}",
 "subscription_id": "{{user `subscription_id`}}",
 "tenant_id": "{{user `tenant_id`}}",

 "capture_container_name": "images",
 "capture_name_prefix": "packer",

 "os_type": "Linux",
 "image_publisher": "Canonical",
 "image_offer": "UbuntuServer",
 "image_sku": "16.04.0-LTS",

 "location": "West US",
 "vm_size": "Standard_A2"
}],
"provisioners": [

{
 "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
 "inline": [
   "apt-get update",
   "apt-get upgrade -y",
   "apt-get install ansible -y"

 ],
 "inline_shebang": "/bin/sh -x",
 "type": "shell"
},
 {
   "type": "file",
   "source": "{{ template_dir }}/../../data.php",
   "destination": "/tmp/data.php"
 },
 {
   "type": "file",
   "source": "{{ template_dir }}/../../drill.html",
   "destination": "/tmp/drill.html"
 },
 {
   "type": "file",
   "source": "{{ template_dir }}/../../index.html",
   "destination": "/tmp/index.html"
 },
 {
   "type": "file",
   "source": "{{ template_dir }}/../../dist",
   "destination": "/tmp/dist"
 },

{
   "type": "ansible-local",
   "playbook_file": "{{ template_dir }}/phpapp-packer-ansible-provisioner.yml"
},
{
 "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
 "inline": [
   "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
 ],
 "inline_shebang": "/bin/sh -x",
 "type": "shell"
}
]

}

Agreed, this prevents the use of any custom provisioners or script files with the deployment. As teh temp location is created by the packer step I can't see anyway to work around this by copying files to this location with a build step either.

@maniSbindra As per your mail, are you planning to raise a PR for this? Otherwise let me know and I will work on this next week.

@bishal-pdMSFT  Have raised PR #4887. Request you to please review. Thanks.


299 nf ds id and title

Codecov Report

Merging #300 into master will increase coverage by 0.04%.
The diff coverage is 78.57%.

@@            Coverage Diff             @@
##           master     #300      +/-   ##
==========================================
+ Coverage   71.57%   71.62%   +0.04%
==========================================
  Files          70       70
  Lines        9926     9945      +19
==========================================
+ Hits         7105     7123      +18
- Misses       2821     2822       +1

Impacted Files
Coverage Δ

cate/core/__init__.py
100% <100%> (ø)
:arrow_up:

cate/webapi/websocket.py
26.21% <16.66%> (ø)
:arrow_up:

cate/cli/main.py
71% <27.27%> (+0.04%)
:arrow_up:

cate/ds/esa_cci_ftp.py
46.1% <76.92%> (+0.5%)
:arrow_up:

cate/ds/esa_cci_odp.py
52.22% <83.33%> (+0.15%)
:arrow_up:

cate/core/ds.py
74.09% <89.47%> (+1.31%)
:arrow_up:

cate/ds/local.py
87.99% <89.74%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2ba04a...13cb0f4. Read the comment docs.


dsub with a VPC

Is it possible to use dsub with a VPC?   I can't seem to find a way to specify network/subnet compute resources to pass along to Google pipelines (which in itself is problematic to specify...).

No. Pipelines API v1 doesn't allow you to specify a network.
Pipelines API v2 does allow you to specify this.
Coming soon.

Also, it would be great if v2 version allows VM without external IPs. We have a VPC with VPN setup in which we would like to analyze controlled access data.

Good point...as do we.
On Mon, Jun 25, 2018, 2:42 PM snamburi3<EMAIL_ADDRESS>wrote:

Also, it would be great if v2 version allows VM without external IPs. We
have a VPC with VPN setup in which we would like to analyze controlled
access data.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DataBiosphere/dsub/issues/111#issuecomment-400105264,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKBQyNK6BB8yXoSbDWI7KgBBymGXbhmmks5uAVk1gaJpZM4U2iTa
.

Please take a look at the discussion of Pipelines v2 support in #114.

Noticed that and yes it checks out ok.  I know many users who will be happy.
On Mon, Aug 27, 2018 at 2:23 PM Matt Bookman<EMAIL_ADDRESS>wrote:

Hi @slagelwa https://github.com/slagelwa!
This should now be available in Release 0.1.10
https://github.com/DataBiosphere/dsub/releases/tag/v0.1.10, which
includes commit 0e06a3b
https://github.com/DataBiosphere/dsub/commit/0e06a3b912c1c4b3b23df58829de7be9788d3879
.
Let us know how it goes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DataBiosphere/dsub/issues/111#issuecomment-416373628,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKBQyAL_OPjn6jGUEB2pnLrM-vwh9Tkaks5uVGNmgaJpZM4U2iTa
.

Great. Thanks @slagelwa.


FYI: Retrying HTTP Requests

HTTP allows requests to be automatically retried under certain circumstances. This draft explores how this is implemented, requirements for similar functionality from other parts of the stack, and potential future improvements.
https://mnot.github.io/I-D/httpbis-retry/

Closing for now. If this actually ends up in a spec, we may reconsider.


docs: refactor content in channel section under event driven architecture

Description

Refactored grammar checks and typos under channel sections.

Related issue(s)
Fixes #712

/rtm


Add the aarch64 cloud image for tumbleweed

Don't need to use the old "JeOS" anymore.
And remove the references to closed issues.
Issue #2611

And remove the references to closed issues.

I wonder if Tumbleweed should be moved from experimental to the regular directory?


Removing deprecated TestRule in TestPipeline

addresses #30767
As the repository no longer supports junit 4 in favor of junit 5, the TestPipeline needed to be updated in order to remove the deprecated TestRule in favor of the extension interfaces BeforeEachCallback and AfterEachCallback. This essentially achieves the same purpose of running code before and after a test statement, but it then required some small tweaks to the code.
Note: I wasn't sure what error messages to use when checking for values that should almost always be set like the test method, test class, and current element.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[X] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[X] Update CHANGES.md with noteworthy changes.
[X] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

Hello @scott-strong
I'm exploring the possibility of using JUnit 5 (instead of 4) to test Apache Beam pipelines (https://github.com/apache/beam/issues/18733).
Just curious, why was this closed?

@myhau I think I had issues with some of the test pipelines, and I was able to fix my issue by including both junit4 and junit5 as dependencies in my repository (which is still not ideal).
I think the changes I made were valid, I just didn't feel strongly enough to continue pushing them through.


Add geop VM and sample service

Create temporary geop VM and test spray service to test endpoint integration.

I am in the process or trying to sort this out for MMW. Do not copy the existing MMW setup for this project (yet).

We were planning to build a barebones VM (without GeoTrellis) with a sample spray service that could be used for testing. What do you think?

On hold until we figure out the next steps for geop integration.

Based on today's discussion:

Create a test service on the existing app VM.

Uploading a layer should POST to this service.
Example request:
{
    "job_id": "...",
    "images": [
        { "uri": "...", "tile_path": "...", "thumb_small": "...", "thumb_large": "..." },
        ...
    ]
}

An endpoint to receive the current geoprocessing status should be created. It should accept POST requests in the following format:
{
    "job_id": "...",
    "status": "..."
}

Just for clarification, I believe tile_path, thumb_small and thumb_large are all "destination URIs" where we're asking the processing service to save the artifacts.

How should the geoprocessing service authenticate when posting status updates?

Since you need a valid Job ID (which we don't expose to the frontend) to use this endpoint, there's little harm in ignoring authentication for now. In the future, we could create a reserved "geoprocessing" user and use API authentication to make the endpoint secure.


Add bootstrap toggle checkbox through javascript

When i use  on jsp page.It shows button the way  it should be shown.But when i add it through javascript he it shows only a checkbox not the toggle button.What is the issue?

I seem to have the same problem. As a response to user input I create dynamic elements as html strings which I add with getelementbyId. e.g.:
strBeoord += '\n';
When i put  directly on my html page it works fine!

Sounds like a DOM-ready condition.
After you dynamically append to the DOM, you must 'attach' the listener to it.
Usually this is done by putting the listener at a higher level in source code, such as document, that exists at DOM-ready time.
ie,
$(document).on('load','.mycheckboxclass', {} ,function(e){
       $(this).bootstrapToggle();
});

Sounds like you need to use a delegated event for the init.  Anything added to the DOM after DOMready will need to be attached in this manner.
https://learn.jquery.com/events/event-delegation/

After adding the checkbox, use the following (you'll need to adjust the selector to select just the new checkbox you added though):
$('input:checkbox').bootstrapToggle();


Switch to peerDependencies and update dependencies

This way people can have their own version of angular and angular-formly and they wont be loading it into the browser twice.

Thanks @kentcdodds!


New Scenario

Hi there, I'm not a coder, I try to did my first sceario! Hope it will be fine, even if I couldn't link an image during the entrance!
Thanks
Fabio
Description of Problem or Question
https://github.com/flopez86/HolyMansionScenario
Valkyrie Version
Attach Save, Quest or Scenario
Log File:
%LOCALAPPDATA%Low\NA\Valkyrie\output_log.txt
Saves:
%appdata%/Valkyrie/MoM/Save
%appdata%/Valkyrie/D2E/Save
Quest:
%appdata%/Valkyrie/D2E/Editor
Scenario:
%appdata%/Valkyrie/MoM/Editor

Hi @flopez86,
I can't publish your scenario as it is, unfortunatly the scenario name is the default "EditorSenario1" which is in use.

You will need to change the name of this (cannot include spaces).
The easiest way to do this is open the Valkyrie Editor folder:
%appdata%\Valkyrie\MoM\Editor\
In there you'll see the scenario folder "EditorScenario1" or "Scenario1". Just rename that folder to something else without spaces.
Then open the scenario in Valkyrie Editor and repackage it. You'll notice the folder name, .ini and .valkyrie files will have a new name. Remove this version from your GitHub and copy in the new one, then let me know :)

Hi,
thanks for your kind reply. It's my first project =)!
I found the folder now I try to correct everything!
Thanks
Fabio

No worries, shout if you need some help :)

So, I should have changed it,
I'm not sure if I have to post this link
https://github.com/flopez86/HolyMansionScenario
Or the other one
https://github.com/flopez86/HolyMansionScenario/tree/master/HolyMansion
Hope this fine it worked well!
Thanks again =)
If this time works, I'll ask many questions to improve
Fabio

Thats great, thanks @flopez86 !
I've added this to the manifest, you should see it in the lists within the hour.
I'll also add it to the stats sheet when I get some time, its on the administration tab for now as a reminder to add fully.
I'll close this off for now, please feel free to post any questions or reponses on this issue if required.


Async data will not render

Hi,
Great package btw!
I'm having some issues with rendering when it comes to async data.
I'm trying to render the following:
const InfoDisplay = () => {
  const [data, setData] = useState({});

  useEffect(() => {
    async function fetchInfo() {
      const result = await axios
        .get(`${API_URI}/info`)
        .then((resp) => resp.data)
        .catch((err) => [{
          error: err.response,
        }]);

      setData(result);
    }

    fetchInfo();
  }, []);
  return (
    <>
      <TextLoop>
        {
          Object.keys(data).map((index) => {
            return <InfoDisplayItem key={index} data={data[index]} />
          })
        }
      </TextLoop>{" "}
    </>
  );
};

But nothing shows. However when I either remove the <TextLoop><TextLoop> or just use some of the examples given in the README I see stuff rendering. Any ideas why async data won't render?

Any luck on resolving this one?

@emilnewel I solved the problem with a simple conditional render. In other words, just checking that the array of children is not empty.

Thanks for replying @exsesx! I haven't had the chance to look into this yet @emilnewel, I'll probably do that over the weekend but for now you can use what @exsesx is suggesting.
This seems to be related with how the new child elements are added to the component but can't know for sure without digging in the code.

Thanks @exsesx !
This worked perfectly. 😄

@braposo Is there alternative solution except conditional render?
thanks.


zlib.error: Error -3 while decompressing data: incorrect header check

Hi, i am having a problem, maybe someone knows how to fix this:
Process FindObjectsWorker-28:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "git-dumper.py", line 108, in run
result = self.do_task(task, *self.args)
File "git-dumper.py", line 285, in do_task
obj_file = dulwich.objects.ShaFile.from_path(abspath)
File "/usr/local/lib/python3.6/dist-packages/dulwich/objects.py", line 401, in from_path
return cls.from_file(f)
File "/usr/local/lib/python3.6/dist-packages/dulwich/objects.py", line 407, in from_file
obj = cls._parse_file(f)
File "/usr/local/lib/python3.6/dist-packages/dulwich/objects.py", line 382, in _parse_file
obj._parse_object(map)
File "/usr/local/lib/python3.6/dist-packages/dulwich/objects.py", line 362, in _parse_object
self.set_raw_string(_decompress(raw))
File "/usr/local/lib/python3.6/dist-packages/dulwich/objects.py", line 84, in _decompress
dcomped = dcomp.decompress(string)
zlib.error: Error -3 while decompressing data: incorrect header check

Hi @Benjamin-beep,
Do you still have the issue?
Could you provide us a way to reproduce it?

I got the same error at
dcomped = dcomp.decompress(string)

This can be caused by a response with status code 200 but with not a binary content like a WAF response or another (stackpath, cloudflare).

@vzamanillo anyway around this ?

@vzamanillo anyway around this ?

No way :/, the one and only solution is passing the headers to request.

This is caused by sites returning error pages with a 200 status code (incorrect, but it happens a lot). Fixed in #13.

This should be fixed by 7da1861375efcc20c9f2b96a4bd6a7e71d160d64


New llama-factory code runs into batch["input_ids"] is None. The old version is ok.

Reminder

[X] I have read the README and searched the existing issues.

Reproduction
Traceback (most recent call last):
File "/root/LLaMA-Factory/src/train_bash.py", line 14, in
main()
File "/root/LLaMA-Factory/src/train_bash.py", line 5, in main
run_exp()
File "/root/LLaMA-Factory/src/llmtuner/train/tuner.py", line 31, in run_exp
run_pt(model_args, data_args, training_args, finetuning_args, callbacks)
File "/root/LLaMA-Factory/src/llmtuner/train/pt/workflow.py", line 47, in run_pt
train_result = trainer.train(resume_from_checkpoint=training_args.resume_from_checkpoint)
File "/root/anaconda3/envs/llama_factory/lib/python3.10/site-packages/transformers/trainer.py", line 1780, in train
return inner_training_loop(
File "/root/anaconda3/envs/llama_factory/lib/python3.10/site-packages/transformers/trainer.py", line 1843, in _inner_training_loop
num_train_tokens = self.num_tokens(train_dataloader) * args.num_train_epochs
File "/root/anaconda3/envs/llama_factory/lib/python3.10/site-packages/transformers/trainer.py", line 1360, in num_tokens
tokens = batch["input_ids"].numel()
TypeError: 'NoneType' object is not subscriptable
Expected behavior
No response
System Info
No response
Others
No response

please provide your training script for reproducing


Update Sample app to showcase the usage

Summary
Now that the Endatix platform can be installed via NuGet package, we need to add a sample that demonstrated how this is done.
Details

Create new sample in the Endatix repo to follow the installation guide at https://docs.endatix.com/docs/getting-started/installation
Main goal is to use NuGet packages instead of project references
Samples should be in the https://github.com/endatix/endatix/tree/main/samples folder. Suggested name "Endatix.Samples.SelfHosting" - but we can discuss. I am not 100% sold of the name

[!NOTE]
There is the https://github.com/endatix/endatix/tree/main/samples/Endatix.Samples.WebApp sample, but it shows other things like how to consume the API via custom API Client. Maybe ideal case will be to extract the API Client to a separate NuGet and use the Endatix.Samples.WebApp for this task, but we can always change samples in the name of better dev experience

Acceptance Criteria

Samples folder with a sample that follows the https://docs.endatix.com/docs/getting-started/installation guide
ReadMe in the repo to explain the purpose of the sample to the audience
ReadMe in the Samples folder to provide navigation overview of the current sample. We will extend later
Aggregate feedback for the team and share it - goal is to improve install experience

@orilux  - assigning to me to add description

@orilux  - this is ready for action. Assigning back to you! 🚗


game crash when scrubber paused and returning to menu

Using App.BackToMainMenu() crashes the game every time if the scrubber is paused, but if watching a replay and it's not paused, it works fine

Ahh, yeah. I wonder if that's a proc. I have a different way of dealing with it for exiting via more traditional ways (i.e., clicking 'exit' from menu)


Measure distances between two splines

Hi all,
first of all thanks for making this available, it looks very useful!
Is there functionality to measure the distance between two splines in splinebox / is there an easy way to implement this?
In particular, I would want to measure the minimal distance between the splines, but having other distance measures (e.g. percentiles in the distance integral) would also be of interest.
For some context, we are interested in measuring the distances between segmented objects. We are currently doing this using an euclidean distance transform in the pixel / voxel grid, which however can lead to inaccuracies due to incorrect boundary placement of the segmentation and discretization artifacts. An alternatively would be fitting a spline to each object (initializing it with the segmentation mask and then fitting to the local membrane, inspired by the active contour example) and then measuring the distance between the fitted splines.

Something like this should work if you have the coordinates for the two spline -
x_spline1 = np.array([x_coordinates of spline 1]) # shape: (N,)
x_spline2 = np.array([... spline 2]) # shape: (N,)
x_dist = x_spline1[:, None] - x_spline2[None, :]
similarly for y coordinate
y_dist = y_spline1[:,None] - y_spline2[None,:]
(Euclidean) distance
dist = np.sqrt(x_dist2+y_dist2) (N,N)
take any measure on it, for example the minimum
min_dist = np.min(dist)
the above matrices are skew symmetric. Can probably be made more efficient by just considering the upper or the lower triangle of them.
Sorry if my response was unwarranted/uninvited.

Hi Constantin,
Thanks a lot for your question!
Sorry we do not have a functionality to measure the distance between two splines, mostly because the library is (currently at least)  "spline-intrinsic" while that would require to be "spline-extrinsic". More precisely, the library implements spline curves as parametric objects and provides all sorts of operations in their own parametric space (including drawing itself), but does not implement operation between spline objects in the ambient space where they live - which is what you would need to be able to tell how far apart two of them are (since the very notion of distance here is related to the surrounding space, not the spline themselves). Does that make sense?
That said, it may be something we want to add at some point along with other extrinsic measurements.

Hi Constantin,
Thanks a lot for your question!
Sorry we do not have a functionality to measure the distance between two splines, mostly because the library is (currently at least)  "spline-intrinsic" while that would require to be "spline-extrinsic". More precisely, the library implements spline curves as parametric objects and provides all sorts of operations in their own parametric space (including drawing itself), but does not implement operation between spline objects in the ambient space where they live - which is what you would need to be able to tell how far apart two of them are (since the very notion of distance here is related to the surrounding space, not the spline themselves). Does that make sense?
That said, it may be something we want to add at some point along with other extrinsic measurements.

Hello @constantinpape ,
As @vuhlmann mentioned we don't have any functions that operate on multiple splines (yet).
However, I would be interested to implement it as an example for now.
If I understand correctly, you want a distance measurement with sub-pixel accuracy without limiting the minimization to discrete steps.
I think minimizing the distance as a function of the parameters of the two splines should work.
We might also be able to use a perpendicularity constraint.
Another possible approach could be to fit a level set to your masks or to initialize a level set based on a spline.

Thanks for the feedback, everyone.
@faymanns :

However, I would be interested to implement it as an example for now.

That would be great! I'd be happy to give this a try once it is there.

If I understand correctly, you want a distance measurement with sub-pixel accuracy without limiting the minimization to discrete steps.

Yes, exactly.
In the meantime, I will see if fitting splines to our segmented objects works as expected.

I have create a first draft for the example in 8ec82a8.
To see the plots you can have a look at this hidden build of the docs.

Thanks for the example @faymanns! This does exactly what I would need.
Unfortunately my active contours don't quite behave yet ;) :

I assume this is due to some coordinate system switch. I am busy with some other things now, but will come back to this as soon as I have time.
In any case, the distance measurement example works as expected!

Happy to hear that it is what you need, @constantinpape .
The objects you are trying to fit look pretty circular, I think an exponential spline with relatively few knots might work well.
Do you agree @vuhlmann?


[MAINT] - Drop Python 3.7

Action plan - drop 3.7 -> push to QHub beta and see how that works out
Originally posted by @trallard in https://github.com/Quansight/qhub/issues/1341#issuecomment-1164508381

Hi @peytondmurray, just a correction here. We really need to only drop python == 3.7 for the conda environments that use 'qhub-dask' everything else can still use the other versions of python. The installation of Nebari does not conflicts with the changes made on behalf of 'dask' and 'dask-gateway'.

@viniciusdc Yes, we don't strictly speaking need to drop 3.7 entirely - but end of life for 3.7 is rapidly approaching. Is now a good time to drop support across all nebari components?

Resolved to only update dask environments for now; fully dropping 3.7 for

documentation
JupyterLab
JupyterHub

will happen later.


initial commit

Description
Adding the "Mite" extension to manage mite time trackings.
Screencast
Since the data used is project-related and hence confidential, I cannot provide screenshots that wouldn't all be blurred out 😊
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

closing the pull request for now and trying to publish privately in an organization first.


Seeing issues after upgrading to 0.12.5

After upgrading this library to 0.12.5 we are unable to generate our schema provided through the django-spectacular library.
We are seeing this issue: 'list' object has no attribute 'items'

View of the stack showing the object that is expected to be a dict actually being a list.

Full stack trace:
Environment:

Request Method: GET
Request URL: http://localhost:8000/schema/

Django Version: 4.1.7
Python Version: 3.9.14

Traceback (most recent call last):
  File "/workspace/backend/.venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 56, in inner
    response = get_response(request)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/sentry_sdk/integrations/django/views.py", line 85, in sentry_wrapped_callback
    return callback(request, *args, **kwargs)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 55, in wrapped_view
    return view_func(*args, **kwargs)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/django/views/generic/base.py", line 103, in view
    return self.dispatch(request, *args, **kwargs)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/workspace/backend/.venv/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/drf_spectacular/views.py", line 82, in get
    return self._get_schema_response(request)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/drf_spectacular/views.py", line 90, in _get_schema_response
    data=generator.get_schema(request=request, public=self.serve_public),
  File "/workspace/backend/.venv/lib/python3.9/site-packages/drf_spectacular/generators.py", line 268, in get_schema
    paths=self.parse(request, public),
  File "/workspace/backend/.venv/lib/python3.9/site-packages/drf_spectacular/generators.py", line 239, in parse
    operation = view.schema.get_operation(
  File "/workspace/backend/.venv/lib/python3.9/site-packages/drf_spectacular/utils.py", line 364, in get_operation
    return super().get_operation(path, path_regex, path_prefix, method, registry)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/drf_spectacular/openapi.py", line 94, in get_operation
    operation['responses'] = self._get_response_bodies()
  File "/workspace/backend/.venv/lib/python3.9/site-packages/drf_standardized_errors/openapi.py", line 59, in _get_response_bodies
    serializer = self._get_error_response_serializer(status_code)
  File "/workspace/backend/.venv/lib/python3.9/site-packages/drf_standardized_errors/openapi.py", line 246, in _get_error_response_serializer
    return self._get_http400_serializer()
  File "/workspace/backend/.venv/lib/python3.9/site-packages/drf_standardized_errors/openapi.py", line 268, in _get_http400_serializer
    serializer = self._get_serializer_for_validation_error_response()
  File "/opt/project/backend/src/schema/openapi.py", line 37, in _get_serializer_for_validation_error_response
    return get_validation_error_serializer(
  File "/workspace/backend/.venv/lib/python3.9/site-packages/drf_standardized_errors/openapi_utils.py", line 397, in get_validation_error_serializer
    for field_name, error_codes in error_codes_by_field.items()

Exception Type: AttributeError at /schema/
Exception Value: 'list' object has no attribute 'items'

Current workaround: Downgrading to 0.12.4 bypasses the issue.

Looking through the recent changes, it looks like https://github.com/ghazi-git/drf-standardized-errors/commit/dadfb328f68f24e8ba218901b1752c1e0ddc6b23 may be when this was introduced.

This issue was due to using a custom ErrorAutoSchema that wasn't calling through to the super of _get_serializer_for_validation_error_response.
Apologies for the noise. Thanks for the great package!


running file in bin directory of .vscode_server in Linux

Type: Bug
I use vscode_server (ssh) in window for connecting linux server.
recently I updated vscode version.
but, In previous commit version dir of vscode-server. it has .nfs* files in .vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/
there are about 10 .nfs files... but, I don't use this version, I use 1e790d77f81672c49be070e04474901747115651.
how can I remove the .nfs files in previous commit version directory of vscode-server
VS Code version: Code 1.87.1 (1e790d77f81672c49be070e04474901747115651, 2024-03-06T00:21:36.258Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Remote OS version: Linux x64 3.10.0-1160.31.1.el7.x86_64

System Info

Item
Value

CPUs
12th Gen Intel(R) Core(TM) i7-1265U (12 x 2688)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
31.69GB (18.03GB free)

Process Argv
--crash-reporter-id da167323-16bc-43b6-84df-30b1a23780de

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: US01-ODC

OS
Linux x64 3.10.0-1160.31.1.el7.x86_64

CPUs
Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz (2 x 2100)

Memory (System)
15.50GB (4.24GB free)

VM
0%

Extensions (9)

Extension
Author (truncated)
Version

remote-ssh
ms-
0.109.0

remote-ssh-edit
ms-
0.86.0

remote-explorer
ms-
0.4.3

tcl
ras
0.1.0

cmake-tools
ms-
1.17.17

cpptools
ms-
1.19.9

cpptools-extension-pack
ms-
1.3.0

tcl-vsc-outline
Sni
0.0.4

cmake
twx
0.0.17

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp1r6:30993540
dsvsc020:30976470
pythonait:31006305
gee8j676:31009558
chatpanelt:31018789
dsvsc021:30996838
bdiig495:31013172
pythoncenvpt:31022790

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.88.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

It isn't related to version dependency. please check my issue and please let me know how to fix it

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


set webpage with to match parent

I don't want elements in my html to go beyond the width of the phone's screen in other words prevent horizontal scrolling. How will I achieve this. I've tried with css which works but still there is an empty space enabling horizontal scrolling.

What does it currently look like? Can you share an image perhaps? Where is that “empty space” enabling horizontal scrolling?
How does the same page look like in Chrome on Android? What about horizontal scrolling there?
What’s your layout for the screen on Android? What about your android:layout_width and android:layout_height, specifically?

More CSS helped me get the results I wanted. Thanks very much

Good to hear that, thanks!


Update: modify doc information scraped from sonar website

Add user guide or developer guide
Remove duplicate information

@alrra Would you please trigger the docsearch scraper for once after merging this PR? Then I can continue working on the search page with the updated indexes.

Would you please trigger the docsearch scraper for once after merging this PR? Then I can continue working on the search page with the updated indexes.

Done in https://travis-ci.org/sonarwhal/sonarwhal.com/builds/253551923.


Docker: Improve Prometheus integration

I pushed changes with which I believe this patch is ready to be merged:

squashed commits
added warning to .env
removed the scrape settings for the production config


check related display records and fields in the project / database

Missed out on a record that was only used as related display record in a project.

and found another same kind of issues, related fields used in a grid as related with the record missing in the project


Does not work with App Router routes having parameters (slugs)

I am using App Router in Next 13.4. I have a route /app/containers/[containerId]/logs/page.js.
When I open http://whatever_url_and_port/containers/ab112233/logs, ASP.NET Core returns 404 not found response. There is no HTML file for the logs page in the static output generated by NextJS. I can only see a JS file in the chunks directory.
It appears that the package looks for HTML files to serve and there is no HTML file generated for above page so we get 404 response. Is there any way this can be supported? Or is there a workaround?

I have converted by app to use Pages Router instead of App Router as a workaround and it works fine now.

It's a Next.js issue (err feature?). Long story short, for now it seems best to continue to use Pages Router like you did.
Digging in a little deeper, there are a few things worth mentioning:

Next.js App Router has limitations when it comes to exporting apps with dynamic routes (for understandable reasons)

Next.js has improved detection of this scenario in recent versions. At least on 14.1.0, if you attempt to build when you have an App Router page with a dynamic segment. For example:
// /src/app/tasks/[taskId]/page.tsx:
export default function TaskPage({ params }: { params: { taskId: string } }) {
  const { taskId } = params;
  return (

      Some task: {taskId}

  );
}

Attempting to build produces this error:
Error: Page "/tasks/[taskId]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.

If you add generateStaticParams as the error suggests, you can have Next.js pre-render specific variants of your page for those specific values of the dynamic segment, but that doesn't give you dynamic segments like you wanted:
export function generateStaticParams() {
  return [{ taskId: 'task1' }]
}

export default function TaskPage({ params }: { params: { taskId: string } }) {
  const { taskId } = params;
  return (

      Some task: {taskId}

  );
}

I tried "fooling" Next.js into doing what we want by having generateStaticParams return a single entry with the placeholder name as the value. This didn't work and seems to indicate a bug in Next.js -- no output was produced in this case!
export function generateStaticParams() {
  return [{ taskId: '[taskId]' }];
}

Another attempt to "fool" Next.js worked slightly better: This time I set the placeholder value also to something in brackets, just not precisely the current segment name. This time I did get a out/tasks/[foo].html and this MAY be a viable path forward for you. However, I did not go so far as to verify if you would be able to apply state correctly once the page hydrates on the client. The little I did find is that, in the statically generated page, the param provided to the page component had value %5Bfoo%5D (i.e. the URL escaped version of [foo]). This feels very hacky and goes beyond what I would be comfortable relying on for anything of importance.
export function generateStaticParams() {
  return [{ taskId: '[foo]' }];
}

In conclusion, unfortunately I do not see a way of dealing with this in this library at this time. You may want to engage the Next.js team in case you really want to use App Router and maybe this is a scenario they would be interested in supporting.
Please reach out if you have other ideas how to make this work. My best guess right now is to do something like point (5) above. There is possible hope there.
Best of luck!


Multiple accounts

Allow adding multiple gerrit accounts: for example
account for review.openstack.org and separate account for review.gerrithub.io

How would you like to configure multiple accounts?
One account per IntelliJ project would be enough?

As for me, this approch would be enough. But ability to add multiple gerrit repositories once might be even better.

I think the user interface would need a massive refactoring in order to allow multiple Gerrit servers in one project. If you have any ideas how this could look like, please let me know.

I'd added listbox for multiple Gerrit urls and '+', '-' buttons after
'Test' button. Select an item could fill text fields.
On Thu, Apr 2, 2015 at 11:01 PM, Urs Wolfer<EMAIL_ADDRESS>wrote:

I think the user interface would need a massive refactoring in order to
allow multiple Gerrit servers in one project. If you have any ideas how
this could look like, please let me know.
—
Reply to this email directly or view it on GitHub
https://github.com/uwolfer/gerrit-intellij-plugin/issues/159#issuecomment-89026627
.

--
Sergei Krivonos
skype: sergio_krivonos

One server/account per IntelliJ project(or module) would be a great improvement and would probably satisfy most requirements. I would think that moving the gerrit configuration into the project settings or creating a gerrit facet at the module level would make this possible.
Please don't put off that level of integration for a redesign of the UI to support multiple accounts per project.

I have thought a bit about this feature request. Would be nice if you could comment if my proposal makes sense for you.
At the moment, all Gerrit settings are application global (i.e. for all projects) used. This makes it impossible to use different Gerrit instances for different projects. I think it would make sense to move settings "Host", "Username" and "Password" (in current fieldset "Login") to project scope. All other settings (in current fieldset "Settings") could stay in application scope (UI should show a hint for that). Except that additional hint, the UI does not need any changes.
One disadvantage of this change is, that users with multiple clones of the same project need to enter login information for every (new) project.
Migration: I think it would make sense to transfer the current login settings to every project automatically when no project level settings are available. Then users can change it if they need to.

This looks good

I like the proposed implementation. Do you have any idea when this might be implemented?

This is must have!

Excellent proposal for the implementation. Any idea as to when this might be implemented?

@uwolfer great proposal!!! That'll be very useful for us (5 gerrit accounts to manage). Any idea for the implementation date?

@gleasonp & @leialexisjiang: Nope, not an idea when this will be implemented. I'd be happy to review any pull request which implements this feature.

Any news about that issue?
https://stackoverflow.com/questions/54693239/how-to-make-plugin-enabled-only-at-specific-projects#comment96179120_54693239

I have the need for the same feature. We have multiple Gerrit servers because of a company organization fusion.
I had a brief look into the setting persisting source part. As far as I can think of an implementation it seems to be a lot easier to make the URL, user, etc. settings simply on a per-project scope instead of overwriting global settings.
@uwolfer presented use case of cloning the same project multiple times (with Git I never do it because I have all the nice features of Git anyway) seems to be less common IMO than the following.
A more standard use case, I can think of, may be a company (dev) with a couple of separate repos all going to the same Gerrit like the AOSP. Actually we have it. I need to configure a handful of them.
For the beginning I could easily live with the per-project setting instead of no option at all (like now, except manullay switching back and forth which is unfeasible).
I would propose doing the simple approach first and look over the time if there are enough people wanting the "advanced" settings feature.
What do you think @uwolfer @gleasonp @dratushnyy ?

At the moment, all Gerrit settings are application global (i.e. for all projects) used. This makes it impossible to use different Gerrit instances for different projects. I think it would make sense to move settings "Host", "Username" and "Password" (in current fieldset "Login") to project scope. All other settings (in current fieldset "Settings") could stay in application scope (UI should show a hint for that). Except that additional hint, the UI does not need any changes.

Other Plugins save the server settings globally, but you can select which server to use for each project, e.g. SonarLint plugin. This avoids having to reconfigure the servers for each project.
Furthermore, "push commits to gerrit by default" should be a project setting, currently it also affects non-gerrit projects this might be mitigated when no gerrit server is selected.

Proposal for an alternative, less intrusive approach to solve the "multiple accounts" part of this feature request: #401

Transferring over the content of #421, which is quite similar in scope, so we can discuss everything in one place and not have quasi duplicates:
I work on dozens of IDEA projects and need Gerrit only for a single one, a forked Eclipse project. Even there, I only need it when contributing one of my bugfixes to the upstream project because Eclipse requires PRs in Gerrit. Nevertheless, the Gerrit plugin always tries to connect to the server when starting the IDE or re-opening unrelated projects. It also shows me notifications about pending reviews completely out of context in projects not using Gerrit. This becomes even more useless when I get curious, opening the Gerrit view, but seeing nothing of course, due to the fact that 99% of my projects do not use Gerrit and my pending reviews etc. are only displayed when I open the right project with the right Git connection.
I think that this is a design flaw. Gerrit server URLs and credentials should be per project, so that the plugin does not do anything when the corresponding project does not use Gerrit but e.g. GitHub or whatever SCM. And what if two different OSS or commercial projects use different Gerrit servers, for example one company server and one OSS one for Eclipse?

Other than that, I agree with @leonard84 in https://github.com/uwolfer/gerrit-intellij-plugin/issues/159#issuecomment-652547589: Maintain a set of Gerrit server settings in the global project settings, but assign one or more or them to projects, defaulting to none.

Opened pull request #480 to address this issue.

Thanks a lot @videogameaholic.
Is there somebody around who could test this pull request if migration with an existing setup works as expected, and also if it works as expected? Probably @videogameaholic could provide pre-built binaries if somebody is willing to test?

For testing:
gerrit-intellij-plugin-1.2.6-203.zip
Keep in mind this is based on the intellij2020.3 branch


Add text box in contact form: Type your message here

Currently nothing there for someone to ask us anything: http://modeci.org/#contactPage
Source: https://github.com/ModECI/Website/blob/main/_includes/contact.html

Hi @pgleeson,
I'd like to work on this issue, as an Outreachy applicant. Please assign it to me.

Hello @pgleeson, I am an Outreachy applicant and I would love to contribute to this issue.

Hi @pgleeson, I would also like to join this task as an Outreachy appliciant.

This issue has been solved with this pull request: https://github.com/ModECI/Website/pull/39. It was a relatively small one. I'll add some more details on tasks for Outreachy applicants.


Narrow contains email<EMAIL_ADDRESS>that does not map to any user.

Issue happens while trying to chat with Welcome Bot. Happening in the master branch.
@zulipbot claim

Looks like https://github.com/zulip/zulip-mobile/commit/531670135f5f2b7ad411873a27679d62c0d059ac is what introduced the bug, getUsersByEmail was used instead getAllUsersByEmail

Confirmed. Raising priority.


deliveryservice_requests Internal Server Error when status and changeType are wrong

I'm submitting a ...

[X] bug report
[ ] new feature / enhancement request
[ ] improvement request (usability, performance, tech debt, etc.)
[ ] other

Traffic Control components affected ...

[ ] CDN in a Box
[ ] Documentation
[ ] Grove
[ ] Traffic Control Client
[ ] Traffic Monitor
[X] Traffic Ops
[ ] Traffic Ops ORT
[ ] Traffic Portal
[ ] Traffic Router
[ ] Traffic Stats
[ ] Traffic Vault
[ ] unknown

Current behavior:

When making a GET request to deliveryservice_requests with the query parameter status set to a status that doesn't exist the response returned is:
HTTP/1.1 500 Internal Server Error
{
    "alerts": [
        {
            "text": "Internal Server Error",
            "level": "error"
        }
    ]
}

ALSO:
When making a GET request to deliveryservice_requests with the query parameter changeType set to a type that doesn't exist the response returned is:
HTTP/1.1 500 Internal Server Error
{
    "alerts": [
        {
            "text": "Internal Server Error",
            "level": "error"
        }
    ]
}

Valid changeType values are: create, update, delete
Expected / new behavior:

Should return:
HTTP/1.1 200 OK
{
    "response": []
}

OR
HTTP/1.1 400 Bad Request
{
    "alerts": [
        {
            "text": "Not a valid status",
            "level": "error"
        }
    ]
}

HTTP/1.1 400 Bad Request
{
    "alerts": [
        {
            "text": "Not a valid changeType",
            "level": "error"
        }
    ]
}

Minimal reproduction of the problem with instructions:

Anything else:

@ocket8888 - think this can be closed since the ds_requests endpoint changed with api 4.x?

Not necessarily. We should try to reproduce it. If we can't, it can be closed.


Exclude docs source and animated gifs from built package

Closes: #N/A
What's Changed

Update mkdocs to version 1.5.3 (needed because v1.5 adds support for the exclude_docs parameter)
Update mkdocs.yml to exclude the media/*.gif files from the built docs (as the rendered docs don't actually reference these files, only README.md does, and they're quite large files)
Update mkdocs.yml with recommended strict validation options added in mkdocs 1.5
Update pyproject.toml to not package CONTRIBUTING.md, CHANGELOG.md, NOTICE files in the built package (since these aren't in the nautobot/ directory, they end up in the site-packages root directory as clutter when pip installing nautobot from the package)
Update pyproject.toml to not package nautobot/docs/**/* in the built package since it's redundant with the built documentation and resulted in a duplicate copy of every documentation image in the built package.

Net-net here is to reduce the sdist and wheel files built for Nautobot from 85/86 MB in size down to a mere 30/31 MB.
TODO

[x] Explanation of Change(s)
[ ] Added change log fragment(s) (for more information see the documentation)
n/a Attached Screenshots, Payload Example
n/a Unit, Integration Tests
[x] Documentation Updates (when adding/changing features)
n/a Example Plugin Updates (when adding/changing features)
[x] Outline Remaining Work, Constraints from Design

Will need double-commit to ltm/1.6 as well.

Since we're on mkdocs v1.5 now we can suppress this warning message using the not_in_nav config:
INFO     -  The following pages exist in the docs directory, but are not included in the "nav" configuration:
              - models/examplemodel.md

Not sure if you want to include it in this PR, it's just something I noticed when looking at the docs.

I'm seeing this warning now when building docs:
INFO    -  DeprecationWarning: A plugin has set File.page to an instance of Page and it got overwritten. The behavior of this will change in MkDocs 1.6.
             File "/usr/local/lib/python3.8/site-packages/mkdocs/structure/nav.py", line 183, in <listcomp>
               _data_to_navigation((key, value), files, config)
             File "/usr/local/lib/python3.8/site-packages/mkdocs/structure/nav.py", line 209, in _data_to_navigation
               warnings.warn(

It's not an issue yet, but we may get questions about it.

Yes, I noticed that too. I wish it was clearer about which plugin is doing that :-)
I'll dig into it and see if I can find out where it's coming from and if an update is already available.

Yes, I noticed that too. I wish it was clearer about which plugin is doing that :-)
I'll dig into it and see if I can find out where it's coming from and if an update is already available.

I did a grep through the mkdocs* plugins and couldn't find anything :(

The interesting thing is that it looks like in the development branch for mkdocs 1.6 they've just removed that warning altogether - so it may be that there's not actually any action required in this case?


AsciiDoc (or alternatives) instead of Markdown?

I'm running into more and more issues with Markdown. The Markdown syntax is too simple or what we are trying to achieve here, especially with vasts amounts of tables.
We could consider using AsciiDoc or other similar alternatives instead.
It would also support includes, which allows re-use of commonly used elements.
Generally, I wonder whether the tabular approach is good or whether an approach based on headings and normal paragraphs would be better for such a specification.
Originally posted by @m-mohr in https://github.com/ceos-org/ceos-ard/issues/28#issuecomment-2194242896

How about restructured text? Standard for sphinx and much more versatile than markdown.

Could also be considered, indeed.

Also for me reStructuredText is better suited for the kind of documents that you plan to manage

Could you elaborate a bit on the reasons to make us understand why it might be a better choice?
I don't have experience with any of them but they look very similar to me at first glance.
I find the file includes from AsciiDoc very appealing to avoid duplication, which seems to heavily appear on the files and as such would allow us to heavily decrease the maintanance work and move us closer to a biuilding block approach.

Yes, as you saythe include directive is also available in reStructuredText.
To clarify, I was meaning that reStructuredText is better suited than markdown in this case.
I do not know AsciiDoc, sorry.
ReStructuredText, especially with Sphinx extension, is very powerful and supports very well complicit documents structure and cross-referencing.
Both the HTML output and the PDF are very good and can be highly customized (a large amount of HTML themes is available).
The tooling, Sphinx mostly, is very powerful and several extensions are available for different purposes.

Thanks.
(Just a note here: I believe we also still need Word/docx files for users to fill unless we generate separate documents for self-assessment and specification.)

Same as Antonio, very happy user of RST/Sphinx, don't know AsciiDoc.

I have no big experience in generating docx document for rst/sphinx.
Searching with google the first hits are https://github.com/mherkazandjian/docxsphinx, https://github.com/amedama41/docxbuilder and a couple of indirect ways using rst2otd (docutils) and/or pandoc. I guess that there is also a possibility to make an indirect conversion via LaTeX but I never did it.
Just for my information, does asciidoc have better capabilities to convert to docx?

Not sure, that's something we need to evaluate, but Pandoc worked quite well to convert from Markdown to Word.

According to the pandoc website, pandoc is capable of conversion from and to reStructuredText and docx respectively. AsciiDoc can only be converted to but not from.

from Siri Jodha Khalsa (via email):

I just want to point out that some IEEE standards projects use metanorma to write their drafts, there being an IEEE-SA document model. Metanorma is based on AsciiDoc, which is similar to markdown (comparison), all of which are amenable to version control in github. CEOS could create a custom stylesheet for the PFSs. See https://www.metanorma.org/develop/topics/simple-adoption/


Add a Gitter chat badge to README.md

lukashinsch/spring-properties-decrypter now has a Chat Room on Gitter
@lukashinsch has just created a chat room. You can visit it here: https://gitter.im/lukashinsch/spring-properties-decrypter.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

Coverage remained the same at 100.0% when pulling 56c9f92973bebd57862296f9b0549142f51310df on gitter-badger:gitter-badge into bf1c30c6d4116eed7b8a9c615767624143d5f971 on lukashinsch:master.


Small tweaks to fix certain broken Layer image URLs

I was working on a prototype that required assigning Layer image URLs of the following form:
https://foo.bar.com/photo/transcode?url=http%3A%2F%2F<IP_ADDRESS>%2Fthumb%2F1484295501&width=132&height=200
... and I was running in to two semi-related issues addressed by this PR.
First, URLs of that form were incorrectly being identified as local because they contain the string <IP_ADDRESS> even though it's buried deep in the query string. 	3b6c061 addresses this by applying stricter matching (while copying the still-somewhat-imprecise scheme matching [a-zA-Z]{1,8}:\/\/ from the method above).
Second, when the Layer evaluates whether to include the nocache param, it doesn't take into account whether a querystring is already present, and just appends ?nocache= in all cases, leading to a malformed request for the (incorrectly identified-as-local) URL form above. f9c6611 addresses this by looking for a ? and appending with & instead if present.
I realize this is probably a niche case, but I believe each of these is low-risk and more correct in its own right, so hopefully worth consideration. Thanks!

LGTM! Is it possible for you to add some tests for this?

Done!

🎉 Thanks!


False positive with PhpdocAlignFixer

The PHP version you are using ($ php -v):
PHP 7.4.2
PHP CS Fixer version you are using ($ php-cs-fixer -V):
2.17.0-DEV (because https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3911 is not yet released)
The command you use to run PHP CS Fixer:
vendor/bin/ecs check src

(using symplify/easy-coding-standard)
The configuration file you are using, if any:
configured by ECS but it's not relevant in this case
If applicable, please provide minimum samples of PHP code (as plain text, not screenshots):

before running PHP CS Fixer (no changes):

/**
 * @var CompositeKey<Identity, ScalarKey> $key
 * @var Vector<CompensationAllocation>    $allocations
 */
foreach ($compensations as $key => $allocations) {

with unexpected changes applied when running PHP CS Fixer:

/**
 * @var CompositeKey<Identity,         ScalarKey> $key
 * @var Vector<CompensationAllocation> $allocations
 */
foreach ($compensations as $key => $allocations) {

with the changes you expected instead:

no changes expected

Thanks for reporting,
This also happens on 2.15

I noticed similar issue with 2.16.4
before:
/**
 * @method Entity             getReference(string $id)
 * @method Repository         getRepository()
 * @method array<int, Entity> find(?array $criteria = null, ?array $orderBy = null, ?int $limit = null, ?int $offset = null, ?array $search = null)
 * @method Entity|null        findOne(string $id, ?bool $throwExceptionIfNotFound = null)
 * @method Entity|null        findOneBy(array $criteria, ?array $orderBy = null, ?bool $throwExceptionIfNotFound = null)
 */

after:
/**
 * @method Entity      getReference(string $id)
 * @method Repository  getRepository()
 * @method array<int,  Entity> find(?array $criteria = null, ?array $orderBy = null, ?int $limit = null, ?int $offset = null, ?array $search = null)
 * @method Entity|null findOne(string $id, ?bool $throwExceptionIfNotFound = null)
 * @method Entity|null findOneBy(array $criteria, ?array $orderBy = null, ?bool $throwExceptionIfNotFound = null)
 */


Issues connecting with Mistral through LM Studio

Hello,
I've been investigating a bit this pluggin, and I've found that it's virtually possible to use it with any other model appart from OpenAI GPTs if such model runs on a server that conveys with OpenAI's REST intercomunication protocols. As far as I can tell, I tried my model throught Postman with the generated request of this plugin
{

  "model" : "TheBloke/deepseek-coder-6.7B-instruct-GGUF/deepseek-coder-6.7b-instruct.Q4_K_S.gguf",

  "functions" : [ {

    "name" : "webSearch",

    "description" : "Performs a search using a Duck Duck Go search engine and returns the search result json.",

    "parameters" : {

      "type" : "object",

      "properties" : {

        "query" : {

          "type" : "string",

          "description" : "A search query"

        }

      },

      "required" : [ "query" ]

    }

  }, {

    "name" : "getJavaDoc",

    "description" : "Get the JavaDoc for the given compilation unit.  For example,a class B defined as a member type of a class A in package x.y should have athe fully qualified name \"x.y.A.B\".Note that in order to be found, a type name (or its top level enclosingtype name) must match its corresponding compilation unit name.",

    "parameters" : {

      "type" : "object",

      "properties" : {

        "fullyQualifiedName" : {

          "type" : "string",

          "description" : "A fully qualified name of the compilation unit"

        }

      },

      "required" : [ "fullyQualifiedName" ]

    }

  }, {

    "name" : "getCurrentWeather",

    "description" : "Get the current weather in a given location",

    "parameters" : {

      "type" : "object",

      "properties" : {

        "location" : {

          "type" : "string",

          "description" : "The city and state or country, e.g. San Francisco, CA"

        },

        "unit" : {

          "type" : "string",

          "description" : "The temperature unit, e.g. metric or imperial. Default value: metric"

        }

      },

      "required" : [ "location", "unit" ]

    }

  }, {

    "name" : "readWebPage",

    "description" : "Reads the content of the given web site and returns its content as a markdown text.",

    "parameters" : {

      "type" : "object",

      "properties" : {

        "url" : {

          "type" : "string",

          "description" : "A web site URL"

        }

      },

      "required" : [ "url" ]

    }

  }, {

    "name" : "getSource",

    "description" : "Get the source for the given class.",

    "parameters" : {

      "type" : "object",

      "properties" : {

        "fullyQualifiedClassName" : {

          "type" : "string",

          "description" : "A fully qualified class name of the Java class"

        }

      },

      "required" : [ "fullyQualifiedClassName" ]

    }

  } ],

  "messages" : [ {

    "role" : "system",

    "content" : "You are an AI assistant expert in software engineering, integrated as a plugin in an IDE. Your primary role is to assist the user in writing and analyzing source code. Adhere to these guidelines to ensure effective assistance:\r\n\r\n1. Focus on Coding: Provide code solutions or suggestions directly. Avoid elaborating on your responses unless the user specifically asks for explanations.\r\n2. Markdown Formatting: When presenting code examples or snippets, always use Markdown code blocks. This ensures clarity and readability within the IDE environment.\r\n3. Concise Explanations: If the user requests an explanation, keep your response accurate and concise. Avoid lengthy or unnecessary elaboration.\r\n4. Step-by-Step Approach: Tackle problems in a systematic, step-by-step manner. This method helps in breaking down complex tasks and ensures thoroughness in solving coding issues.\r\n5. Responsive Interaction: Engage with the user's queries responsively, adapting your assistance based on the user's input and feedback. Aim to collaboratively find the most accurate and efficient solution.\r\n\r\nRemember, your primary goal is to aid in code development and problem-solving, prioritizing direct and efficient assistance."

  }, {

    "role" : "user",

    "content" : "Hi!"

  }],

  "temperature" : 1.0,

  "stream" : true
}

(I've got to quit the "assist" message, because with it failed... but for another reason, because Mistral seems to need all the messages fullfilled...)
and everything seems fine, but when I tried this plugin with this config

I've got this
!ENTRY org.eclipse.e4.ui.workbench 4 0 2024-04-02 18:20:08.134
!MESSAGE request timed out
!STACK 0
java.net.http.HttpTimeoutException: request timed out
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:949)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133)
	at com.github.gradusnikov.eclipse.assistai.services.OpenAIStreamJavaHttpClient.lambda$4(OpenAIStreamJavaHttpClient.java:197)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

I don't know if I'm getting trouble with some configuration I missed to allow Eclipse to do request or something, but I don't know how to circumvent this bug.
I hope someone could bring me some help and I will be gratefull if someone can respond my answer.
Regards.

Hi @vanstanian
The most probable cause the lack of HTTP 2.0 protocol support of your local server. I had the same issue with LM Studio. I have patched the code so that the HttpClient uses the HTTP 1.1 protocol version.
Thank you!
/w.

It works nice! This will be a great step in your project. Thank you!


Align CI testing with cargo-dist platforms

Make CI testing GH action (https://github.com/mitre/hipcheck/blob/main/.github/workflows/hipcheck.yml) base its build matrix on the cargo-dist target config in our top-level Carg.toml
Update that same GH action to support being run manually against the main branch

Closing. Duplicate of #150


Add test to verify extra credential delivery to ConnectorIdentity

Fixes #189

This PR is ready for review.


Show version of the agent in chats' list

Estimation: 2 hours
It's not clear which agent I'm talking with currently.

Unknown name, when I refresh chat page


TS-4335: Remove the option to disable/enable TLS compression

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/588/ for details.

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/484/ for details.

:+1:


AS3 schema does not support per app declarations

Environment

Application Services Version: >=3.47.x
BIG-IP Version: not applicable here

Summary
The current json schema is not able to validate per-app declarations.
I see from the releases page that per-app was introduced as beta feature in 3.47.0; but maybe the as3 schema has not been updated to accommodate it yet.
From some communications I see that per-app will be available as General Availability in 3.50.0, we need a way to verify the json schema for perapp declarations as well :)
I know 3.50.0 is still not "released" according to releases, so maybe this issue has been prematurely raised.
Steps To Reproduce
Steps to reproduce the behavior:
Get the sample per-app declaration from user guide:
https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/userguide/per-app-declarations.html#example-per-application-declaration
Get the latest up to date schema:
https://raw.githubusercontent.com/F5Networks/f5-appsvcs-extension/main/schema/3.50.0/as3-schema-3.50.0-5.json

Validate locally below declaration

{
    "$schema": "https://raw.githubusercontent.com/F5Networks/f5-appsvcs-extension/main/schema/3.50.0/as3-schema-3.50.0-5.json",
    "id": "per-app-declaration",
    "schemaVersion": "3.50.0",
    "controls": {
        "class": "Controls",
        "logLevel": "debug",
        "trace": true
    },
    "Application1": {
        "class": "Application",
        "service": {
            "class": "Service_HTTP",
            "virtualAddresses": [
                "<IP_ADDRESS>"
            ],
            "pool": "pool"
        },
        "pool": {
            "class": "Pool",
            "members": [
                {
                    "servicePort": 80,
                    "serverAddresses": [
                        "<IP_ADDRESS>",
                        "<IP_ADDRESS>"
                    ]
                }
            ]
        }
    }
}

Expected Behavior
The sample per-app AS3 declaration should have been validated by the schema
Actual Behavior
The json schema validation fails :(

Hi @sohel-m, could you post the validation failure that you're seeing?
And just to verify, you're posting to /appsvcs/declare/<tenant>/applications? The standard /appsvcs/declare endpoint expects a full, tenant-level declaration and will fail validation if it receives a per-app request.

Hello @tpitkinf5
I am not validating against the F5 BIGIP actually.
So not interacting with "/appsvcs/declare" or "/appsvcs/declare//applications" at all :)
I am doing a local json schema validation using the json schema provided by F5.
(This is part of some prechecks that we do in our pipeline)
It can be easily done by your IDE like VScode as well by just loading the file or using standard json schema validation libraries like:

https://python-jsonschema.readthedocs.io/en/latest/validate/
https://docs.ansible.com/ansible/latest/collections/ansible/utils/validate_lookup.html

In my case I'm using the ansible module for validating but I think that's is irrelevant to the topic.
What I have found is that the schema file works for validating tenant level declarations, but does not work for per-app declarations :(
One of the errors is for the top level Application class declaration like:
Value must be "Tenant"

Ah, I now see where I missed that part in your original description about locally validating. Sorry about the confusion and thank you for clearing that up for me.
Unfortunately the schema that's provided in the schema/<version> directory is the top-level schema that the /declare endpoint validates declarations against in AS3. There is a separate per-app schema that exists in this repository, but it's a bit harder to find and validate against in its current state.
To locally validate against the per-apps schema, you'll need to clone this repository and build the desired schema. The following steps will walk you through the process:

Clone the repository onto your local machine
Build the adc-schema.json schema file with the following command from the root directory of the project: node scripts/build/schema-build.js. This script combines a number of individual schemas into a single schema file, which can be found at  src/schema/latest/adc-schema.json. This file will be referenced by the per-app schema.
Use the src/schema/latest/app-schema.json schema file to locally validate against your declaration

Note: The app-schema.json schema file externally references the adc-schema.json schema file that you built in step 2. Depending on what tool you use to validate schemas with, you may need to provide/load both schemas.
I hope this helps!

Thanks for your reply and the detailed workaround/instructions to get the per-app schema @tpitkinf5 :)
I'm wondering if there is a possibility on your side to somehow implement one of the following two options
(I'm a complete novice in the https://json-schema.org/ topic so I'm unsure about the feasibility of my requests)

Have a common/(bundled ?) schema which is able to validate both AS3 modes of deployment(tenant-based and app-based)
'Officially' host a per-app schema file along with the current tenant/top-level schema in the repository which can be used in a similar fashion as the latter.

Meanwhile I'll start some testing according the process you explained, thanks again for that
Cheers

I agree that providing some type of easily accessible version of the per-app schema in the /schema/<version> directory is the correct solution for this issue. And the two options that you mentioned line up with what I was envisioning as well:

Bundling the per-app schema inside the as3-schema.json file is possible and provides a single file that can validate both types of requests. The only downside to this approach is that a JSON schema validation tool would no longer be able to determine if you wanted to validate against the tenant level schema or app level schema. So if your declaration fails all possible schemas, you'd end up with a large number of validation errors due to the tool trying to validate against all logical paths. It's not a blocker, but worth nothing.
Providing a separate per-app schema file in the /schema/<version> directory and either referencing or duplicating the necessary as3-schema.json file data is also possible. This would allow you to define what specific schema you'd like to validate against (tenant or app level) by loading the appropriate file(s) into the validation tool.

I'd recommend keeping this issue open so that @sunitharonan can triage this and track it internally. In the mean time, I hope that the workaround of building the schema from the repository's source code works for you.

Hi @tpitkinf5
Thanks for acknowledging the issue.
I agree with your assessment of (1) that we can have large number of validation errors in case of an invalid declaration which could leave a user more astray than close to rectifying it because of all the possible logical paths.
Following that, bundling might not be the way to go ahead, and its better to have a separate per-app json schema file.
On my side I was unable to build the schema locally :(
I think its because some dependencies are not public?
This is what I got when trying to install deps before running build script.
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to
https://${artifactory_url}/artifactory/api/npm/f5-automation-toolchain-npm/@automation-toolchain%2ff5-appsvcs-schema
failed, reason: getaddrinfo ENOTFOUND ${artifactory_url}
npm ERR! network This is a problem related to network connectivity.

In any case could you please attach the per-app schema(3.50.1) file to this case itself?  :)
Until we have a more permanent solution by you or @sunitharonan where we have the schema in a more accessible place like
schema/<version>/  directory?
Thanks once again

In any case could you please attach the per-app schema(3.50.1) file to this case itself? :)

Umm, @tpitkinf5 could you please help with above?
Thanks in advance :)

@sohel-m, sorry for the late reply and for providing you with instructions that couldn't be run on your local machine. I had forgotten about the private dependency that the schema build script relies on.
I'm currently requesting permission to attach the adc-schema.json file to this issue and will hopefully have a response and solution for you later today.

Unfortunately I'm still waiting on that response and permission to attach the requested file.
But I do have an alternative solution for you that takes advantage of the JSON schema that you currently have access to. In fact, this alternative solution will probably be similar to what the permanent solution looks like. Here are the steps:
1.) Copy the ./src/schema/latest/app-schema.json file to the ./schema/latest directory
2.) Update the newly copied app-schema.json file to reference the as3-schema.json file that's in the same schema folder. You can do this by replacing the two UUID $ref lines in the schema with the UUID of the as3-schema.json file:
                }
             ]
         },
-        "controls": { "$ref": "urn:uuid:f83d84a1-b27b-441a-ae32-314b3de3315a#/definitions/Controls" }
+        "controls": { "$ref": "urn:uuid:85626792-9ee7-46bb-8fc8-4ba708cfdc1d#/definitions/Controls" }
     },
     "additionalProperties": {
-        "$ref": "urn:uuid:f83d84a1-b27b-441a-ae32-314b3de3315a#/definitions/Application"
+        "$ref": "urn:uuid:85626792-9ee7-46bb-8fc8-4ba708cfdc1d#/definitions/Application"
     },
     "propertyNames": {
         "pattern": "^[A-Za-z][0-9A-Za-z_.-]*$",

Now you should be able to use the app-schema.json file to validate your per-app declaration with the same functionality that the build script would have provided you. The only difference is that it's using the as3-schema.json file for additional validation instead of the adc-schema.json file. This change is OK because the objects that are being referenced are identical in both schema files.
And like I mentioned previously, don't forget that you may need to provide/load both files (app-schema.json and as3-schema.json) in order for your validation tool to resolve the external references!
I'll keep an eye out for any responses to my request and get that adc-schema.json attached to the issue once I have permission, but this solution should provide you with the same validation behavior in the mean time.

Hello @tpitkinf5
Thanks for your update
On my side for the time being I will rely on the workaround as you suggested.
Actually this part is proving a bit troublesome for me to implement

you may need to provide/load both files in order for your validation tool to resolve the external references!

I have both app-schema.json and as3-schema.json locally
I'm using this module for json schema validation: https://docs.ansible.com/ansible/latest/collections/ansible/utils/validate_module.html#ansible-collections-ansible-utils-validate-module
But I keep running into the issue of properly referencing the as3-schema.json from within app-schema.json.
Similar issues faced by others:
https://stackoverflow.com/questions/67198939/resolve-ref-by-relative-file-path
https://stackoverflow.com/questions/22796063/referencing-a-local-relative-file-in-a-json-schema
The solutions relying on relative path resolution that seemed to have work for others doesn't seem to work for me :(
In any case I'll keep exploring how I can make the external references work :)
Could you explain what is the permanent solution you are targeting ?
Can we have two independent schema files for tenant declarations and per-app declarations ?
That way we could simply include those two files without worrying about external references

Hello @sohel-m
I'm sorry to hear that the workaround is still causing trouble with your tooling.
AS3 uses the AJV tool for JSON schema validation, but I can see how other tools might not handle a URN external reference path based on how JSON schema files are loaded into the specific tool. I think you're on the right track by investigating how to reference an external file using a file URI instead of a URN.
I want to clarify that @mdditt2000 and @sunitharonan will handle triaging this task and discussing with the AS3 team on how this issue will be resolved. But I'll leave the following comment here for the team to review and consider:
Based on our discussion and the variety of different JSON schema validation tools, I agree that the permanent solution should be an independent, stand-alone per-app schema to help simplify the experience of locally validating. Creating the stand-alone schema file would involve:

Copying the ./src/schema/latest/app-schema.json file to the ./schema/latest directory
Copying the definitions object from the as3-schema.json file into the new app-schema.json file.
Updating the new app-schema.json file to reference the necessary objects in the same file:

                }
             ]
         },
-        "controls": { "$ref": "urn:uuid:f83d84a1-b27b-441a-ae32-314b3de3315a#/definitions/Controls" }
+        "controls": { "$ref": "#/definitions/Controls" }
     },
     "additionalProperties": {
-        "$ref": "urn:uuid:f83d84a1-b27b-441a-ae32-314b3de3315a#/definitions/Application"
+        "$ref": "#/definitions/Application"
     },
     "propertyNames": {
         "pattern": "^[A-Za-z][0-9A-Za-z_.-]*$",

Any updates?

Hello,
Is there an update for this? It would be great to have a schema for the per-app declaration.


INFO --> Starting Payout...   no payout

Good day
we send some payments before and we got the error E0078: RPC method did not return 200
after that we modify the coin decimal 8 to 7 for LCC and the cronjob payouts Run OK apparently
and after we run scripts/validate_payouts.php we got the next
| 71 | juancho637 | CTU2ABxtSQBwTHKVXj5LCSqoFPbMCQJ7zf | 40.13919973007882191 | MISSING | n/a |
ALL CRONJOBS RUN OK

The Coin is Litecoincash LCC
we don't  know why the system didn't sent the payments and still said - INFO --> Starting Payout... and never sent the coins

INFO --> Starting Payout...
INFO --> Starting Payout...
INFO --> Starting Payout...
INFO --> Starting Payout...

any person know what can we do?

After about 3 hours trying payout again, the pool show the cronjobs payout error
And E0078: RPC method did not return 200

I think first and commor reason - too much digits after dot. Does your coin wallet really support more than 8 digits after dot?

@r4sas LCC just suppor 7 decimals

@r4sas and yes we check the transactions and some are automatics and others manual
How can I do to the payout just sent the payment with 7 digits decimals?

Please show your coin config from /include/classes/coins directory.

Prove of root of issue:
https://github.com/litecoincash-project/litecoincash/blob/1483a2ed5088f6f07264c1d0b6483bb5df1cf1ab/src/bitcoin-tx.cpp#L533-L534

Not really into crypto’s much anymore but have you looked up the payout that was supposed to process and check the amount? I’d think it’s a simple transaction that’s too big for your coin and fails.

@TheSerapher
Our pool got the next payouts request on scripts/validate_payouts.php
#!/usr/bin/php | TX-DB-ID | Username | Address | Amount | Status | TX-RPC-ID | | 35 | juancho637 | CTU2ABxtSQBwTHKVXj5LCSqoFPbMCQJ7zf |<PHONE_NUMBER>172927835 | MISSING | n/a | | 33 | shfamily | CdRTqFRcbExVDogy22VZ1DyAJBk8ByJnLh | 1218.019536032903033 | MISSING | n/a | | 91 | jonathangr30 | CZBKA5ixrJKiwdwWjdJAeFYq3m5mWfK2nN |<PHONE_NUMBER>911046229 | MISSING | n/a | | 89 | shfamily | CdRTqFRcbExVDogy22VZ1DyAJBk8ByJnLh |<PHONE_NUMBER>349619341 | MISSING | n/a | | 76 | shfamily | CdRTqFRcbExVDogy22VZ1DyAJBk8ByJnLh |<PHONE_NUMBER>284216690 | MISSING | n/a | | 71 | juancho637 | CTU2ABxtSQBwTHKVXj5LCSqoFPbMCQJ7zf | 40.13919973007882191 | MISSING | n/a | | 69 | jonathangr30 | CZBKA5ixrJKiwdwWjdJAeFYq3m5mWfK2nN |<PHONE_NUMBER>938726041 | MISSING | n/a | | 67 | shfamily | CdRTqFRcbExVDogy22VZ1DyAJBk8ByJnLh |<PHONE_NUMBER>154797498 | MISSING | n/a | | 62 | juancho637 | CTU2ABxtSQBwTHKVXj5LCSqoFPbMCQJ7zf | 20.99146453878844909 | MISSING | n/a | | 60 | shfamily | CdRTqFRcbExVDogy22VZ1DyAJBk8ByJnLh |<PHONE_NUMBER>485465566 | MISSING | n/a | | 55 | juancho637 | CTU2ABxtSQBwTHKVXj5LCSqoFPbMCQJ7zf | 18.86336525108541195 | MISSING | n/a | | 53 | jonathangr30 | CZBKA5ixrJKiwdwWjdJAeFYq3m5mWfK2nN |<PHONE_NUMBER>123875642 | MISSING | n/a | Please be aware that transaction prior to a transaction fee change may be marked as MISSING. See help on how to apply a custom transaction fee that can also be checked against. You can also enable verbose mode. Summary DB Debit Transaction Limit: 1000 RPC Transaction Limit: 10000 Custom TX Fee Checked: 0.1 Total Send TX Records: 0 Total Debit Records: 12 Total Records Found: 0
Some are lower
20.99
18
40.1
How can I cancel all request payouts and run that’s again?

You can’t cancel payouts, once the script runs its paid to the user.
No idea what’s the issue, maybe turn debug logging on in your coin daemon and see if the failed transaction shows up? Other than that it seems to be an issue with the RPC or an invalid or unimplemented call. Can’t say, too many coins out there ;-)

@shfamily

is it ok?

No. You must somehow limit digits  after dot in MPOS.
And asking again: please show your coin class.

@r4sas
I don’t understand your question
Where can I get the coin class information?
We checked information about how to reduce the digits after dot but we didn’t get any information

@shfamily what you have here in your config?
https://github.com/MPOS/php-mpos/blob/236cccd5d3178e99504bf2665db8bddfed6aa176/include/config/global.inc.dist.php#L33-L38

@r4sas Said sha256d

@r4sas

sha256d coin class has in it settings precision set to 20, what is not correct for you coin settings.
https://github.com/MPOS/php-mpos/blob/236cccd5d3178e99504bf2665db8bddfed6aa176/include/classes/coins/coin_sha256d.class.php#L11
Please make copy of include/classes/coins/coin_sha256d.class.php to new file and change precision.
For example:
cp include/classes/coins/coin_sha256d.class.php include/classes/coins/coin_lcc.class.php
In coin_lcc.class.php change that value to 8
https://github.com/MPOS/php-mpos/blob/236cccd5d3178e99504bf2665db8bddfed6aa176/include/classes/coins/coin_sha256d.class.php#L11
Change coin algo name to lcc
https://github.com/MPOS/php-mpos/blob/236cccd5d3178e99504bf2665db8bddfed6aa176/include/config/global.inc.dist.php#L38

@r4sas do you have telegram? Lcc

@shfamily yes.

@r4sas can you give me that to write to you directly?

@shfamily join https://t.me/php_mpos

@TheSerapher how you think about adding link to telegram for discussion and help purposes?
https://t.me/php_mpos

Will do but it's a channel that has to be watched by the community :)


Getting info on credentials/tokens via refresh token does no longer work

Summary
In Kong < 1.0 it was possible to retrieve information on access tokens/credentials via the /oauth2_tokens endpoint, like this:
GET http://kong:8001/oauth2_tokens?refresh_token=fjhdsgfjkhdsgfdjhsfgjdf
This call now returns all access tokens instead of filtering by refresh_token.
Similarly, you could before filter by access_token via the query parameter; this has now turned into a GET /oauth2_tokens/<access token>; that works, but it does not work using the refresh_token.
Can we have the query by refresh token back?
Side note: There are a few end points, e.g. most plugin endpoints, which no longer support filtering. It used to be possible to add e.g. ?name=rate-limit to filter for rate limiting plugins; this does not work anymore either, you always get the full list back.
Additional Details & Logs

Kong version ($ kong version): 1.1.2-alpine
Operating system: Docker

Dug into the code and found out how this works in principle. The dao of the oauth2 plugin specifices endpoint_key = "access_token", so this is the only key which currently can be used to retrieve information on the token record via /oaut2_token/<access token>. Going via select_by_refresh_token would be necessary, but I am not firm enough in my Lua to be able to just add this :-(.

Yes, /oaut2_token/<access token>, perhaps this could be made to work like:
/oaut2_token/<access or refresh token>, if we consider access tokens to be unique among refresh tokens too (they should very rarely conflict).
With consumers we went with:
/consumers?custom_id=xxx making filtering by custom_id only available on collection endpoint.

Yes, the /consumers endpoint behaviour remained the same as it was before, I think. Both solutions, using a ?refresh_token= query parameter (like before) or just checking both tokens via the same endpoint, should work; this would be super awesome to get back.

We can do necessary work and PR for this

Another thing which is no longer working, but was useful: Querying for authenticated_userid, e.g. in order to display which sessions an authenticated user has, and e.g. allowing to delete them.

any eta on this? just ruined my session manager

+1 to filtering via authenticated_userid

@bungle - I need your input on this one,
according to your comment:
/oauth2_tokens/<access or refresh token>
currently DAO accepts only access_token and filters only by that, it is working as expected like:
/oauth2_tokens/xxxxx
but filtering is done by access_token obviously, we a bit confused how to select on 2 columns in DB.
Another obvious solution is to create new API just for refresh tokens, which at this point seems unreasonable. Any pointers you can provide to help us.

@maksimlikharev so since we need to query by other parameters like authenticated_userid and probably  they will be queried by specifically like ? authenticated_userid= you can do refresh_token like that as well

I think new way of DAO does not allow any query parameters only path argument, at least this is my observation from the code. I would like to have query arguments as well, but I'll wait for the Kong people to comment.

+1

+1 to filtering via authenticated_userid

Nothing about it yet?
I really can't imagine having hundreds of thousands or millions of tokens and having to go through all of them just to find those for a single user.

Nothing about it yet?
I really can't imagine having hundreds of thousands or millions of tokens and having to go through all of them just to find those for a single user.

Can anyone interested in this issue come up with a pull request?


Gulp Workflow Initial Setup and Build for Dev

Build and test gulp workflow for wpTails. Gulp will control dev builds, budles as well as relase testing and packaging.
Functions needed are for PHP, JS, CSS, IMG, SVG, etc.
Once the bsic workflow is operational, seperate PRs can be created for bugs, enhancements, etc.

Next items are bsync and watch files with tasks.
Then start etsting with NPM commands


fix: github action functional test with postgresql 11

Checklist

[x] the contributor license agreement is signed
[x] commit message follows commit guidelines
[ ] tests are included
[ ] screenshots are included showing significant UI changes
[ ] documentation is changed or added

Description of change
In addressing the npm issues caused by the oeq-ts-rest-api module https://github.com/openequella/openEQUELLA/pull/4679 , we also found that versions below PostgreSQL 12 is causing some problems, leading to test failures. Therefore, to quickly fix the GitHub Actions, we have temporarily changed the database version from 10 to 12. This branch is now intended for investigating the exact issues caused by the database version.

Heya @edalex-yinzi
When you get a chance, could you please update this branch with the latest from develop ? (Just in case anything has improved.)

Heya @edalex-yinzi
When you get a chance, could you please update this branch with the latest from develop ? (Just in case anything has improved.)

Develop merged.

@edalex-yinzi could you please merge in develop again? Be keen to see if anything is improved. :crossed_fingers:

The run after you merged in develop kind of failed the same way on (true,11) but was fine on (false, 11). So I'm running again to see what gives.


Add file upload callback registration for mavlink FTP server

This PR adds a method to register file uploaded to Mavlink FTP server callback.
When file is successfully uploaded the callback is called with the file path as parameter.

Thanks Matej!
How is that different from upload_async(std::string local_file_path, std::string remote_dir, UploadCallback callback);? Doesn't the callback serve the same purpose?

@JonasVautherin this is for the server to be notified when something has been uploaded, so it's different, I think.

After more testing I found some additional problems. QGC mavlink FTP client ends the upload with reset session instead of terminate and I had to find a different way to achive what I needed.
I am closing this since it is not needed anymore and it might cause problems.


Watch other files that is importing in main file (webpack)

Hello, first congrats and thanks for the project.
I'm separating files like: theme1.ts, theme2.ts, and importing in theme.ts, using import Theme1 from 'theme1', which theme1.ts has an exported object that contains the definitions from the theme using the rules.
When I import the objects from other file to increment the main object (theme.ts), the css file doesn't update with the changes. If I use only file that is defined in srcPath, that's works.
How can i do this? Using separate files for a better architecture and watching the changes.
Thanks!!

I think we only listen for changes in the src path. We can add multiple path support, or be smarter. @shaharkazaz


How to install in termux?

@open-wa/wa-automate which is used as a main library for this source code is incompatible for Termux. Because, they need a headless browser using Chromium.


Pagination dropdown (results per page) won't work

Hi,
Set pagination={true}.
The dropdown shows 10 and appears clickable but when clicked nothing happens.
Any solution?

@nirhadassi, any error on browser console? and what's version did you used and which browser?
btw, I think the problem is you forget to import bootstrap js in your application

Hey @AllenFang, thanks for your quick replay.
That's what I'm using:
react-bootstrap-table 2.0.0
Google Chrome Version 49.0.2623.87
On my component page I imported:
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
On my html page I have:

No console errors.
Am I missing anything?

I think you really missing the bootstrap js file

Thanks,
Had to add  <script src="//code.jquery.com/jquery-1.12.0.min.js"></script> to my index.html.
Hoped I wouldn't have to include jQuery but I guess there's no escape! :)

using jQuery shouldn't be needed for this component - we are having the same issue.

(oh, and we are using react-bootstrap)

having the same issue here. Did you guys find a solution yet?
The results per page dropdown does't do anything on click. The page buttons to the right do work.

@juan0087, currently, you need to import bootstap.js and css. could you please confirm that :)

Thanks for the reply @AllenFang! I think I have imported all the necessary files:

Am I missing anything else?

if you're sure that you've import these files, so any repo for reproducing it? Thanks

Same happening here!

@dariobanfi, give me a repo for me to reproduce this issue. BTW, v3.0.0 is on developing, and we wont include bootstrap.min.js anymore in future.

Hi,
Any date on when this pagination issue will be fixed.
We are very fond of this component and we are looking to deploy it in a production site. But pagination is a funcamental requirement.
Also we noticed that performance (e.g. select one row) is not good when the number of items is greater than 1500.
Any comments on this? is there a configuration option to tackle this?
keep up the good work

@mad10341,

Any date on when this pagination issue will be fixed.

did you have the same issue about the dropdown doesn't work?

Also we noticed that performance (e.g. select one row) is not good when the number of items is greater than 1500.

it's a known issues, but I really have no time to fix it. sorry... so PR is welcome.

Still hitting the same issue with React-Bootstrap-Tablev4.0.
Using Create-React-App with Webpack and no easy way to import bootstrap.js into the project as we are not using jQuery.
Real bummer cz everything else works so well and I am using it on multiple projects.
Any workaround without needing me to import jQuery into my project?

now, react-bootstrap-table no need the jQuery and bootstrap.js anymore, if you still have this issue, please give a simple repo to reproduce it, thanks.
BTW, I also use react-bootstrap-table with create-react-app in my private project, the pagination is work well until now


Sort label descriptions alphabetically

Closes #56 & makes my OCD happy :)

Happy OCD, look at dev version 0.5… ;-)


Add additional details on how maintainers can get features on the roadmap.

We should update .MAINTAINERS to clarify mechanics for adding features to the roadmap. We have an FAQ which says "the maintainers of the repo will also work with you to incorporate it into the roadmap." However, it isn't super clear how this works in MAINTAINERS.md.

@dblock can you assign this to me? I don't think I can assign it to myself.


[spaceship] Version bump

Add support for tvOS build trains in TestFlight
Update credentials_manager dependency

👍

LGTM :shipit:

Thanks 🚀


os: Getenv documentation update to point user to os.LookupEnv

go 1.5 adds os.LookupEnv (#9676)
But it is not sufficiently described on the web, e.g.
https://gobyexample.com/environment-variables
It will valuable to add reference to it to os.Getenv
documentation https://golang.org/pkg/os/#Getenv

https://go-review.googlesource.com/27322

Thanks. I would fix it myself if that was possible to edit on GitHub, but setting up the whole toolchain with Gerrit will probably take too much time for such a small change.


[1.20] mob donkey with chest dupes items when in mob capture tool

there is a machine that dupes mobs and it also dupes donkeys with chest lol, just found out in a video of a big youtuber
https://youtu.be/FsclvSVqtZo?si=aWOn1jnhcmk8YKOQ

btw, at the video, start by here: 4:44

This person has enabled "Exact Copy" in the config which is disabled by default for that exact reason. Without that config enabled it doesn't duplicate anything.


lxd/cgroup: Fix memory.swappiness detection

This fixes swappiness on CgroupV1.
CGroupV2 support is still missing though.
Closes #7916
Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

Testsuite passed