Add Math::slerp_angle

This adds a new Math utility to spherically interpolate between two angles.
It will allow users to do smooth rotations in 2D without having to deal with Transforms or Quaternions.
slerp_angle is reused in Transform2D::interpolate_with to avoid duplicate code.
Camera2D's new rotation smoothing feature will also depend on this new method #38277
Example, smoothly aim towards the mouse location
extends Sprite
var turn_speed = 5
func _process(delta):
    var mouse_angle = position.direction_to(get_global_mouse_position()).angle()
    rotation = slerp_angle(rotation, mouse_angle, turn_speed * delta)

It will allow users to do smooth rotations in 2D without having to deal with Transforms or Quaternions.

I don't understand the use case, I don't know of any situation where you would be using quaternions in 2D to begin with.

I don't understand the use case, I don't know of any situation where you would be using quaternions in 2D to begin with.

True.
But there is no straight forward way to do smooth rotations for 2D. This will new method will be for that use case.

I think the documentation needs to mention how it's different from lerp and what the use cases are.

Slerp is spherical linear interpolation, for the 3d case. In 2d, you don't interpolate a sphere, you interpolate a circle, which is much simpler, and lerp_angle does this. If you check the results of your slerp (if you've done it correctly), it should approximate the same answer as lerp_angle.

Yes, as @lawnjelly said there is already an exisitng lerp_angle function, which likely work as a circular interpolation. There no need for a duplicate version.
If it is not, lerp_angle could simply be exposed to gdscript.

slerp_angle was taken from Transform2D::interpolate_with. It was made into its own method in Math, so it can be reused in elsewhere. But if lerp_angle does the same thing we can use that instead.
Should Transform2D::interpolate_with use Math::lerp_angle instead to interpolate is rotation?

Should Transform2D::interpolate_with use Math::lerp_angle instead to interpolate is rotation?

Quite possibly, but the situation there is a bit more complex coming from a Basis, there might be some non-obvious reason of numerical stability, for instance if r1 or r2 is undefined. I'd ask the author unless you are prepared to spend time rigorously testing it.

The numerical stability reasoning makes sense for Transform2D.
For now, I think Camera2D rotation smoothing is good enough with Math::lerp_angle. Further details can be discussed in #38277.
Thanks for everyone's input.


EIP1559 JSON RPC Changes

https://hackmd.io/@timbeiko/1559-json-rpc

@sc0Vu can we do an EIP1559 transaction? it seems that the new parameters ['maxFeePerGas'=>'0xb2d05e00',
'maxPriorityFeePerGas'=>'0xb2d05e00','type'=>0x2] are ignored


python310Packages.readme_renderer: 37.2 -> 37.3

Description of changes
https://github.com/pypa/readme_renderer/releases/tag/37.3

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 198899 run on x86_64-linux 1

6 packages failed to build:

python310Packages.spacy
python310Packages.spacy-transformers
python310Packages.textacy
python39Packages.spacy
python39Packages.spacy-transformers
python39Packages.textacy

61 packages built:

apache-airflow (python310Packages.apache-airflow)
check_systemd
dialect
dtrx
evdevremapkeys
home-assistant-component-tests.google_translate
keepkey_agent (python310Packages.keepkey_agent)
ledger_agent (python310Packages.ledger_agent)
luigi
mailman-web
mnemosyne
onlykey-agent
pypiserver (python310Packages.pypiserver)
python310Packages.ansible-kernel
python310Packages.ansible-runner
python310Packages.gtts
python310Packages.invocations
python310Packages.langcodes
python310Packages.language-data
python310Packages.libagent
python310Packages.marisa-trie
python310Packages.nagiosplugin
python310Packages.ndjson
python310Packages.python-daemon
python310Packages.readme
python310Packages.readme_renderer
python310Packages.restview
python310Packages.salmon-mail
python310Packages.textx
python310Packages.toggl-cli
trezor_agent (python310Packages.trezor_agent)
twine (python310Packages.twine)
python310Packages.wheel-inspect
python310Packages.wordfreq
python39Packages.ansible-kernel
python39Packages.ansible-runner
python39Packages.apache-airflow
python39Packages.gtts
python39Packages.invocations
python39Packages.keepkey_agent
python39Packages.langcodes
python39Packages.language-data
python39Packages.ledger_agent
python39Packages.libagent
python39Packages.marisa-trie
python39Packages.nagiosplugin
python39Packages.ndjson
python39Packages.pypiserver
python39Packages.python-daemon
python39Packages.readme
python39Packages.readme_renderer
python39Packages.restview
python39Packages.salmon-mail
python39Packages.textx
python39Packages.toggl-cli
python39Packages.trezor_agent
python39Packages.twine
python39Packages.wheel-inspect
python39Packages.wordfreq
strictdoc
wlc

Failures will be addressed with #198848.


Does TCFormer able to exporting to onnx?

seems TCFormer have a clustering step, how to exporting that to onnx?

Sorry, I am not familiar with ONNX. Not sure about that.


Replace Promise.all w Promise.allSettled in Mass deployment script

Description
Edit mass deployment script
Related Issues

https://github.com/threefoldtech/tfgrid-sdk-ts/issues/1731

Checklist

[ ] Tests included
[ ] Build pass
[ ] Documentation
[ ] Code format and docstrings
[ ] Screenshots/Video attached (needed for UI changes)

something is wrong with the counter, the total should be 20 not 15


Zarinpal

hi
please put zarinpal gateway in this module
thanks for useful module

very soon, in 1.1 version.
thanks.


CRenderFunction in CSidebar not rerender

Operating system and version: Windows 10
Browser and version: MS Edge

When RFKey key was changed, it only append to CSidebar and it not rerender component.
Ex: when you re-login(not reload) then it will duplicate the nav items.

Please provide the repro (you can fork https://codesandbox.io/s/coreui-vue-dynamic-sidebar-gurry?file=/src/App.vue)


Bug in make bundle-push

Found a small issue in Makefile while trying out bundle creation. make bundle-push is referring to undefined "docker-push" instead of "local-image-push"

OK to close.


Update ServiceAreaOriginLookup to take ContractCode into account

Description
This PR adds a condition to the ServiceAreaOriginLookup to account for the contract_code. It passes in the defaultContractCode which has been hardcoded to TRUSS_TEST
Reviewer Notes
In addition to testing locally with the sql query below please let me know if there's another approach for verifying this ticket
Setup
select * from re_domestic_service_areas
join re_zip3s on re_zip3s.domestic_service_area_id = re_domestic_service_areas.id
join re_contracts on re_contracts.id = re_domestic_service_areas.contract_id
where re_zip3s.zip3 = '176'
and re_contracts.code = 'TRUSS_TEST';

Code Review Verification Steps

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in
Querying the Database Safely
have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

@pearl-truss I think we may be able to test this by using the acceptance test wiki page and create a payment request, but you might have already tried and didn't find a good way to test if the actual query you changed had any effect. Happy to talk about it after standup.

Yeah I tried to create a payment request with service items that depended on service area but I wasn't able to figure out a way to verify the specific query. And yes, if you have time, let's pair later today

Warnings

:warning:
Please add the JIRA issue key to the PR title (e.g. MB-123)

  Generated by :no_entry_sign: dangerJS against fc65ec2c6d098c8ac0ee035bd3d28a718bee96c6


Add "Address identity" on Payment proof popup

Not relevant anymore, the field was renamed into "Wallet signature" in this task https://github.com/BeamMW/beam-ui/issues/590


Use prettier for GraphQL query prettification

This PR uses prettier to format GraphQL queries which addresses #2023.
There were some diffs in a couple package-lock.json files that seem to be related to my environment. Particularly the removal of "dev": true all over the place. I did some looking up on how to resolve this, but was having little luck. If this is undesirable, do you have any suggestions for what I can change locally to avoid it? I'm using nvm to manage the node version according to the .nvmrc file. Maybe npm version?

I'll look into it a bit more. If not, I'm happy to go the plugin route.

There is not a way to do this currently with the graphql library. There is an issue to add pretty-printing and some related pull requests, but for now print is the only option and its primary function is not for prettifying. It looks like the recommended approach for now is to use prettier so a plugin is the way to go here.


[6.1.1]When you Select the project to save artifact it displays an arrow sign to expand

[6.1.1]When you Select the project to save artifact it displays an arrow sign to expand
E.g., when you create a proxy as given in the attached screenshot it shows an arrow to expand. But when you click on the arrow it dissapears. This might give a user a wrong understanding.

moved to https://github.com/wso2/product-ei/issues/2478


Fix linter issues

This fixes linter issues that previously caused extension builds to fail. I've also added a npm script to make it easier to run eslint

thanks for adding the lint script! I would love to make it block merges to main soon.


[MISC] Replace input/output token throughput with token throughput

I found that the input and output token throughput in the benchmark serving script is misleading, because they are calculated by the end to end latency instead of prefill or decode latency. While it's not clear how we could measure prefill or decode latency separately, this PR replaced these metrics directly with token throughput.
@KuntaiDu please help review and let me know whether this would affect the performance benchmark.
Also cc @ywang96 @SolitaryThinker

cc @mgoin where we originally added this. I think the main reason behind it was for needing to know the output throughput...

cc @mgoin where we originally added this. I think the main reason behind it was for needing to know the output throughput...

I see, I guess in that case maybe we should just get rid of input throughput? The problem with this metric is that in almost all cases it’s underestimating the actual throughput capacity of prefill.

Well my point is this measurement of both input and output throughput are inaccuracy and misleading especially with chunked prefill enabled. I personally feel comparing this inaccurate metric cannot reflect to real performance bottlenecks and may give people a wrong impression so we should not rely it. Meanwhile, I could understand the concern that this inaccurate metric is being used everywhere at this moment and people want to know this value when benchmarking vLLM, so I won't fight back if you champion on keeping output token throughput.
I'll update the PR to:

Keep output throughput.
Replace input throughput with total token throughput.

I would very much prefer to keep output throughput separate, since that is the usual "token throughput" reported by many other projects, including mlperf and TRT-LLM https://github.com/NVIDIA/TensorRT-LLM/blob/main/docs/source/performance/perf-overview.md#throughput-measurements
I can understand if the thought is that input throughput as-is is not accurate, so we can remove it for now, but we should try to produce it in the future as it is useful for understanding system performance. However I think it is accurate to report output throughput over the total time.
Reference from TRT-LLM benchmarking code that their token throughput is output tokens only https://github.com/NVIDIA/TensorRT-LLM/blob/78f5c2936b7bdaa56859075a3f2fcc5a63952134/benchmarks/cpp/gptManagerBenchmark.cpp#L607
        mTokenThroughput = totalOutputTokens / (mTotalLatency / 1000);

Hi, I just confused why vllm requests input length and output length to compute the total_num_tokens in throughput calculations?
e.g. in benchmark_throughput
total_num_tokens = sum(prompt_len + output_len
for _, prompt_len, output_len in requests)
It seems has different definitions on throughput.


Better pattern trick detection

This pr adds support for detecting the pattern trick without ql:has-predicate. With this change the following queries become equivalent in their execution:
SELECT ?r (COUNT(?r) as ?count) WHERE {
  ?a <is-a> <Scientist> .
  ?a ql:has-predicate ?r .
}
GROUP BY ?r
ORDER BY DESC(?count)

SELECT ?r (COUNT(?a) as ?count) WHERE {
  {
    SELECT DISTINCT ?a ?r WHERE {
      ?a <is-a> <Scientist> .
      ?a ?r ?o .
    }
  }
}
GROUP BY ?r
ORDER BY DESC(?count)

It is important that the query without ql:has-predicate counts the subjects, not the predicates.
This pr is branched off of #244

@floriankramer can you rebase this on your current predicate paths version? Also yesterday and for the current version (+ predicate paths) we just noticed that the following queries currently result in a std::bad_alloc. It might make sense to roll those fixes into this PR as well.
SELECT ?p WHERE {
   ?s ql:has-predicate ?p
}
GROUP BY ?p

Adding a (COUNT(?p) AS ?count) results in a successful query.
Also the following equivalent query has the same problem.
SELECT DISTINCT ?p WHERE {
   ?s ql:has-predicate ?p .
}

Could it be that the simple HasPredicateScan was broken for a while? Of course we should also add these two as E2E Test cases since I think it will be important to keep the explicit ql:has-predicate. Also I think since this PR will make the pattern trick implicit we will need a --no-pattern-trick flag to turn at least the magic (but not necessarily ql:has-predicate) off so we can still compare.

@niklas88 I'd wait with the rebase until the predicate paths are merged to avoid having to rebas this repeatedly.

@floriankramer I've just merged the predicate paths so this should likely be rebased now.

@niklas88 I think the bad alloc comes from a memory shortage, as the query runs without any problems on the scientists dataset. The latest commit changed the check for the pattern trick to allow for queries selecting only one of the two output columns of the pattern trick. With that change the query should hopefully run on wikidata on the current hardware. I haven't added support for using the pattern trick for the second query, as that would require growing the pattern trick check method by another series of checks tailored to queries of that form. If that is a feature we want I'll add it as well, of course.


Change the X and Y position of a character (BF, GF, Opponent)

Describe your problem here.
So im using the last version of the psych engine and i have a backgrpund with a certain space for the characters, but i cant change his positions with the code, everytime i try change a value in the code, the game close, so if someone can help me, it will be thankful
The actual last version is 0.5.2h
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
Just add a backgorund

Which one are you doing?
--this? (which crashes the game)
function onCreate()
    doTweenX('moveCharX', char, x, t, ease);
    doTweenY('moveCharY', char, y, t, ease);
end

--or this? (which works)
function onCreatePost()
    doTweenX('moveCharX', char, x, t, ease);
    doTweenY('moveCharY', char, y, t, ease);
end

if neither then send us the code so that we can debug

Im not using lua, im trying to change the x and y position in the source directly
In my case i try
boyfriend.x = 100;
dad.x = 0;
In the case of the stage (in the PlayState.hx), if i delete that, the game load normally, but if i put that in the code, the game crash

Which one are you doing?
--this? (which crashes the game)
function onCreate()
    doTweenX('moveCharX', char, x, t, ease);
    doTweenY('moveCharY', char, y, t, ease);
end

--or this? (which works)
function onCreatePost()
    doTweenX('moveCharX', char, x, t, ease);
    doTweenY('moveCharY', char, y, t, ease);
end

if neither then send us the code so that we can debug

Sorry, i didn't quote the answer

Where exactly are you placing those lines of code? You should make sure they're placed after boyfriend and dad are created.

@Staichi54

What was the error message?

@NS-Unfair There's no message, the game just close, check


poster-icon: paint poster icon with custom colors (fixes #763)

Looks good to me :)

Thanks @hounvs! I hope you can contribute even more to the project! :beers:


S3 backup directory is named only with the prefix

I need some help. I named my backup prefix "backup-".  Inside my S3 bucket, all I see is a directory named "backup-" and it contains one file.
Is this normal? And also what am I suppose to do with this backup file anyway? Is it only for exhibitor, or do I need to do something with it for recovery??  And am I expecting only one directory, or multiple directories??

The Exhibitor backup feature is documented here: https://github.com/Netflix/exhibitor/wiki/Restore-UI
On January 28, 2015 at 5:28:48 PM, bfleming<EMAIL_ADDRESS>wrote:
I need some help. I named my backup prefix "backup-". Inside my S3 bucket, all I see is a directory named "backup-" and it contains one file.
Is this normal? And also what am I suppose to do with this backup file anyway? Is it only for exhibitor, or do I need to do something with it for recovery?? And am I expecting only one directory, or multiple directories??
—
Reply to this email directly or view it on GitHub.

:(, That doesn't explain my observation about the prefix.  The docs you refer to me say nothing about what I should expect to see in my S3 bucket.  Do I expect to see a bunch of directories of the form:
-
-
Thanks

What do you set for the Backup configuration? It depends how often you have backups set for. Does the backup UI show any backups?

I tried every 60000 backup period, the rest are default. I made recent just to see if the S3 directory is created.
If I click new index, I get a single dialog telling me the logs will be added to the index, and then I see a new entry in the UI.
exhibitor-1422487524113	01/28/2015-23:07	01/28/2015-23:08	7
Which I can open.
So I guess it's working as expected? I'm very sorry for bringing up a question that I guess is obvious. I just see in the UI what is termed an "S3 Key Prefix", and the directory created is only the prefix portion. I expected to see something of the form -, and not just .
But if it's working despite the name of the key in the bucket then great.

If there's ZK no activity then no files are created.


Attempt to still resolve commands when there’s no PATH env var

Someone may be using this and not want to grant env var permissions (even though --allow-run is effectively --allow-all). It should still attempt to resolve commands in that scenario.

I dont think that's a good idea. It means the program would ignore PATH which is not good. I think at the very least dax should require --allow-env=PATH

Agree that --allow-env=PATH is the way to go.
configuring PATH is complicated, eg. this is all the resolution necessary for a cross-compatible PATH, taken from Dorothy:
https://github.com/bevry/dorothy/blob/master/commands/setup-environment-commands


[User Story] Add proposal assignment to data model

[User Story]
Add proposal assignment to data model

Epic Title
#32

User Story Title
Add proposal assignment to data model. Create a user_proposal record.

T-shirt size: S(mall), M(edium), L(arge)
M

User Story
Add proposal assignment to data model.  This data will indicate the 'owner' of the next action on this proposal and can be used to retrieve all 'owned' proposals to populate the UI for building lists of requests that need action.

Accceptance Criteria
Add to the addressing scheme a new address with an associated protobuf called "user_proposal".   Demonstrate that the UI only receives the list of proposals for the current user instead of receiving ALL open proposals (and then needs to filter them down to appropriate list)

revisit this one if perf becomes an issue.  Do we have business logic in the UI layer here?

will revisit this if design says it it needed.


File upload component not picked up by dragon on IE11

Component: https://design-system.service.gov.uk/components/file-upload/
Voice command tool dragon doesn't click on "Upload a link" input field on IE11. Though its working fine on chrome. Here is how it looks on IE -

Thanks for reporting this @nehakannaujia1 👍  We know that the native file upload element when used with Dragon is generally buggy and we've previously reported this to Nuance: https://github.com/alphagov/reported-bugs/issues/35.
So it's likely that the issue is not with the Design System file upload component but Dragon when operating the native file upload element.
However we're going to do a bit more digging into this since you reported that the component works in Chrome whereas as discussed in the above issue we haven't found this to be the case. I'm leaving this issue open for any follow up findings or comments.

@nehakannaujia1 We've re-tested the native file upload element in Chrome with Dragon. As previously reported to Nuance (alphagov/reported-bugs#35), we're still unable to click the button using the voice control commands. The commands tried were:

'click choose file'
'click upload a file'
'click file'
'click choose'
'click button'
'click upload'

As explained in my above message, we believe that that the native file upload element is generally very buggy in Dragon and that this isn't an issue with the Design System file upload component.
However, if you have been able to use the file upload component successfully in Chrome, we would be interested in hearing what voice command you used and what version of Dragon this was on.

@nehakannaujia1 We've re-tested the native file upload element in Chrome with Dragon. As previously reported to Nuance (alphagov/reported-bugs#35), we're still unable to click the button using the voice control commands. The commands tried were:

'click choose file'
'click upload a file'
'click file'
'click choose'
'click button'
'click upload'

As explained in my above message, we believe that that the native file upload element is generally very buggy in Dragon and that this isn't an issue with the Design System file upload component.
However, if you have been able to use the file upload component successfully in Chrome, we would be interested in hearing what voice command you used and what version of Dragon this was on.

@hannalaakso did you try with mousegrid or the numbered entry mode?

@hannalaakso did you try with mousegrid or the numbered entry mode?

Thanks for your comment @edwardhorsford 👍 This bug happens in the dictation mode in Dragon. Navigating by mousegrid works (see bug report). Is the 'numbered entry mode' the mousegrid as well?

Thanks for your comment @edwardhorsford 👍 This bug happens in the dictation mode in Dragon. Navigating by mousegrid works (see bug report). Is the 'numbered entry mode' the mousegrid as well?

@hannalaakso : I used the "Upload a file" command which is the label for the field and it opened the file dialogue of the window on chrome.

@nehakannaujia1 Apologies for the delay. Which version of Dragon and Chrome were you using? What operation system and version of it were you using? Was the complete voice command you used 'click upload a file'?
We tested in Dragon Professional 15 and Chrome 87 on Windows 10 and were not able to select the file input - results here.

@hannalaakso  :  yes I use "click upload" and the combinations "click upload a file". I used windows 10 but not sure bout the dragon and chrome version its been a while since I tested it. But definitely it was higher or version 15 for dragon and chrome also the latest.

@nehakannaujia1 Thank you. Would you be able to add a comment to https://github.com/alphagov/reported-bugs/issues/35? If you were able to find out the version of Dragon and include that in the comment it would be really useful. I'd like to close this issue as there is no bug to fix here on the Design System component.

@nehakannaujia1 I've added a comment on your behalf to https://github.com/alphagov/reported-bugs/issues/35#issuecomment-819683079 (excluding the version of Dragon that was used).


Train a neural network on the given dataset(s).

Given a dataset, train an ANN classifying the news as fake or real.

Given a dataset, train an ANN classifying the news as fake or real.

@Femme-js can you share the dataset with me. I'd like to try this issue.

@Femme-js can you share the dataset with me. I'd like to try this issue.

I would love to contribute on this as well

I would love to contribute on this as well

i would like to work on this issue.

i would like to work on this issue.

Datasets are available in the repo itself. Also, you can add your own datasets, by opening another issue for that.

Datasets are available in the repo itself. Also, you can add your own datasets, by opening another issue for that.

It's been a week, any updates from assignees ?

It's been a week, any updates from assignees ?

It's been a week, any updates from assignees ?

Working , mam

It's been a week, any updates from assignees ?

Working , mam

please check and merge https://github.com/Femme-js/Hoaxify/pull/33

please check and merge https://github.com/Femme-js/Hoaxify/pull/33


Router request pausing/drainage

Request pausing consists of two things:

Pausing all requests to a specific backend by continuing to accept new connections but waiting to proxy them until unpaused.
A hook to receive a notification when all existing connections have been "drained" from a backend. This hook is also useful for knowing when an old backend can be safely killed during a rolling deploy.

Request pausing is useful to perform database and other maintenance on backends without downtime (instead of returning 50x errors, there is a latency spike).
References:

https://www.braintreepayments.com/braintrust/switching-datacenters
http://signalvnoise.com/posts/3358-making-application-maintenance-fun
http://broadcast.marcoborromeo.com/2013/01/pausing-web-traffic-with-haproxy.html
http://blog.balancedpayments.com/payments-infrastructure-suspending-traffic-zero-downtime-migrations/
https://github.com/solso/insomnia

Router request draining was implemented in #3421, with some enhancements proposed in #3513.

Flynn is unmaintained and our infrastructure will shut down on June 1, 2021. See the README for details.


Create Game: Map preview issues

It shows the map size in pixels instead of
km:

It's not restricted in height, overlapping with other elements:

The map preview also isn't shown initially but only after changing the map selection:


thanos-sidecar : hard link block : operation not permitted

Thanos, Prometheus and Golang version used:
prometheus : v2.43.0
thanos : v0.32.4

Object Storage Provider:
minio
What happened:
I am running Prometheus and Thanos sidecar on a single VM in a docker environment.
Prometheus and sidecar are looking at the same tsdb path using volume monut.
When I proceed with upgrading the version of thanos-sidecar, the following error occurs:
thanos-sidecar version upgrade: v0.30.2 -> v0.32.4
Error details:
ts=2023-10-16T05:03:54.387051594Z caller=sidecar.go:354 level=warn err="upload 01HCVDP0JJ2SJVSY1GKY7EK54K: hard link block: hard link file chunks/000001: link /prometheus/01HCVDP0JJ2SJVSY1GKY7EK54K/chunks/000001 /prometheus/thanos/upload/01HCVDP0JJ2SJVSY1GKY7EK54K/chunks/000001: operation not permitted" uploaded=0
It seems to be caused by a breaking change in which the default user changed between version upgrades. How should sidecar be operated in the above situation?
breaking change :
#6107 breaking ⚠ Change default user id in container image from 0(root) to 1001 in v0.32.0
What you expected to happen:
thanos sidecar ship the metrics
How to reproduce it (as minimally and precisely as possible):
create the prometheus thanos v0.32.4 setup with same tsdb path
Full logs to relevant components:
ts=2023-10-16T05:03:54.387051594Z caller=sidecar.go:354 level=warn err="upload 01HCVDP0JJ2SJVSY1GKY7EK54K: hard link block: hard link file chunks/000001: link /prometheus/01HCVDP0JJ2SJVSY1GKY7EK54K/chunks/000001 /prometheus/thanos/upload/01HCVDP0JJ2SJVSY1GKY7EK54K/chunks/000001: operation not permitted" uploaded=0

Anything else we need to know:
prometheus is running root user
I use Docker Compose to up the container, but changing the default user to root using config is blocked within the company policy.
If I want to use Prometheus and Thanos with docker on the same VM, i will need to match each other's users because of owner permission. Is that correct?

Change the user of Prometheus to 1001.
Change the user of Thanos to nobody or root.

Yes or the Thanos user needs to have +x rights in the same dir where Prometheus writes. +x permission grants the ability to create hardlinks. Hope this helps. Closing this as we won't be able to change the user - this change was made on purpose so that users wouldn't run containers as root.

@GiedriusS Thank you for the answer. Additionally, i can create a hard link right now by adding +x permission, but the chunkfile where the actual hard link is created does not have x permission when created. This is not created by Thanos, but Prometheus. Therefore, +x permission It doesn't seem like it can be a long-term solution. Maybe I'm misunderstanding it?

This happens to me too. Prometheus works from user 65534 and Thanos works from user 1001. This makes it impossible to create hardlinks since the directory Prometheus creates is 750. It would all be easily fixable, if not in containers. Can we have an option for the Thanos UID?


Invoke chruby_auto before the prompt prints in interactive mode

@zendeavor points out that it is confusing to users that chruby_auto is invoked before the command is executed and before the prompt is printed. If user's (ex: @jc00ke) include $RUBY_ENGINE and $RUBY_VERSION in their $PS1, then these values wont be updated until the command after the cd command is executed. @zendeavor recommends using different hooking strategies for interactive vs. non-interactive modes.
Interactive

bash: PROMPT_COMMAND
zsh: precmd_functions
ksh: PS1

Non-interactive

bash: trap DEBUG
zsh: preexec_functions
ksh: trap DEBUG

This would invoke chruby_auto before PS1 is rendered in interactive mode, but invoke chruby_auto before the command is even executed in non-interactive mode.

Thank you, @caleb for that workaround! Adding my +1 for seeing this added to chruby.

I wonder whether we need to detect interactive shell in auto.sh. As far as I understand, auto.sh is only intended for interactive shell; non-interactive shell should use chruby-exec which only uses chruby.sh.


add pathlib

The purpose of this code is to provide a simple class hierarchy for handling file system paths and common user operations on them.

I need to fix some things


download all artifacts with concurrent tasks

It takes quite a long time to wait for each artifact to be downloaded if it's in a sequential manner, so I figure it might be worth adding concurrent support here.
But I'm not sure if this is implemented well. For instance, the downloading tasks can't be correctly killed if I hit Ctrl-C. Does Julia have a "standard" way of doing so? I found https://discourse.julialang.org/t/stop-terminate-a-sub-task-started-with-async/32193 but am not sure if that's okay to use.

Side note: download_all_artifacts isn't used anywhere as far as I can tell.


Make StarDist2D macro-recordable

Hi @uschmidt83,
there you go. As discussed here and here, this brings some custom macro-recording and another plugin (a bit hidden in the menu) which serves as mediator. It calls the actual StarDist2D plugin.
The macro recorder now records things like this, which are also executable:
open("/PATH/TO/IMAGES/BBBC008_v1_images/human_ht29_colon_cancer_2_images/AS_09125_050116000001_A24f00d0_slice1_channel1.tif");
run("StarDist 2D (from Macro)", "input=[AS_09125_050116000001_A24f00d0_slice1_channel1.tif] modelChoice=[Versatile (fluorescent nuclei)] modelFile=[null] modelUrl=[null] normalizeinput percentileBottom=1.0 percentileTop=99.8 probThresh=0.01 nmsThresh=0.4 outputType=Both nTiles=1 excludeBoundary=2 ");
selectWindow("Label Image");

I assume the missing macro-recordability and -callability is a bug in ImageJ2s way of building dialogs. As soon as this bug is fixed, we can revert this commit here.
If there are any issues with this plugin, feel free to tag/ping me. I'm happy to support/maintain this part.
Cheers,
Robert

Hi @haesleinhuepf, thanks for the PR!

this brings some custom macro-recording and another plugin (a bit hidden in the menu)

Is it possible to hide this new plugin completely?

I assume the missing macro-recordability and -callability is a bug in ImageJ2s way of building dialogs. As soon as this bug is fixed, we can revert this commit here.

Maybe @ctrueden can say something about that.
To be honest, I'm not too happy with merging this code (not your fault), because it would duplicate the plugin parameters in several places in the code base. (I'd have to refactor this.)
Best,
Uwe

Hi Robert,
Wow, thanks for the effort! Indeed it would be really cool for stardist to be macro-record/callable. And ideally (similar to what Uwe said) that would be possible while staying within ImageJ2 and without constructing a IJ1 helper class around. E.g. the Elastix  plugin by @tischer is imo recordable, so there seems to be a way? (paging @frauzufall @tischer @ctrueden )
cheers,
Martin

I don't understand what is meant by "I assume the missing macro-recordability and -callability is a bug in ImageJ2s way of building dialogs." SciJava commands are macro recordable by default.

Hi @ctrueden,
Thanks for chiming in!

SciJava commands are macro recordable by default.

Good news! Any idea why it would not work in our case (code here)? Maybe the additional html label parameters are the reason?
Thanks!

Hi all,
thanks for considering merging this. I assume many macro users would be really happy to be able to call StarDist.

To be honest, I'm not too happy with merging this code (not your fault), because it would duplicate the plugin parameters in several places in the code base. (I'd have to refactor this.)

@uschmidt83 I see your point. As mentioned above this might be a temporary thing until the upstream bug is fixed. I can also ship it as separate jar file if you like this solution more.

I don't understand what is meant by "I assume the missing macro-recordability and -callability is a bug in ImageJ2s way of building dialogs." SciJava commands are macro recordable by default.

@ctrueden when using StarDist, the parameters are not recorded:

If you add the parameters by hand, it still opens the dialog. Maybe also this user has the same problem:
https://forum.image.sc/t/beginner-in-clij-implementation-for-an-existing-macro/35541

Indeed it would be really cool for stardist to be macro-record/callable. And ideally (similar to what Uwe said) that would be possible while staying within ImageJ2

@maweigert  I tried quite some things with the ImageJ2-way and SciJava parameters and couldn't make it record/call correctly:
https://github.com/haesleinhuepf/stardist-imagej/blob/master/src/main/java/de/csbdresden/stardist/StarDist2DFromMacro.java#L62-L103
I have the suspicion this bug is related to recent reports:
https://forum.image.sc/t/scijava-command-macro-recording/35056
https://forum.image.sc/t/non-blocking-non-modal-ij2-plugin-dialog/8233/16
https://forum.image.sc/t/imagej2-command-macro/29650
https://github.com/scijava/scijava-common/issues/317
Let me know if I can help resolving this.
Cheers,
Robert

Funny enough, the macro seems to be recorded just fine when lauching the current StarDist plugin (without Robert's new code) from within Eclipse. I can also execute it after recording, but I still have to click the OK button.
Maybe this gives a hint as to where the problem is.

@haesleinhuepf

I tried quite some things with the ImageJ2-way and SciJava parameters and couldn't make it record/call correctly:

Yes, weird behaviour. Additionally(via @uschmidt83) when using the StarDist as a standalone plugin (e.g. from IntelliJ) recording does work correctly. Strange indeed.

@maweigert @uschmidt83 Oh weird. In my IntelliJ it doesn't...

Which main() method did you call? I tried this one but I had to change the filename...

Oh weird. In my IntelliJ it doesn't...

Oha.

Which main() method did you call? I tried this one but I had to change the filename...

Yep, this one

I also added
Recorder recorder = new Recorder();
recorder.show();

This  (in StarDist.java) works just fine:
    public static void main(final String... args) throws Exception {
        final ImageJ ij = new ImageJ();
        ij.launch(args);

        Dataset input = ij.scifio().datasetIO().open(StarDist2D.class.getClassLoader().getResource("test_img.tif").getFile());
        ij.ui().show(input);

        Recorder recorder = new Recorder();
        recorder.show();

        final HashMap<String, Object> params = new HashMap<>();
        ij.command().run(StarDist2D.class, true, params);
    }

Ok, I did a clean git checkout and can confirm that it works from my IDE...
Furthermore, I tried deploying the current StarDist.jar to a freshly downloaded Fiji with pom-scijava 28.0.0 instead of 27.0.1 and: Recording works from Fiji! 🎉
selectWindow("AS_09125_050116000001_A24f00d0_slice1_channel1.tif");
run("StarDist 2D", "input=AS_09125_050116000001_A24f00d0_slice1_channel1.tif modelchoice=[Versatile (fluorescent nuclei)] normalizeinput=true percentilebottom=1.0 percentiletop=99.8 probthresh=0.01 nmsthresh=0.4 outputtype=Both ntiles=1 excludeboundary=2 verbose=false showcsbdeepprogress=false showprobanddist=false");
selectWindow("Label Image");

I conclude that the bug is at least partly fixed, the change just didn't make it to the Fiji distribution yet. Furthermore execution of the macro works then as well. However, I still have to click the Ok button and the dialog looks like this:

Not sure if this is good or bad news ;-)

However, I still have to click the Ok button and the dialog looks like this:

Yes, that's what I also saw.
If you disable all these components (model file and url, informational messages, both buttons), it runs through without the need to click OK. At least that's what I observe when recording and running the macro (StarDist started from Eclipse).

thanks for walking along down the rabbit hole @haesleinhuepf (pun intended :)!

Furthermore, I tried deploying the current StarDist.jar (master from your repo) to a freshly downloaded Fiji with pom-scijava 28.0.0 instead of 27.0.1 and: Recording works from Fiji! 🎉

Ok! Strange still, as it did work for me (OSX) with scijava 27.0.1 (which is the version in stardists pom.xml).

However, I still have to click the Ok button and the dialog looks like this:
Not sure if this is good or bad news ;-)

Apparently, adding button parameters (even with required=false) seems to make a plugin not runnable without user intervention (defeating its whole purpose).  This seems to be the case even for the official hello world example for which run("Hello, World!", "name=Earl"); still requires to click OK.

There must be a way around this...

This seems to be the case even for the official hello world example for which run("Hello, World!", "name=Earl"); still requires to click OK.

Yes, that's what was reported on the forum as well:
https://forum.image.sc/t/scijava-command-macro-recording/35056
https://forum.image.sc/t/issue-with-a-button-parameter/29281

Yes, that's what was reported on the forum as well:
https://forum.image.sc/t/scijava-command-macro-recording/35056
https://forum.image.sc/t/issue-with-a-button-parameter/29281

Thanks! Yep, that seems to be the identical problem, this recent PR by @frauzufall being related, too.

Furthermore, I tried deploying the current StarDist.jar (master from your repo) to a freshly downloaded Fiji with pom-scijava 28.0.0 instead of 27.0.1 and: Recording works from Fiji! 🎉

Actually, it seems to have nothing to do with scijava, but with stardist itself. Deploying the plugin from commit 549a6d onwards (the PR by @lacan) will record the parameter string! And I have no idea why :)

ImageJ Magic (MagikJ)

I'm closing this since similar functionality has now been merged with PR #7.
Thanks for getting the ball rolling on this, @haesleinhuepf!


Sources for learning in Hindi added

What does this PR do?
Add resource(s)
For resources
Description
Why is this valuable (or not)?
It helps in easily availing the resources for users
How do we know it's really free?
Basically all the resources are from youtube which are free to use
For book lists, is it a book? For course lists, is it a course? etc.
Courses
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Please merge my pull request with the tag hacktoberfest accepted.
Thank you !!

For youtube, we prefer "playlist" links and the name of the producer/creator. docs/CONTRIBUTING.md#platforms-and-access-notes
no shortened links


Increased number of delegations displayed under validator page and sorted delegation list in descending order

Description

Fixes #484
Checklist

[x] Targeted PR against correct branch.
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[x] Run meteor npm run lint
[x] Added an entry to the CHANGELOG.md file.
[x] Re-reviewed Files changed in the Github PR explorer.

@MonikaCat nice one. Can it become a pagination component instead of showing a list of fixed 500 delegations?


Fix developer guide bugs

Changes:

Fix some bugs found in the developer guide

Issues:

Resolves #227

Codecov Report

Merging #236 (d4f5b95) into master (a53eb3f) will increase coverage by 0.86%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #236      +/-   ##
============================================
+ Coverage     75.25%   76.11%   +0.86%
- Complexity      817      903      +86
============================================
  Files           121      121
  Lines          2291     2474     +183
  Branches        253      290      +37
============================================
+ Hits           1724     1883     +159
- Misses          509      531      +22
- Partials         58       60       +2

Impacted Files
Coverage Δ

...dress/logic/commands/friends/AddFriendCommand.java
86.66% <0.00%> (-5.65%)
:arrow_down:

src/main/java/seedu/address/logic/parser/Flag.java
87.50% <0.00%> (-4.17%)
:arrow_down:

src/main/java/seedu/address/ui/FriendCard.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/model/GamesList.java
100.00% <0.00%> (ø)

src/main/java/seedu/address/model/game/Game.java
100.00% <0.00%> (ø)

src/main/java/seedu/address/ui/GameListPanel.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/model/FriendsList.java
100.00% <0.00%> (ø)

...rc/main/java/seedu/address/model/ModelManager.java
100.00% <0.00%> (ø)

...c/main/java/seedu/address/model/friend/Friend.java
100.00% <0.00%> (ø)

.../main/java/seedu/address/model/time/HourOfDay.java
100.00% <0.00%> (ø)

... and 10 more

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 a53eb3f...d4f5b95. Read the comment docs.


Switch to a faster library for dynamic resampling

Looks like torchaudio.Resample is not very fast compared to other libraries implementing resampling in python.
See https://github.com/jonashaag/audio-resampling-in-python
Looks like we could switch to soxr and get a 10x speed increase.

hi Juan. I found a cheap way to avoid resampling if you're using pipewire is to force the rate with
pw-metadata -n settings 0 clock.force-rate 16000


Question: Is it possible to add "fixed" request data that are always run (esp. with cli)?

Hi, thanks a lot for this really cool library.
(running schemathesis 2.3.3 on Python 3.6.5)
I'm having difficulties grasp if I can somehow add "fixed" data to the tests that is always run, in addition to the strategy-generated random data. I want this to ensure some valid interactions are performed against the API, e.g. actually getting a resource with a valid resource id, so that a response can get validated.
While I understand that maybe this should rather be accomplished with accompanying tests (?) of another notion (I'm new to
property-based testing) it is just too tempting to make use of schemathesis capabilities for it... ;-)
https://schemathesis.readthedocs.io/en/stable/faq.html#how-can-i-use-database-objects-ids-in-tests hints in the right direction of setting some valid ID but I'm having a hard time mapping this to cli mode.
I think a have a (kinda) working hook-based solution using along these lines:
# org_schemathesis.py
from typing import List

import schemathesis
from schemathesis.models import Case
from hypothesis import strategies

@schemathesis.hooks.register
def before_add_examples(
        context: schemathesis.hooks.HookContext,
        examples: List[Case],
    ) -> None:
    examples.append(
        Case(endpoint=context.endpoint, path_parameters={'employeeId': 12345})
        )

If I run this like
rm -fr ~/.hypothesis ./cassette.yaml && schemathesis --pre-run org_schemathesis run org-service_0.0.2.yaml --base-url=http://my.server.net:8081 --show-errors-tracebacks --auth="$ORG_AUTH" --checks=response_schema_conformance  -E /employees/ --store-network-log=cassette.yaml

I can see my hardcoded employeeId put to use in the stored cassette.yaml, along with an actual response, with a
status: 'SUCCESS' result.
Is this a proper way to do this? IIUC the example data will always get used for the tests.
Another trouble, slightly related: If I run above with --checks=all my hardcoded test data is still reported and still has a a proper
response status & data, but it is mysteriously marked as a 'FAILURE' now.
I suspect this is due to the fact that I now see other failures (for status_code_conformance checks) ; I fear there's some bug in
storing the proper status for each http_interaction  in cassette.yaml.
Best regards,
Holger

Hi Holger!

thanks a lot for this really cool library.

Thank you for your kind words!
There are multiple ways to add some fixed data to the testing process and at the moment for the CLI mode the following will work:

Adding examples to the schema directly. We support the most ways specified by the spec  - https://swagger.io/docs/specification/adding-examples/ . Note, named examples via examples are not supported yet.
The second way is with hooks, exactly as you implemented.

In the CLI mode, there is no much control available for the user in comparison with plain Python tests, so the intended way to extend the CLI mode behavior is with hooks.
For the Python case, the methods mentioned above will work but also it is possible to:

Add hypothesis.example() decorator to a test function. See usage in the docs
Manually update the case instance with some hard-coded values. Probably not that helpful in general, but it was the only available approach in the early days of the project and still could be applied

I suspect this is due to the fact that I now see other failures (for status_code_conformance checks) ; I fear there's some bug in
storing the proper status for each http_interaction in cassette.yaml.

Interesting! Is there any output from the other checks? I will check this in the next following days
Cheers,
Dmitry

Dear Dmitry,
thanks for your instant response!

There are multiple ways to add some fixed data to the testing process and at the moment for the CLI mode the following will work:

Adding examples to the schema directly. We support the most ways specified by the spec - https://swagger.io/docs/specification/adding-examples/ . Note, named examples via examples are not supported yet.

Yeah, I gathered that from the docs but I don't usually have control over the OAS schema / wouldn't want to modify it just for this purpose.

The second way is with hooks, exactly as you implemented.

Perfect! Works for me. I just had a bit of a hard time of finding this approach in the docs so I wondered if there's something more straightforward.

I suspect this is due to the fact that I now see other failures (for status_code_conformance checks) ; I fear there's some bug in >>   storing the proper status for each http_interaction in cassette.yaml.

Interesting! Is there any output from the other checks? I will check this in the next following days

Well some of the other checks fail with e.g. status_code_conformance failures, when run with --checks=all instead, like
2. Received a response with a status code, which is not defined in the schema: 404

Declared status codes: 200, 204, 400, 503

Check           : status_code_conformance
Path parameters : {'employeeId': '%C2%85'}
Headers         : {'Authorization': 'Basic Og=='}

Run this Python code to reproduce this failure: ...

I could try to hack up some small sample/gist e.g. with fastapi that demonstrates the behaviour but probably won't be able to do so before mid-September due to holiday reasons :-).
Thanks again, Holger

Hi Holger,
As I see, the status conformance error is right since the 404 code is not declared in the schema. The final status is calculated from all included checks - if any check is failed, then the status is "FAILURE". It doesn't necessarily mean that the response should have 500 status code - it is only one of the available checks.
I think we can do the following:

#702. It will make the information in cassettes more obvious - e.g., why the particular test was marked as "FAILURE";
Document this behavior in our docs;

Let me know if we can do something more to improve this area :)

Hi Dmitry,
by final status, do you mean that if a single request GET /endpoint/ is performed, than this will get checked for

not_a_server_error
status_code_conformance
content_type_conformance
response_schema_conformance

and if any these checks for one single endpoint invocation fail then it is status: 'FAILURE'?
Makes sense. Yes, I suppose #702 would then provide helpful insight into the failure reason.
But I think I have a slightly different problem:
I force-add a fixed example to the test samples by pre-run hook, e.g. to make sure certain known values get "triggered". I run with --checks=response_schema_conformance i.e. exclude status_code_conformance checking (amongst others).
I run this against a service with status conformance problems - all tests are successful, as these errors aren't checked for.
I then rerun all checks and expect some tests to fail, but I'd also expect some tests to be successful.
Minimal example using fastapi:
A simple fastapi hello-world-service. The marked lines have been added after an initial retrieval of its openapi.json:
# main.py
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel

app = FastAPI(title='hello-world-service')

# data model
class HelloResponse(BaseModel):
    message: str

@app.get("/hello", response_model=HelloResponse)
def read_hello():
    return {"message": "Hello, world!"}

@app.get("/hello/{name}", response_model=HelloResponse)
def read_hello_name(name: str):
    ######
    # These lines have been added after retrieving openapi.json from fastapi service,
    # so they provoke a status result that is definitely not documented in our oas spec.
    if name == '0':
        raise HTTPException(status_code=404, detail="not found")
    ######
    return {"message": f"Hello, {name}!"}

My hook:
# add_examples.py
from typing import List

import schemathesis
from schemathesis.models import Case

@schemathesis.hooks.register
def before_add_examples(
        context: schemathesis.hooks.HookContext,
        examples: List[Case],
    ) -> None:
    examples.append(
        Case(endpoint=context.endpoint, path_parameters={'name': 'holger'})
        )

Run test subset:
rm -fr ~/.hypothesis ./cassette.yaml && ~/pydev/venv/schemathesis-venv/bin/schemathesis --pre-run add_examples run openapi.json --base-url=http://myserver.net:8000 --show-errors-tracebacks --checks=response_schema_conformance  -E /hello/ --store-network-log=cassette.yaml
======================= Schemathesis test session starts ======================
platform Linux -- Python 3.6.5, schemathesis-2.3.3, hypothesis-5.23.3, hypothesis_jsonschema-0.17.3, jsonschema-3.2.0
rootdir: ...
Specification version: Open API 3.0.2
Workers: 1
collected endpoints: 1

GET /hello/{name} .                                                     [100%]

=================================== SUMMARY ===================================

Performed checks:
    response_schema_conformance                    101 / 101 passed          PASSED

Network log: cassette.yaml

All tests are reported as succesful, including my custom added example:
$ grep "status: 'SUCCESS'" cassette.yaml |wc -l
101

Now rerun with --checks=all:
$ rm -fr ~/.hypothesis ./cassette.yaml && ~/pydev/venv/schemathesis-venv/bin/schemathesis --pre-run add_examples run openapi.json --base-url=http://myserver.net:8000 --show-errors-tracebacks --checks=all  -E /hello/ --store-network-log=cassette.yaml
======================= Schemathesis test session starts ======================
platform Linux -- Python 3.6.5, schemathesis-2.3.3, hypothesis-5.23.3, hypothesis_jsonschema-0.17.3, jsonschema-3.2.0
rootdir: ...
Specification version: Open API 3.0.2
Workers: 1
collected endpoints: 1

GET /hello/{name} F                                                     [100%]

=================================== FAILURES ==================================
______________________________ GET: /hello/{name} _____________________________
1. Received a response with a status code, which is not defined in the schema: 404

Declared status codes: 200, 422

Check           : status_code_conformance
Path parameters : {'name': '0'}

Run this Python code to reproduce this failure:

    requests.get('http://myserver.net:8000/hello/0')

Or add this option to your command line parameters: --hypothesis-seed=87345815337462284460351829168824299911
=================================== SUMMARY ===================================

Performed checks:
    not_a_server_error                             4 / 4 passed          PASSED
    status_code_conformance                        1 / 4 passed          FAILED
    content_type_conformance                       4 / 4 passed          PASSED
    response_schema_conformance                    4 / 4 passed          PASSED

Network log: cassette.yaml

Now, all tests are reported as failures; this includes my custom fixed example:
command: 'schemathesis --pre-run add_examples run openapi.json --base-url=http://myserver.net:8000 --show-errors-tracebacks --checks=all -E /hello/ --store-network-log=cassette.yaml'
recorded_with: 'Schemathesis 2.3.3'
http_interactions:
- id: '1'
  status: 'FAILURE'
  seed: '138515993875395522801610595088206829211'
  elapsed: '0.006496'
  recorded_at: '2020-10-02T18:41:46.480052'
  request:
    uri: 'http://myserver.net:8000/hello/holger'
    method: 'GET'
    headers:
      User-Agent:
      - 'schemathesis/2.3.3'
      Accept-Encoding:
      - 'gzip, deflate'
      Accept:
      - '*/*'
      Connection:
      - 'keep-alive'
    body:
      encoding: 'utf-8'
      base64_string: ''
  response:
    status:
      code: '200'
      message: 'OK'
    headers:
      date:
      - 'Fri, 02 Oct 2020 16:41:45 GMT'
      server:
      - 'uvicorn'
      content-length:
      - '28'
      content-type:
      - 'application/json'
    body:
      encoding: 'utf8'
      base64_string: 'eyJtZXNzYWdlIjoiSGVsbG8sIGhvbGdlciEifQ=='
    http_version: '1.1'
...

I'd say this clearly should still be 'SUCCESS'. Of course, some of the other tests are bound to fail :-).
Hm, on a sidenote: Why does schemathesis run only 4 tests in the latter case? Something to do with hypothesis/property based testing works generally?
Best regards,
Holger

Hi, Holger!
Thank you for providing such a detailed report! :+1:  I will take a look at it tomorrow and respond as soon as I have more info!

and if any these checks for one single endpoint invocation fail then it is status: 'FAILURE'?

Yes, that's correct

Why does schemathesis run only 4 tests in the latter case? Something to do with hypothesis/property based testing works generally?

It is the default Hypothesis behavior in such cases - if an error is found, then it often stops searching for new cases (especially if the found error is already close to its possible minimal form)

Great! Not urgent at all for me, btw.

Thank you for providing such a detailed report

A pleasure! 😀
One thing I wanted to mention but forgot: Note how the stdout/stderr output reports successful tests but in the cassette everything's marked as a failure.
And thanks for the hypothesis fail-fast behaviour explanation, much appreciated.

You are very welcome!

I will take a look at it tomorrow and respond as soon as I have more info!

It turned out that this "status" value comes from the overall test item outcome, not an individual response validation, which is misleading and wasn't intended to work like this. Will fix it soon :)

#702 is resolved and #779 is merged :) I will release these changes next week :)

Thank you for your patience and time, Holger :)


XHLAI not reset when DYNAMIC .EQ. SEASINIT in plant.for

When running DSSAT-CSM-CROPSIM-CERES-Wheat in seasonal mode, the XHLAI value is not reset when DYNAMIC .EQ. SEASINIT:
https://github.com/DSSAT/dssat-csm-os/blob/e4470f7113d91a11ef6c34b6f554b83248f8d4a7/Plant/plant.for#L332-L347
When SEASINIT matches PDATE, then this is not a big problem because the DYNAMIC .EQ. INTEGR will reset XHLAI to XLAI soon after simulation starts. However, if final XHLAI from a previous run is not small and SEASINIT is substantially before PDATE (e.g. 3 month spinup), then ET will be simulated much higher than it should be. I believe that this will be a potential problem for any model that (unlike CROPGRO, N-wheat, etc) does not directly calculate XHLAI. One solution that should work would be to modify the code for those models a la:
       IF (DYNAMIC .EQ. SEASINIT) THEN
          KTRANS = KEP
          KSEVAP = KEP
          XHLAI = XLAI
        ELSEIF (DYNAMIC .EQ.  Presumably the value would usually (always?) be 0 and we could code it up with that assumption, but allowing each model to set this seems like a more flexible option. @chporter @GerritHoogenboom, any thoughts?

Phil,
I can see where potential T is not calculated correctly. However, root
water uptake = 0 so actual T should be 0 as well. Do you have an example
in which the model showed a value for T prior to planting?
I just looked at the Plant routine and it is not handled well for the
different crop modules. Maybe it should be handled up front for all crop
modules.
Gerrit
On 10/10/2020 12:57 PM, palderman wrote:

[External Email]
When running DSSAT-CSM-CROPSIM-CERES-Wheat in seasonal mode, the XHLAI
value is not reset when |DYNAMIC .EQ. SEASINIT|:
https://github.com/DSSAT/dssat-csm-os/blob/e4470f7113d91a11ef6c34b6f554b83248f8d4a7/Plant/plant.for#L332-L347
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DSSAT_dssat-2Dcsm-2Dos_blob_e4470f7113d91a11ef6c34b6f554b83248f8d4a7_Plant_plant.for-23L332-2DL347&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=t3kDP14kBwiCg5T0dTAewQ&m=sea8imAN1c79cQvjbsn213J8LM3TQD6VTfCqe8Esckg&s=6hqkb65yrF_e0tScjgvzTIZxxlMESFj-6SSXA96H6oQ&e=
When SEASINIT matches PDATE, then this is not a big problem because
the |DYNAMIC .EQ. INTEGR| will reset XHLAI to XLAI soon after
simulation starts. However, if final XHLAI from a previous run is not
small and SEASINIT is substantially before PDATE (e.g. 3 month
spinup), then ET will be simulated much higher than it should be. I
believe that this will be a potential problem for any model that
(unlike CROPGRO, N-wheat, etc) does not directly calculate XHLAI. One
solution that should work would be to modify the code for those models
a la:
|IF (DYNAMIC .EQ. SEASINIT) THEN KTRANS = KEP KSEVAP = KEP XHLAI =
XLAI ELSEIF (DYNAMIC .EQ.  Presumably the value would usually (always?) be 0
and we could code it up with that assumption, but allowing each model
to set this seems like a more flexible option. @chporter
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_chporter&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=t3kDP14kBwiCg5T0dTAewQ&m=sea8imAN1c79cQvjbsn213J8LM3TQD6VTfCqe8Esckg&s=PiUuDt4ZA9HHnJIzA3-k9a1min0sKhw8eKW41vHzd20&e=
@GerritHoogenboom
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_GerritHoogenboom&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=t3kDP14kBwiCg5T0dTAewQ&m=sea8imAN1c79cQvjbsn213J8LM3TQD6VTfCqe8Esckg&s=grwRcVxVENM-ArNQW_MPxCh9VZpwGCiwSNrQGAqwP_E&e=,
any thoughts?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DSSAT_dssat-2Dcsm-2Dos_issues_41&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=t3kDP14kBwiCg5T0dTAewQ&m=sea8imAN1c79cQvjbsn213J8LM3TQD6VTfCqe8Esckg&s=wo9L-WfzXFQ9zzmT-phrr5CzZb9yJFRJtrr8ebNr84I&e=,
or unsubscribe
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AA774W6T65A4CAEAGHLG3HDSKCG7NANCNFSM4SLFWI7Q&d=DwMCaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=t3kDP14kBwiCg5T0dTAewQ&m=sea8imAN1c79cQvjbsn213J8LM3TQD6VTfCqe8Esckg&s=Ad0r6YXe4sQMH7OYucnarX_Eh4zQyUApaVXIG_DlDso&e=.

--
Gerrit Hoogenboom
Preeminent Scholar, Institute for Sustainable Food Systems
Professor, Agricultural and Biological Engineering
184 Frazier Rogers Hall
PO Box 110570
University of Florida
Gainesville, Florida 32611-0570, USA
+1<PHONE_NUMBER>; Fax: +1<PHONE_NUMBER>
<EMAIL_ADDRESS>www.GerritHoogenboom.com
http://isfs.institute.ifas.ufl.edu


Missing .csproj files in sdk/template

The new dotnet new templates should have .csproj files for projects that need them e.g., under "src" and "tests". Anything within them can also be replaced by the .template.config/template.json file as the previous sdk/template did. dotnet new azsdkdpg should generate a working template even without the wrapper script (which can do more than a template can still).

Hi @heaths Which .csproj files are missing? thanks.
This is the one I generated by dotnet new https://github.com/chunyu3/azure-sdk-for-net/tree/TemplateSample/sdk/sample.
Would you please tell me the steps you did so that I can reproduce it on mysite? Thanks

With all the renames the previous PR showed, I was confused. The plan was that sdk/template/Azure.Template was the output of a separate directory that contained the .template.config directory and all files. But what I see here is you effectively made sdk/template/Azure.Template the template, which is what I had before. Correct?

The parent folder of '.template.config' will the be entry folder for dotnet new. so we will install template via sdk\template. ( dotnet new -i sdk\template).
All the files and folders under sdk\template should copied to the generated sdk package except '.template.config'. But we need some placeholder files which I put them under .content and exclude .content in the template.json (that is .content directory will not be in SDK package).
As a result, the generated package will only contain the Azure.Template directory and some files will be replaced by the one in .content.

It can work, but was not the original plan. If we were just going to keep the template rooted in sdk/template we didn't need all the placeholder files. As discussed very early on, content within the existing files can (and was, to a lesser extent you needed) be filtered out. I only had unconditional sample code included for just that purpose: sample code. Now sdk/template contains duplicate source for quite a few files and is harder to understand / maintain, IMO. This could be simplified if you go back to what I had originally and just condition out the implementations you don't want.

Hi @heaths I will investigate how to use flags(see following) in files under sdk/template/Azure.Template and eliminate the contents between the flags when generate the starter package via template.
#region Azure_Template_GetSecretAsync
......
region
Is above solution the one we want? Thanks

Could you clarify? I'm not sure what you're asking.
My point was that we should either keep a completely different set of template files - which was the last plan we had discussed with @weshaggard - or use the src/Azure.Template files with content we don't want filtered out like how I had it before. Mixing the two methods is very confusing, hence this bug. Future maintainers not directly involved in these past discussions will probably be more confused.

@chunyu3 do we still use the template folder to generate the DPG SDKs?

@pallavit  Yes, we still use this script to help customer to create DPG SDK folders for new services. And I think the issue is resolved.
We can close this.


Logging displays messages AND params unnecessary

We show the log message AND the params (as a UL beneath). The params feel redundant. Is there a good reason not to remove them as they increase the size/length of the logs (which can get very long already).

Removed params unordered list

Capturing offline convo w @chetanmeh on this topic:

For the display you can omit
They were meant to avoid any text interpolation where code new that this param is having the interesting value when doing log analysis on client
For display normal log line should be fine


CounterCache and extended email suport

Provides solutions for Issues #51 (when loading Join Team Page stops reduces necessary queries and hides teams with no members since they aren't joinable), #41 (sends emails to the top teams upon competition completion), and #38 (sends a reminder to all users one week before the competition starts)
Cronjob is scheduled for 8AM, the reminder email is sent 1 week before competition start, the ranking and resume emails are sent the day after competition end.
Empty teams are hidden on other pages as well.

Coverage decreased (-0.004%) to 97.691% when pulling 4d5a0b5bd03236b7079971c08ce3b9528de2fd1b on switchToCounterCache into b724a1fb93d6e8987008f6b3f3a0ab2d167ed524 on master.

Coverage increased (+0.1%) to 97.823% when pulling 2ce69936c07dcac02412bdd9730b420bc8905954 on switchToCounterCache into b724a1fb93d6e8987008f6b3f3a0ab2d167ed524 on master.

Coverage decreased (-0.1%) to 97.587% when pulling 94f430bb92c721337a41af53f51df27c201fbb93 on switchToCounterCache into b724a1fb93d6e8987008f6b3f3a0ab2d167ed524 on master.

Coverage increased (+0.2%) to 97.896% when pulling b27105f67bc8bf2706bdb0a6fb12d399f390e994 on switchToCounterCache into b724a1fb93d6e8987008f6b3f3a0ab2d167ed524 on master.

Coverage increased (+0.2%) to 97.897% when pulling 5592bc96d2a7b4f17e020513141147c32654f613 on switchToCounterCache into b724a1fb93d6e8987008f6b3f3a0ab2d167ed524 on master.

Coverage increased (+0.2%) to 97.875% when pulling 3d7c84f7e8594d7fe6db72a668dadfb2ff94f0fb on switchToCounterCache into b724a1fb93d6e8987008f6b3f3a0ab2d167ed524 on master.

Coverage increased (+0.2%) to 97.872% when pulling 1f8f4c2bff627bd764b0fe118a7ffc9aa27cba58 on switchToCounterCache into ab0b7cc3d69d64c5bbc8a1710eeafc5997a1bf4c on master.

Coverage increased (+0.2%) to 97.871% when pulling 0ece2d4935ba989f63b5c0d3f9d7bd10ccd2c757 on switchToCounterCache into ab0b7cc3d69d64c5bbc8a1710eeafc5997a1bf4c on master.

Coverage increased (+0.04%) to 97.607% when pulling 6d5850c6691c6a2ea0d6a619527efc131f51bbe3 on switchToCounterCache into bd8caa9849f8fadf3f1ec8318307eeb07ed16271 on master.

Coverage decreased (-2.0%) to 95.592% when pulling 6d5d10efdacef7ffa50af5453fb5f7d4f88cd474 on switchToCounterCache into bd8caa9849f8fadf3f1ec8318307eeb07ed16271 on master.

Coverage increased (+0.04%) to 97.607% when pulling a9a59f39653e1eea11f60b0aaac21003e3c8752c on switchToCounterCache into bd8caa9849f8fadf3f1ec8318307eeb07ed16271 on master.

Coverage decreased (-4.3%) to 93.258% when pulling 5ce3521a9dbd5fa9ede2dc87c9a87fd752cdb9f5 on switchToCounterCache into bd8caa9849f8fadf3f1ec8318307eeb07ed16271 on master.

Coverage increased (+0.04%) to 97.606% when pulling 6316a0858cfbdb2d6fed14447bb7827e445bbc09 on switchToCounterCache into bd8caa9849f8fadf3f1ec8318307eeb07ed16271 on master.

Coverage increased (+0.07%) to 97.641% when pulling 680e51ce9eb2b140af0233f9bb84eb7417e48554 on switchToCounterCache into bd8caa9849f8fadf3f1ec8318307eeb07ed16271 on master.

Coverage decreased (-0.5%) to 97.081% when pulling 967b4bfa25fcf4b0ce81ce3dbd602e78f9ac72dd on switchToCounterCache into bd8caa9849f8fadf3f1ec8318307eeb07ed16271 on master.

Coverage increased (+0.08%) to 97.643% when pulling b99847dc0ea1a8aed3921c8ca3d4410be08ac3ed on switchToCounterCache into da0f9ef33fa9ac8d52fd87d10925a4027a0fe3e4 on master.

Closes #42, #39, #41, and #38

Also closes #51


Wrong prop type  in Chapter 11-4

In Chapter 11 section 4:Updating the table, the type of the searchParams.page should be number not string in the first code snippet.

https://nextjs.org/learn/dashboard-app/adding-search-and-pagination

Hey @chengd42, the type returned in searchParams is a string. You can confirm it by adding console.log(typeof searchParams?.page).
We are coercing it to a number to make it work with our fetchInvoicesPages and fetchFilteredInvoices function:
const currentPage = Number(searchParams?.page) || 1;

I got it, thank you for the explanation!


help needed: missing stylesheets

I managed to include your datepicker into my angular 6 project (after some necessary modifications in your source files due to new rxjs behaviour; refer to  https://github.com/ReactiveX/rxjs/blob/master/MIGRATION.md, but the stylesheets seem to be missing:

The package @coachcare/datepicker includes the file "_theming.scss". I added this file to the styles array in angular.json, but without success... Any advice?

Hi @ngi32487!
I'm sooo sorry I didn't read this before!
I was in the middle of a travel a month ago, sorry!
I hope you figured that this Material module needs to be themed as the others, next to the inclusion of the Angular Material theming of your application. Like in your styles.scss:
@import '../node_modules/@coachcare/datepicker/theming';

@include mat-datepicker($theme);

If you need to understand the theming better read this article:
https://blog.thoughtram.io/angular/2017/05/23/custom-themes-with-angular-material.html
P.S. I just synced this datepicker to the most recent code on the official module, but with time support. Do you mind to submit a PR with your rxjs updates?
Thanks!! and apologies again!

Thank you for the reply, but I don't get the theme to work... maybe I have to learn scss first or port my project to use scss instead of css.
No I don't mind sharing my rxjs updates, but actually your latest release made nearly all my changes obsolete. v0.9.0 requires only minor changes:
years-view.d.ts:
Replace

import 'rxjs/add/observable/fromEvent';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/mergeMap';
import 'rxjs/add/operator/sampleTime';
import { Subscription } from 'rxjs/Subscription';

with

import { Subscription, of, fromEvent } from 'rxjs';
import { mergeMap, sampleTime } from 'rxjs/operators';

fesm5/coachcare-datepicker.js:
Replace

import { Subject, merge, Subscription, of } from 'rxjs';
...
import 'rxjs/add/observable/fromEvent';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/mergeMap';
import 'rxjs/add/operator/sampleTime';
import { Observable } from 'rxjs/Observable';

with

import { Subject, merge, Subscription, Observable, of, fromEvent } from 'rxjs';
import { mergeMap, sampleTime } from 'rxjs/operators';

...that's it.

@ngi32487 I've just released @coachcare/datepicker 0.9.2 with some default css files like Angular Material :D
Now you can include in your angular.json the style directly like
"styles": [
<EMAIL_ADDRESS>  "styles.css"
]

and get your styled datepicker.
I'm also using CSS variables supported by most of the modern browsers nowadays (https://www.w3schools.com/css/css3_variables.asp), and you can define the colors with:
body {
  --primary: rgba(73, 200, 242, 1);
  --primary-contrast: #fff;
  --primary-a60: rgba(73, 200, 242, 0.6);
  --primary-a80: rgba(73, 200, 242, 0.8);
}

Enjoy!


Feat: expose all Sentry options as module options

includes PR https://github.com/ntegral/nestjs-sentry/pull/15
update packages
iterate version

@ntegral can you merge this PR? If something missing, let me know. Basically, with these changes, we can enable "Tracing" (performance) in Sentry.  Thank you in advance!
CC: @andrucz


Documentation page needs complex example

The documentation really needs an example richer than just https://muut.com/riotjs/guide/#example-riot-application-de in fac i would recommend moving this example to be one of the very first things you show to users because of how expressive and easy to understand it is.
What really needs to occur at the bottom of the page is an example that uses https://muut.com/riotjs/guide/#modularity https://muut.com/riotjs/guide/#routing https://muut.com/riotjs/guide/#observable all together. It would also benefit to provide an example where you use something else for What you need is a publish/subscribe system built with... or similar.

:+1:

+1
Documentation for Route is so poor

You can find enough examples in our readme file. Closing this issue for now


Feat/dates

DateHelper in a specific file, today's date in the form instead of 01/01/2022

close #23


Reodering arguments for torch jit #1010 and future TF2.0 compatibility

Torch jit (cf #1010) and TF 2.0 (cf #1104) are more strict than PyTorch on having a specific order of arguments for easy use.
This PR refactor the order of the keyword arguments to make them as natural as possible.
This will be a breaking change for people using positional order to input keyword arguments in the forward pass of the models, hence is delayed to the 2.0 release.

Codecov Report

Merging #1195 into master will decrease coverage by 0.4%.
The diff coverage is 86.59%.

@@            Coverage Diff             @@
##           master    #1195      +/-   ##
==========================================
- Coverage   80.83%   80.42%   -0.41%
==========================================
  Files          46       46
  Lines        7878     7892      +14
==========================================
- Hits         6368     6347      -21
- Misses       1510     1545      +35

Impacted Files
Coverage Δ

pytorch_transformers/modeling_xlnet.py
78.83% <100%> (ø)
:arrow_up:

pytorch_transformers/tests/modeling_bert_test.py
96.29% <100%> (ø)
:arrow_up:

...rch_transformers/tests/modeling_distilbert_test.py
99.08% <100%> (ø)
:arrow_up:

pytorch_transformers/modeling_distilbert.py
96.77% <100%> (ø)
:arrow_up:

pytorch_transformers/modeling_xlm.py
87.08% <100%> (ø)
:arrow_up:

pytorch_transformers/modeling_bert.py
88.03% <100%> (ø)
:arrow_up:

...ytorch_transformers/tests/modeling_roberta_test.py
78.81% <100%> (ø)
:arrow_up:

pytorch_transformers/modeling_transfo_xl.py
56.9% <42.85%> (-0.1%)
:arrow_down:

pytorch_transformers/modeling_openai.py
81.08% <76.47%> (-0.88%)
:arrow_down:

pytorch_transformers/modeling_gpt2.py
83.13% <76.47%> (-0.91%)
:arrow_down:

... and 8 more

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 0b52642...7fba47b. Read the comment docs.

Ok merging


Fix log reporting for release builds (#1916)

Cherry picked send logs change to 2.8-release branch to make a patch release.

Codecov Report

Merging #1952 into 2.8-release will increase coverage by 0.9%.
The diff coverage is 37.8%.

@@              Coverage Diff              @@
##           2.8-release   #1952     +/-   ##
=============================================
+ Coverage         3.72%   4.62%   +0.9%
=============================================
  Files              190     197      +7
  Lines             9555    9742    +187
  Branches           852     865     +13
=============================================
+ Hits               356     451     +95
- Misses            9174    9257     +83
- Partials            25      34      +9

Impacted Files
Coverage Δ

app/src/main/java/fr/free/nrw/commons/Utils.java
33.33% <ø> (+5.93%)
:arrow_up:

...a/fr/free/nrw/commons/quiz/QuizResultActivity.java
0% <ø> (ø)
:arrow_up:

...in/java/fr/free/nrw/commons/mwapi/CustomMwApi.java
8.04% <ø> (+0.18%)
:arrow_up:

...ava/fr/free/nrw/commons/mwapi/CustomApiResult.java
0% <ø> (ø)
:arrow_up:

...ain/java/fr/free/nrw/commons/utils/ImageUtils.java
0% <0%> (ø)
:arrow_up:

...fr/free/nrw/commons/settings/SettingsFragment.java
38.7% <0%> (+8.7%)
:arrow_up:

...a/fr/free/nrw/commons/upload/UploadController.java
0% <0%> (ø)
:arrow_up:

...mons/explore/recentsearches/RecentSearchesDao.java
0% <0%> (ø)
:arrow_up:

...java/fr/free/nrw/commons/nearby/PlaceRenderer.java
0% <0%> (ø)
:arrow_up:

...rw/commons/mwapi/ApacheHttpClientMediaWikiApi.java
3.8% <0%> (ø)
:arrow_up:

... and 17 more

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 9b708db...4b04297. Read the comment docs.

Thanks @maskaravivek ! Will do 2.8.6 on Monday. :)


🎨 Design Home Page

Feature Request
[C-FEATURE]: 🚀 Design Home Page
Description:
Design the home page with a focus on user engagement and visual appeal. The design should effectively showcase the app's features and encourage user exploration, while being aligned with the overall branding and style guidelines.


fix(deps): update images to latest

This PR contains the following updates:

Package
Type
Update
Change

icr.io/ibm-iac-charts/sysdig-deploy
helm_release
patch
1.56.0 -> 1.56.6

icr.io/ibm-iac/agent-kmodule

patch
13.2.0 -> 13.2.1

icr.io/ibm-iac/agent-slim

patch
13.2.0 -> 13.2.1

icr.io/ibm-iac/kspm-analyzer

patch
1.43.3 -> 1.43.4

icr.io/ibm-iac/kspm-collector

patch
1.39.1 -> 1.39.2

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

:tada: This PR is included in version 1.2.7 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Unable to filter machines vulnerabilities response using API using OData

Attempting to use the API to retrieve machinesVulnerabilities with the 'Critical' severity property using OData filter on the API.
GET ../vulnerabilities/machinesVulnerabilities?$filter=severity+eq+'Critical'
expected response from the API is to only list vulnerability objects with Critical in the severity property only. However, I get a mixmatch of responses from low to high, no critical's. Putting in in other values such as 'Medium' or 'Low' change the response list, but is still inconsistent with expected output. Putting in 'Low' will still return a mix of all severities.
The filter is error checking correctly though. Placing a query like "?$filter=severity+eq+'test'" returns an empty list (as expected, because no vulnerability has a "test" severity value).
I believe this is an issue on the API backend processing the OData request.
edit: link to article with the API https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/get-all-vulnerabilities-by-machines

@arcastaneda  Which article are  you referring to

@arcastaneda  Which article are  you referring to

@RAJU2529 This is the one I am working with: https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/get-all-vulnerabilities-by-machines
It says "The OData $filter is supported on all properties". The filter does work as intended when I use it on fields like "Id", "cveID", or "MachineID", but it does not work properly when using it on the "severity" property.

@RAJU2529 This is the one I am working with: https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/get-all-vulnerabilities-by-machines
It says "The OData $filter is supported on all properties". The filter does work as intended when I use it on fields like "Id", "cveID", or "MachineID", but it does not work properly when using it on the "severity" property.

@arcastaneda , this article is beyond my knowledge, so wait for few days. let our expert's team will answer your questions

@arcastaneda , this article is beyond my knowledge, so wait for few days. let our expert's team will answer your questions

@arcastaneda thank you for pointing this out. Would you recommend I add a note to the article stipulating that the filter does not work properly when using it on the "severity" property?

@arcastaneda thank you for pointing this out. Would you recommend I add a note to the article stipulating that the filter does not work properly when using it on the "severity" property?

Is there any update on this???

The issue with the filter was fixed.


Long Form dataset

The LongForm dataset is created by leveraging English corpus examples with augmented instructions.
https://huggingface.co/datasets/akoksal/LongForm

also check out
https://github.com/FreedomIntelligence/InstructionZoo


Unable to use plugin

When using in project, we were not able to get the scanner working due to errors: ACCESS DENIED...
Steps to reproduce the behavior:

Implement in app
Try to scan a qr code
See error

Expected: camera would open and user would be able to scan qr code.

Version
Capacitor version 4.3

Device:Xiaomi mi 8
Android 10

Did you set the permissions as described?
https://github.com/capacitor-community/barcode-scanner#android

Yes, all was implemented according to instruction.

Unfortunately I won't be able to help you without a working (or in this case not working) example repo.
I had a look at my test environments and I am not able to reproduce your issue...

Also facing this issue and have been unable to find a workaround
Version
Capacitor version 4.3
Device: OnePlus 8 Pro
Android 12

As I said I believe this is an issue with the setup, and I am unable to help without a way to reproduce your issues...
I am closing this since I have not gotten any feedback, feel free to reopen it if you still have issues and you can provide a repo to help you out!


Fix ZookeeperProperties warnings

2017-03-29 12:51:26.220+0200 | WARN  |  | main | o.s.b.c.p.ConfigurationPropertiesBindingPostProcessor | The @ConfigurationProperties bean class org.springframework.cloud.zookeeper.ZookeeperProperties cont
ains validation constraints but had not been annotated with @Validated.
2017-03-29 12:51:26.220+0200 | WARN  |  | main | o.s.b.c.p.ConfigurationPropertiesBindingPostProcessor | The @ConfigurationProperties bean class org.springframework.cloud.zookeeper.ZookeeperProperties cont
ains validation constraints but had not been annotated with @Validated.
2017-03-29 12:51:26.220+0200 | WARN  |  | main | o.s.b.c.p.ConfigurationPropertiesBindingPostProcessor | The @ConfigurationProperties bean class org.springframework.cloud.zookeeper.ZookeeperProperties cont
ains validation constraints but had not been annotated with @Validated.
2017-03-29 12:51:26.240+0200 | WARN  |  | main | o.s.b.c.p.ConfigurationPropertiesBindingPostProcessor | The @ConfigurationProperties bean class org.springframework.cloud.zookeeper.ZookeeperProperties cont
ains validation constraints but had not been annotated with @Validated.
2017-03-29 12:51:26.240+0200 | WARN  |  | main | o.s.b.c.p.ConfigurationPropertiesBindingPostProcessor | The @ConfigurationProperties bean class org.springframework.cloud.zookeeper.ZookeeperProperties cont
ains validation constraints but had not been annotated with @Validated.
2017-03-29 12:51:26.240+0200 | WARN  |  | main | o.s.b.c.p.ConfigurationPropertiesBindingPostProcessor | The @ConfigurationProperties bean class org.springframework.cloud.zookeeper.ZookeeperProperties cont
ains validation constraints but had not been annotated with @Validated.

Fixes #117


Establish a slack channel for SPK

Please share any additional details on this topic
We announced and opened the SPK project at DigiPro this year - although we haven't considered whether this project could one day be an ASWF project, we are looking for an accessible place where the community can connect with us and discuss the project.
We have our own Slack instance already, but it is hard to find and I believe that everyone would prefer not to have yet another Slack instance for one specific topic.
https://spkenv.dev
Detail what actions or feedback you would like from the TAC
Consider adding a slack channel for spk to the ASWF slack instance
How much time do you need for this topic?
5 minutes or less

Action is to see if other ASWF members see value in having the channel in the ASWF Slack; revisit in the next month or so.

Closing in favour of #915


Updates the readme

Updating the readme with basic info from the project document.

Hey @ngocdai94, I updated the Readme. Want to take a look and merge?

Looks good 😄, @cavinginrainbows!!

Looks good, 😄, @cavinginrainbows !!


Fixed loading translations with language subtags in Select2 widget.

Fixed in django here

Great, I saw the patch on Django as well. Thanks a lot for your effor here!


TCP /multi /IPv6 FreeRTOS_ARP module

Description
The purpose of this commit is the go through reviewing. Please do not use these branches for any development.
The complete /multi /IPv6 release can be viewed here.
This PR replaces the earlier #69
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Also see the unit-test. It is showing failure due to conflicting declarations (of FreeRTOS_ClearARP). Please correct those.


[Android v0.65.1] Fresh install gives NativeUIManager.getConstantsForViewManager('Text')  error while debugging

Description
Trying to create a new project with the the latest stable version of both RN and RN CLI throws this error when Debug mode is enabled:
NativeUIManager.getConstantsForViewManager('Text') threw an exception. Invariant Violation: Calling synchronous methods on native modules is not supported in Chrome.

 Consider providing alternative methods to expose this method in debug mode, e.g. by exposing constants ahead-of-time.
App@http://<IP_ADDRESS>:8081/App.bundle?platform=android&app=com.testa&modulesOnly=true&dev=true&minify=false&runModule=true&shallow=true:18:54
RCTView
View
RCTView
View
AppContainer@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.testa&modulesOnly=false&runModule=true:75604:36
RootComponentWithMeaningfulName@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.testa&modulesOnly=false&runModule=true:82460:24

Even if you just render a single View component with a Text inside WITH styling, it will throw the error.
IF you remove the style prop from the Text component then the error is gone.
React Native version:
16:08:49 ~/code/testa $ react-native info
info Fetching system and libraries information...
System:
    OS: Linux 5.10 Arch Linux
    CPU: (16) x64 Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz
    Memory: 341.81 MB / 15.55 GB
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 16.7.0 - /usr/bin/node
    Yarn: 1.22.11 - /usr/bin/yarn
    npm: 7.20.6 - /usr/bin/npm
    Watchman: 4.9.0 - /home/linuxbrew/.linuxbrew/bin/watchman
  SDKs:
    Android SDK:
      API Levels: 16, 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0
      System Images: android-28 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.87<IP_ADDRESS>99119
  Languages:
    Java: 1.8.0_292 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.65.1 => 0.65.1
  npmGlobalPackages:
    *react-native*: Not Found
16:08:57 ~/code/testa $

Steps To Reproduce

run react-native init testa
start the app(run yarn start and yarn android
Enable debug mode

Expected Results
Not throw any error
Snack, code example, screenshot, or link to a repository:

import React from 'react';
import {Text, View} from 'react-native';

const App = () => {
  return (
    <View>
      <Text style={{backgroundColor: 'red'}}>Hello</Text>
    </View>
  );
};

export default App;

Downgrading to 0.64 also fixes the issue

the same is happening to me after upgrading to 0.65.1

Same error after upgrading to 0.65.1 (from 0.63.3)

same issue with rn v0.65.1

Is there any solution other than downgrade?

The same here with v0.65.1

Same Issue With RN 0.65.1 :(

Same error after upgrading to 0.65.1 (from 0.64.2). Any updates on how to solve it?

+1 RN 0.65.1

+1 RN 0.65.1

+1 RN 0.65.1

@mikehardy @fkgozali @nomi9995

"react-native": "0.65.1", +1

Guys, can you try this work around. That's fixed the issue for me, but keep in mind, that's must be a 'temporary fix', who are here since march, release after release, unfortunately.
https://stackoverflow.com/questions/61067004/invariant-violation-calling-synchronous-methods-on-native-modules-is-not-suppor/66583605#66583605

We believe https://github.com/facebook/react-native/pull/31164 fixed this, and will be in the v0.66 release (it is already in v0.66.0-rc.4)

Guys, can you try this work around. That's fixed the issue for me, but keep in mind, that's must be a 'temporary fix', who are here since march, release after release, unfortunately.
https://stackoverflow.com/questions/61067004/invariant-violation-calling-synchronous-methods-on-native-modules-is-not-suppor/66583605#66583605

yes, I did this word around and posted this workaround on StackOverflow and made a PR https://github.com/facebook/react-native/pull/31153 but as @TheSavior said This would unexpectedly alter the behavior of an app between dev and prod
For remote debugging, we open up Chrome running the app in a web worker. this requires async communication, which will not work for Turbo Modules.
I will workaround async communication in the turbo module which is not yet supported. if this will possible in the future then we can proper fix

same issue with rn v0.65.1

@sezginriggs I believe it was fixed for react-native 0.66 (will likely release any day now, rc4 from last week appears to be final)
https://github.com/facebook/react-native/commit/49b3b31d8e706338dac4ced1b372424d7d1d133f
That's the commit that fixed it, it was in 0.66.0-rc.1 and should be released shortly.

@shinken008 +1 comments are useless in practice and just add notifications noise to people trying to solve root causes. Please do not post them. Use a reaction (thumbs-up) in the future, thank you

Can confirm, with<EMAIL_ADDRESS>this isn't an issue anymore.

Found this on<EMAIL_ADDRESS>

That's a very surprising result @nahidmbstu - triple-check everything's clean (npx react-native-clean-project) and the update was successful. I definitely reproduced before 0.66.0-rc.1, I definitely do not reproduce after 0.66.0-rc.1

I can confirm I am also facing this issue on react native 0.66 unfortunately; has there been any progress on this since?

This issue was definitively closed, with no successful reproductions after 0.66.0-rc.1
You have either a new issue (at which point, a clean reproduction of it starting with template init would help) or there is something subtly wrong/cached in your build

It is definitely an issue, however it seems to be related to react native reanimated v2 (https://docs.swmansion.com/react-native-reanimated/docs/#known-problems-and-limitations)
So I understand this might not be the right place for it; although it might help some other people passing by.

That really sounds like a separate thing, this used to occur without reanimated. Same error may occur from multiple causes, the cause identified by this issue has been fixed

The way to know it's not from react-native is to try it on a clean install yes. This is the script I use for react-native release testing (and to qualify it for react-native-firebase to make sure I won't have support problems there) https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh - it's the script I use along with the react-native-firebase e2e tests (which use javascript debugging interface) to say with certainty: it's fixed. I used to reproduce it. The PR was merged and released. I do not reproduce it. It's fixed.

I'm on react-native 0.66.1 and I'm getting this error when trying to get size of topBar from react-native-navigation


cp:404 failing due to no build/404.html file.

When building
pnpm build

the following occurs
><EMAIL_ADDRESS>cp:404 /home/xxx/Development/xxx
> ncp build/404/index.html build/404.html

There were errors during the copy.
Error: ENOENT: no such file or directory, lstat '/home/xxx/Development/xxx/build/404/index.html'
 ERROR  Command failed with exit code 1.
ERROR: "cp:404" exited with 1.
 ERROR  Command failed with exit code 1.

There is no build folder.

Thanks for the report! It now works with the extra adapt step that the newest version(s) of the adapters need. The docs have been updated to reflect this: https://github.com/svelte-add/firebase-hosting/commit/7173eabaff173613906fedeae96fac00612efdb6