Can't proxy helm repository in Nexus3: ...external-secrets-0.8.1.tgz : 404 Not Found

Hello!
We are using helm packages behind a nexus3 helm proxy repository.
Here are my settings: (note: settings are exactly the same for our other helm repositories and they worked)
Nexus3:
Name: helm-external-secrets
Format: helm
Type: proxy
URL: https://my-company.com/nexus3/repository/helm-external-secrets/
Online: checked
Proxy
Location of the remote repository being proxied: https://charts.external-secrets.io/
Auto blocking enabled: yes
Maximum component age: 1440
Maximum metadata age: 1440
Storage
Blob store: default
Strict content type validation: checked
Routing Rule:
none
Negative Cache
Not found cache TTL:  1440
HTTP
Authentication: not checked
Http request settings: not checked
Cleanup Policies:
Roles:
Role ID: helm_external_secrets_reader
Role Name:
Helm External Secrets Reader
Privileges:
nx-repository-view-helm-helm-external-secrets-browse
nx-repository-view-helm-helm-external-secrets-read
Users:
anonynous
Granted: Helm External Secrets Reader
The issue:
#helm repo add my-external-secrets  https://my-company.com/nexus3/repository/helm-external-secrets
#helm install external-secrets my-external-secrets/external-secrets --debug
install.go:173: [debug] Original chart version: ""
Error: failed to fetch https://my-company.com/nexus3/repository/helm-external-secrets/external-secrets-0.8.1.tgz : 404 Not Found
helm.go:81: [debug] failed to fetch https://my-company.com/nexus3/repository/helm-external-secrets/external-secrets-0.8.1.tgz : 404 Not Found
helm.sh/helm/v3/pkg/getter.(*HTTPGetter).get
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/pkg/getter/httpgetter.go:73
helm.sh/helm/v3/pkg/getter.(*HTTPGetter).Get
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/pkg/getter/httpgetter.go:41
helm.sh/helm/v3/pkg/downloader.(*ChartDownloader).DownloadTo
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/pkg/downloader/chart_downloader.go:99
helm.sh/helm/v3/pkg/action.(*ChartPathOptions).LocateChart
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/pkg/action/install.go:675
main.runInstall
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/cmd/helm/install.go:185
main.newInstallCmd.func2
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/cmd/helm/install.go:120
github.com/spf13/cobra.(*Command).execute
/usr/share/gocode/src/github.com/spf13/cobra/command.go:850
github.com/spf13/cobra.(*Command).ExecuteC
/usr/share/gocode/src/github.com/spf13/cobra/command.go:958
github.com/spf13/cobra.(*Command).Execute
/usr/share/gocode/src/github.com/spf13/cobra/command.go:895
main.main
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/cmd/helm/helm.go:80
runtime.main
/usr/lib/golang/src/runtime/proc.go:225
runtime.goexit
/usr/lib/golang/src/runtime/asm_amd64.s:1371

Hey, we aren't able to reproduce this issue with nexus (we don't have it running somewhere to test). I guess this is a misconfiguration on your end, other helm repos are set up in a similar manner (nginx ingress, cert-manager etc.) - under the hoods it's just a http server serving an index.yaml that points to .tar.gz files.
Can you provide some logs from nexus that show more details of why you got an 404?

Of course!
Here's what I got from my nexus3  logs
<IP_ADDRESS> - - [23/May/2023:10:12:36 -0400] "GET /nexus3/repository/helm-external-secrets/index.yaml HTTP/1.1" 200 - 29400 566 "Helm/3.11" [qtp1692609952-78784]
<IP_ADDRESS> - - [23/May/2023:10:12:36 -0400] "GET /nexus3/repository/helm-external-secrets/external-secrets-0.8.2.tgz HTTP/1.1" 404 - 2001 65 "Helm/3.11" [qtp1692609952-78065]
<IP_ADDRESS> - - [23/May/2023:10:12:37 -0400] "GET /nexus3/repository/helm-external-secrets/external-secrets-0.8.2.tgz HTTP/1.1" 404 - 2001 1 "Helm/3.11" [qtp1692609952-78784]
<IP_ADDRESS> - - [23/May/2023:10:12:43 -0400] "GET /nexus3/repository/helm-external-secrets/external-secrets-0.8.2.tgz HTTP/1.1" 404 - 2001 1 "Helm/3.11" [qtp1692609952-78219]
<IP_ADDRESS> - - [23/May/2023:10:12:55 -0400] "GET /nexus3/repository/helm-external-secrets/external-secrets-0.8.2.tgz HTTP/1.1" 404 - 2001 1 "Helm/3.11" [qtp1692609952-78237]
<IP_ADDRESS> - - [23/May/2023:10:13:19 -0400] "GET /nexus3/repository/helm-external-secrets/external-secrets-0.8.2.tgz HTTP/1.1" 404 - 2001 1 "Helm/3.11" [qtp1692609952-78430]

That looks like the nexus access log (helm requesting a tarball that fails).
Can you find out what requests nexus issues towards charts.external-secrets.io or github.com? It should go to e.g. https://github.com/external-secrets/external-secrets/releases/download/helm-chart-0.8.2/external-secrets-0.8.2.tgz

Unfortunately I can't see no more logs going to github.  Since my last post I have only retries Here's what I get when I try to installt it from helm tool.
[root@yoda tmp]# helm install external-secrets lq-external-secrets/external-secrets --dry-run --debug
install.go:173: [debug] Original chart version: ""
Error: failed to fetch https://my-company.com/nexus3/repository/helm-external-secrets/external-secrets-0.8.2.tgz : 404 Not Found
helm.go:81: [debug] failed to fetch https://my-company.com/nexus3/repository/helm-external-secrets/external-secrets-0.8.2.tgz : 404 Not Found
helm.sh/helm/v3/pkg/getter.(*HTTPGetter).get
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/pkg/getter/httpgetter.go:73
helm.sh/helm/v3/pkg/getter.(*HTTPGetter).Get
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/pkg/getter/httpgetter.go:41
helm.sh/helm/v3/pkg/downloader.(*ChartDownloader).DownloadTo
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/pkg/downloader/chart_downloader.go:99
helm.sh/helm/v3/pkg/action.(*ChartPathOptions).LocateChart
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/pkg/action/install.go:675
main.runInstall
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/cmd/helm/install.go:185
main.newInstallCmd.func2
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/cmd/helm/install.go:120
github.com/spf13/cobra.(*Command).execute
/usr/share/gocode/src/github.com/spf13/cobra/command.go:850
github.com/spf13/cobra.(*Command).ExecuteC
/usr/share/gocode/src/github.com/spf13/cobra/command.go:958
github.com/spf13/cobra.(*Command).Execute
/usr/share/gocode/src/github.com/spf13/cobra/command.go:895
main.main
/builddir/build/BUILD/helm-3.5.4/_build/src/helm.sh/helm/v3/cmd/helm/helm.go:80
runtime.main
/usr/lib/golang/src/runtime/proc.go:225
runtime.goexit
/usr/lib/golang/src/runtime/asm_amd64.s:1371

external-secrets-index-yaml.zip

I got something.  Please take a look a the zip file.  It contains 2 index files for external-secrets tgz.  One from a Nexus repository. The second one is a direct link to the helm repo.  The issue is the value of the URL from the Nexus proxy.  It contains only the tgz file instead of the full URL

Looks like a Nexus3 issues.  We are using  an  old version OSS 3.25.1-04.
The index is re-written but it is missing the URL origin since it is diffrent from the URL of the index.
https://external-secrets.io/ vs  https://github.com/external-secrets/external-secrets/releases/download/....
This bug has been fixed since 2.28.0
https://issues.sonatype.org/browse/NEXUS-24682
Thank you again for you help.
Regards
Rober


[BUG] SfSelect options is not scrollable

Describe the bug
if the SfSelect has many options, when displaying them the list becomes infinite down
How to reproduce
Steps to reproduce the behavior:

Go to checkout in shipping tab.
Click on country field
See list of optiones

Expected behavior
A scroll for the lists with many options
Actual behavior
The list grows down according to the number of options
Code examples
Sample code (or your configuration) to help us reproduce the bug faster or to understand your use case.
//Write code here

Or add code snippets (Code sandbox)
Screenshots

Devices (please complete the following information):

Device: Desktop
OS: Debian 10 (buster)
Browser: chrome 84.0.4147.105

Additional context
Anything you would like to add but was not sure which section it fits. For example: tech stack used (Nuxt, Vue, Gridsome, React, etc)

On it ;)

Connected with these issue https://github.com/DivanteLtd/storefront-ui/issues/1139. It will be solved in https://github.com/DivanteLtd/storefront-ui/pull/1296

closed since it's solved on #1296


Fix schedule update

Fix #879 with errors mostly introduced in #867
:+1::tada: First of all, thanks for taking the time to contribute! :tada::+1:
FOR CONTRIBUTOR

[X] I have read the CONTRIBUTING.md document

PR Type:

[ ] This PR adds a new blog post
[X] This PR does something else (explain above)

FOR REVIEWERS
Thanks for taking the time to review! :heart:
Here are the list of things to make sure of:

[ ] The website builds (a check will fail if not)
[ ] All images have been added within the Pull Request and they have Alt text
[ ] If there are paragraphs or text, the key messages are highlighted
[ ] All internal links (within OLS website) use the {% link path_to_file.md %} format
[ ] The preview corresponds to the changes described in the Pull Request
[ ] The code is tidy and passes the linting tests

Thank you @bebatut. I have reverted the sheet for date and time. All calls are scheduled on Wednesdays at the same time (as all cohort members are in a similar time zone this time). We had to make minor adjustments to accommodate for the late start of the DRA track and avoid Dec holiday time. But the cohort plans remain largely the same.


Wifi does not come back up when the device is rebooted from within the application.

Reported on the forums here
Resin OS 1.24.1
Supervisor 2.8.3

I managed to reproduce this after several tries.
There is a 15 second timeout during which connman has to connect to the configured network, this is great when a network has not already been configured because it means the configuration loop is fairly quick in the event a user enters the wrong password, makes a typo etc. However, if the network has already been configured resin-wifi-connect will exit once the timeout has elapsed and in some cases the timeout is too short. Throwing this error:
Clear disabled
Using connman.service
Credentials found
Connecting
Error: Timed out
    at Timeout._onTimeout (/usr/src/app/src/connman.js:78:25)
    at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)
    at Timer.listOnTimeout (timers.js:207:5)
Not retrying
Exiting

I tried increasing the timeout which didn't help, so I changed resin-wifi-connect to wait until connman is up before attempting to connect. This seems to work


Use shrinkable threadpool with bounded max # of threads by default

This is a follow up to https://github.com/scalaz/scalaz-zio/issues/294 and https://github.com/scalaz/scalaz-zio/pull/295
I'm not fully on-board with the change in #295. If the new behaviour is desired, please let me know. Otherwise, my concerns are:

Using unbounded threadpool as the default seems a bit risky. Depending on the workload the # of threads can grow to 100s and with a keepAliveTimeout of 60s it'll take a long time for a threadpool to shrink and thus lots of unnecessary context switches.
Allowing a threadpool to kill all working threads can lead to increased processing latency for spiky load since spinning up a thread can take 10s of ms.

If we just need a threadpool that can dynamically change its size from 0 to N depending on the load, it can be achieved using a regular bounded threadpool with allowCoreThreadTimeOut + LinkedBoundedQueue (this PR).
Here's a comparison of how threadpools behaves (code for the test app https://gist.github.com/artempyanykh/23672b174975477200f1ca07569f81c0).
Unbounded dynamic ThreadPool
Quickly grows from 6 to 44 threads to accommodate all submitted tasks, and then take quite a while to shrink.
Available CPUs: 8
Thread pool size: 0
Start queueing load (> poolSize)
Cycle 1 thread count = 6, queue size: 0, task count: 0 out of 0 completed
Cycle 2 thread count = 25, queue size: 0, task count: 0 out of 19 completed
Cycle 3 thread count = 44, queue size: 0, task count: 1 out of 38 completed
Cycle 4 thread count = 44, queue size: 0, task count: 19 out of 57 completed
Cycle 5 thread count = 44, queue size: 0, task count: 38 out of 76 completed
Cycle 6 thread count = 44, queue size: 0, task count: 57 out of 94 completed
Cycle 7 thread count = 44, queue size: 0, task count: 76 out of 100 completed
Cycle 8 thread count = 44, queue size: 0, task count: 95 out of 100 completed
Start light load (< poolSize)
Cycle 9 thread count = 44, queue size: 0, task count: 100 out of 101 completed
Cycle 10 thread count = 44, queue size: 0, task count: 100 out of 101 completed
Cycle 11 thread count = 44, queue size: 0, task count: 101 out of 102 completed
Cycle 12 thread count = 44, queue size: 0, task count: 101 out of 102 completed
Cycle 13 thread count = 44, queue size: 0, task count: 102 out of 103 completed
Cycle 14 thread count = 44, queue size: 0, task count: 102 out of 103 completed
Cycle 15 thread count = 44, queue size: 0, task count: 103 out of 104 completed
Cycle 16 thread count = 44, queue size: 0, task count: 103 out of 104 completed
Cycle 17 thread count = 44, queue size: 0, task count: 104 out of 105 completed
Cycle 18 thread count = 44, queue size: 0, task count: 104 out of 105 completed
Cycle 19 thread count = 44, queue size: 0, task count: 105 out of 105 completed
Cycle 20 thread count = 44, queue size: 0, task count: 105 out of 105 completed
... 47 seconds later the pool starts to shrink
Cycle 67 thread count = 26, queue size: 0, task count: 105 out of 105 completed
Cycle 68 thread count = 8, queue size: 0, task count: 105 out of 105 completed
Cycle 69 thread count = 8, queue size: 0, task count: 105 out of 105 completed
Cycle 70 thread count = 8, queue size: 0, task count: 105 out of 105 completed
Cycle 71 thread count = 8, queue size: 0, task count: 105 out of 105 completed
Cycle 72 thread count = 8, queue size: 0, task count: 105 out of 105 completed
Cycle 73 thread count = 8, queue size: 0, task count: 105 out of 105 completed
Cycle 74 thread count = 8, queue size: 0, task count: 105 out of 105 completed
Cycle 75 thread count = 7, queue size: 0, task count: 105 out of 105 completed
Cycle 76 thread count = 7, queue size: 0, task count: 105 out of 105 completed
Cycle 77 thread count = 7, queue size: 0, task count: 105 out of 105 completed
Cycle 78 thread count = 7, queue size: 0, task count: 105 out of 105 completed
Cycle 79 thread count = 6, queue size: 0, task count: 105 out of 105 completed

Bounded dynamic ThreadPool with a queue
Grows to configured max # of threads, excess tasks are queued, shrinks quickly after all tasks are completed.
Available CPUs: 8
Thread pool size: 16
Start queueing load (> poolSize)
Cycle 1 thread count = 6, queue size: 0, task count: 0 out of 0 completed
Cycle 2 thread count = 22, queue size: 3, task count: 0 out of 19 completed
Cycle 3 thread count = 22, queue size: 21, task count: 1 out of 38 completed
Cycle 4 thread count = 22, queue size: 24, task count: 16 out of 56 completed
Cycle 5 thread count = 22, queue size: 42, task count: 17 out of 75 completed
Cycle 6 thread count = 22, queue size: 46, task count: 32 out of 94 completed
Cycle 7 thread count = 22, queue size: 51, task count: 33 out of 100 completed
Cycle 8 thread count = 22, queue size: 36, task count: 48 out of 100 completed
Cycle 9 thread count = 22, queue size: 35, task count: 49 out of 100 completed
Cycle 10 thread count = 22, queue size: 20, task count: 64 out of 100 completed
Cycle 11 thread count = 22, queue size: 19, task count: 65 out of 100 completed
Cycle 12 thread count = 22, queue size: 4, task count: 80 out of 100 completed
Cycle 13 thread count = 22, queue size: 3, task count: 81 out of 100 completed
Cycle 14 thread count = 22, queue size: 0, task count: 96 out of 100 completed
Cycle 15 thread count = 10, queue size: 0, task count: 97 out of 100 completed
Start light load (< poolSize)
Cycle 16 thread count = 10, queue size: 0, task count: 100 out of 101 completed
Cycle 17 thread count = 7, queue size: 0, task count: 100 out of 101 completed
Cycle 18 thread count = 8, queue size: 0, task count: 101 out of 102 completed
Cycle 19 thread count = 7, queue size: 0, task count: 101 out of 102 completed
Cycle 20 thread count = 8, queue size: 0, task count: 102 out of 103 completed
Cycle 21 thread count = 7, queue size: 0, task count: 102 out of 103 completed
Cycle 22 thread count = 8, queue size: 0, task count: 103 out of 104 completed
Cycle 23 thread count = 7, queue size: 0, task count: 103 out of 104 completed
Cycle 24 thread count = 8, queue size: 0, task count: 104 out of 105 completed
Cycle 25 thread count = 7, queue size: 0, task count: 104 out of 105 completed
Cycle 26 thread count = 7, queue size: 0, task count: 105 out of 105 completed
Cycle 27 thread count = 6, queue size: 0, task count: 105 out of 105 completed
Cycle 28 thread count = 6, queue size: 0, task count: 105 out of 105 completed

What do you think about my proposal (https://github.com/scalaz/scalaz-zio/issues/297)?
IMO, we can't fit everything into just one pool anyway.

@artempyanykh Failed Travis build.
I like this PR but think it's worth leaving open for debate for all those interested in the topic.

@pshirshov I'll take a look at #297
Re: your comment on unlimited queue -- my motivation for this change is simple and can be summarized as unbounded work queue is better than unbounded number of threads in the pool. As a default such a pool should behave better under various types of load. So, I'm just proposing a (IMO) lesser evil 😃
I left the queue unbounded because in the presence of inter-dependant tasks it's impossible to specify a correct upper bound on the size of the queue that would accommodate all types of load.

producer/consumer disbalance problem
IMO concerns around back-pressure is not something that can be 100% reliably solved as a library default without client side tuning. Not trying to address this here.

@jdegoes forgot fmt 😞 Fixed

can be summarized as unbounded work queue is better than unbounded number of threads in the pool

IMO, not better by any chance. It may delay effective application death but the death is inevitable.
Actually in the previous discussion I've proposed several tradeoff policies not assuming anything unbounded but guys decided not to go heuristic way.
Also it would prevent the pool from growing. Pools grow only in case the queue starts rejecting tasks.

IMO, not better by any chance. It may delay effective application death but the death is inevitable.
... Or it may allow to successfully complete 10,000 inter-dependant tasks (e.g. some recursive workflow) without spawning 10,000 threads which may be a completely legit case not related to app death  ¯_(ツ)_/¯ Anyway, that's just my perspective.

Also it would prevent the pool from growing. Pools grow only in case the queue starts rejecting tasks.
Not sure what you're referring to here. If it's about the change in this PR -- tasks surely are not getting rejected, and the pool changes its size dynamically from 0 to corePoolSize depending on the load.

without spawning 10,000 threads which may be a completely legit case
Yeah, you are right. It's possible to spoil any approach. There is no good heuristic in case you have just one pool.

Not sure what you're referring to here.
You have the allowCoreThreadTimeOut, it changes the behavior. By default the pool starts spawning new threads only when the queue rejects a task.

I like this as well, it is a default that should work predictably in most scenarios. I originally proposed a regular fixed executor (without the dynamic core pool readjustment), but settled on the cached executor in the first PR to get it through because of the many varying concerns.

Allowing a threadpool to kill all working threads can lead to increased processing latency for spiky load since spinning up a thread can take 10s of ms.

Could you elaborate more on this and the keepAliveTimeout you configured to be 1000ms? Is the intention to increase or decrease latency on spiky behavior? A low keep alive would kill all threads very quickly after the queue is exhausted

Could you elaborate more on this and the keepAliveTimeout you configured to be 1000ms? Is the intention to increase or decrease latency on spiky behavior? A low keep alive would kill all threads very quickly after the queue is exhausted

Sure thing @RaasAhsan . Latency on spiky workloads and keepAliveTimeout of 1s are related but not exactly 1-to-1. A couple points:

keepAliveTime just specifies how elastic the pool to the changes in the load. A high value == overprovisioned pool and thus some amount of wasted resources. A low value == pool that matches the load but possibly increased processing latency when pool size = 0 and we need to wait for threads to get spawned.
1s in terms of CPU time is actually quite a lot. For a typical webapp it's usually either > 1 RPS or we don't really care about 10ms extra-latency. The only type of workload that would suffer from 1s latency is a specific one where we have short bursts of requests every once in a while ( >1s ) that need to be processed ASAP. But if you know that this is your case you're probably savvy enough to tune your threadpools appropriately.

Based on these I chose 1s keepAliveTimeout (2s would probly be as good ¯_(ツ)_/¯), but this is just my perspective, and I'd be happy to hear any counter-arguments if any 😃

Note that the existing version has a somewhat better behaviour in this use case. Perhaps YieldMaxOpCount could be changed to 2^10 along with the changes in this PR?

@regiskuckaertz just checked this out. Yeah that's a tough case, and I'm not sure yet what other effects reducing maxOpCount would have in terms of performance 🤔

I think it's safe. The only possible way to reach maxopcount is if you have a very long string of synchronous operations (like sync(...).forever), as the eval loop ends at every asynchronous boundary* and the counter is reset on the next iteration. Even finalizers run in a separate fiber.

unless all asynchronous computations return immediately an Async.Now, but that's a long shot.

I think it's safe. The only possible way to reach maxopcount is if you have a very long string of synchronous operations (like sync(...).forever), as the eval loop ends at every asynchronous boundary* and the counter is reset on the next iteration. Even finalizers run in a separate fiber.

unless all asynchronous computations return immediately an Async.Now, but that's a long shot.

@artempyanykh I think it's safe. The only possible way to reach maxopcount is if you have a very long string of synchronous operations (like sync(...).forever), as the eval loop ends at every asynchronous boundary* and the counter is reset on the next iteration. Even finalizers run in a separate fiber.

unless all asynchronous computations return immediately an Async.Now, but that's a long shot.

@artempyanykh I think it's safe. The only possible way to reach maxopcount is if you have a very long string of synchronous operations (like sync(...).forever), as the eval loop ends at every asynchronous boundary* and the counter is reset on the next iteration. Even finalizers run in a separate fiber.

unless all asynchronous computations return immediately an Async.Now, but that's a long shot.

@regiskuckaertz ok, cool. I'll run benchmarks sometime in the evening to make sure there's no degradation and push the update.

I've ran only 1 fork, so results are not rock solid. Nevertheless it seems that nothing is awfully wrong: slighly worse on ArrayFill but slightly better on IODeepAttemptBenchmark, most likely just due to variation (cats' ArrayFill included for reference).

Any other concerns guys?

@regiskuckaertz no problem 😃

Good to go?

Yay! 🎊


Add Microsoft.AspNetCore.Authentication.WsFederation, samples, and tests.

#1635 Merge the new WsFed package from patch branch into dev
The only diffs from the patch branch involve reacting to the new scheme forwarders in SignOut.
Squashed commits from the patch branch:
#43 Add Microsoft.AspNetCore.Authentication.WsFederation, samples, and tests.
#1443 Block unsolicited wsfed logins by default.
#1520 Update WsFed to use the 2.0 event structure
#1425 Implement WsFed remote signout cleanup
Rework WsFed RemoteSignOutPath logic to work with ADFS #1581
Update versions, dependencies.

Updated


static folder path problem

I have a problem with static folder path in the sub-domain.
The URL is http://test.com.tw/2018/ on my website, and then I put generated files in the 2018 folder.
But when I execute "npm run generate", the index.html that can't find the image.
So I google some issue about this topic, I found one solution
To modify nuxt.config.js
router: {     base: "/2018/" }
This method not only can transform the router path but also assets folder path.
BUT It can't transform a static folder path, it's still served in the root path.
For example:

I want this

Can Someone tell me how to modify nuxt.config.js?
Thanks: D

This question is available on Nuxt community (#c7409)

Duplicate: #c7407

ok!


automatic result_type deduction

Currently, automatic result_type deduction mechanism
using type = typename std::result_of<F(V&)>::type;

requires bogus
result_type operator() (V &)  {}

to calculate return_type.  Tests were passing because of presence of

template <typename T>
result_type operator() (T &) {}

fixed in 00ab88117ed25f78cdca2faa00beea0061271e85


how to combine with nodemon

I usually start node app by following command
forever start -c nodemon app.js --exitcrash
how can I make forever-service work with nodemon ?

you can fork the code and make relevant changes to
templates/linux/meteor.conf
That is where the upstart configuration commands are managed.
I am working on an update to MUP in order to be able to pass environment specific configuration via the config file. In my case it is in order to be able to change the default values:
forever -c userdown --minUptime 2000 --spinSleepTime 1000 app/main.js
But with some slight modifications it could be used to add/alter other values. But I havnt looked into detail on your requirement.
My problem is that I am going away on a holiday for almost two weeks during which notting will happen from my end.
here you can see work in progress and as you can note it is currently only designed to manage minUptime and spinSleepTime
https://github.com/davidrinnan/meteor-up/compare/iss-269

haha lol you may dissregard my message. I thought it was an issue in the meteor UP project :)

I would try forever-service install myservice -f " -c nodemon" -o " —exitcrash"

@nvcken  did that work for you?

I have not test complete yet, because after I run script by following your guide, I run "service myservice_name start"
I get error
/etc/init.d/myservice_name : line 61 : forever command not found
starting myservice_name
/etc/init.d/myservice_name : line 75 : forever command not found

I put export PATH=/usr/local/bin:$PATH
Then service start was working.
Now, I try test when system restart

@arvind-agarwal
Yes, It works, Thank you

you can use -e "PATH=/usr/local/bin:$PATH" as the parameter in forever-service cli to add the PATH variable to your startup script


Fix order of examples for sortBy.

The two independent examples of sortBy seems to be accidentally "overlapped".
Removes overlapping and adds blank line between the two independent examples.

Thank you.  Definitely an improvement.


Broker Controller Deploy change IP,admin CLI getSyncStateSet  info Is not correct

BUG REPORT

Please describe the issue you observed:

Start Namesrv(Controller as plugin-IP：<IP_ADDRESS>), then register broker：

sh bin/mqadmin getSyncStateSet -a <IP_ADDRESS>:9878 -b mxsm

the result is ok. then shutdown broker. and change broker deployed host ip

sh bin/mqadmin getSyncStateSet -a <IP_ADDRESS>:9878 -b mxsm

The result does not correspond to the reality

What is expected to see?

What did you see instead?

Please tell us about your environment:
environment: develop branch
Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

Hi @mxsm, this is a known issue. The current controller uses IP as the unique identity of the broker, which causes this problem. Now, @hzh0425  has started to solve this issue. We can review this PR together. #4672

Hi @mxsm, this is a known issue. The current controller uses IP as the unique identity of the broker, which causes this problem. Now, @hzh0425 has started to solve this issue. We can review this PR together. #4672

OK


Implement grpc with grpc-gateway for Get/Create repository

This is a WIP PR adding grpc for #20.
Right now its just the basics, with not SSL/TLS and the gRPC and gRPC gateway served on static ports.
So this opens up two grpc endpoints exposed by the grpc-gateway reverse proxy on a fixed port of 8081 (for now).
Standard grpc-gateway with no additional annotations gives us the two REST endpoints as POST (even though one is in-theory a GET).
POST - https://localhost:8081/repository.v1.RepositoryService/CreateRepository
POST - https://localhost:8081/repository.v1.RepositoryService/GetRepository
CreateRespositoryRequest and GetRepositoryRequest should be passed in the JSON body.
We can add some api annotations to make these routes more RESTful, although I quite like the consistency we get just letting it be. I have added the relevant grpc annotation imports under proto/google/... which allow us to do this if required.

Codecov Report

Merging #25 (923e69b) into main (cd557ba) will decrease coverage by 7.83%.
The diff coverage is 30.04%.

@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
- Coverage   63.07%   55.23%   -7.84%
==========================================
  Files          17       24       +7
  Lines        1392     1814     +422
==========================================
+ Hits          878     1002     +124
- Misses        384      659     +275
- Partials      130      153      +23

Impacted Files
Coverage Δ

proto/repository/v1/repository.pb.gw.go
0.00% <0.00%> (ø)

pkg/krok/providers/mocks/repository_storer.go
19.44% <19.44%> (ø)

proto/repository/v1/repository.pb.go
33.06% <33.06%> (ø)

proto/repository/v1/repository_grpc.pb.go
37.83% <37.83%> (ø)

pkg/krok/providers/mocks/token_provider.go
53.84% <53.84%> (ø)

pkg/server/middleware/auth.go
76.47% <76.47%> (ø)

pkg/krok/providers/service/repository.go
77.27% <77.27%> (ø)

pkg/krok/providers/handlers/auth.go
46.06% <100.00%> (+0.61%)
:arrow_up:

... and 5 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 cd557ba...923e69b. Read the comment docs.

Codecov Report

Merging #25 (923e69b) into main (cd557ba) will decrease coverage by 7.83%.
The diff coverage is 30.04%.

@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
- Coverage   63.07%   55.23%   -7.84%
==========================================
  Files          17       24       +7
  Lines        1392     1814     +422
==========================================
+ Hits          878     1002     +124
- Misses        384      659     +275
- Partials      130      153      +23

Impacted Files
Coverage Δ

proto/repository/v1/repository.pb.gw.go
0.00% <0.00%> (ø)

pkg/krok/providers/mocks/repository_storer.go
19.44% <19.44%> (ø)

proto/repository/v1/repository.pb.go
33.06% <33.06%> (ø)

proto/repository/v1/repository_grpc.pb.go
37.83% <37.83%> (ø)

pkg/krok/providers/mocks/token_provider.go
53.84% <53.84%> (ø)

pkg/server/middleware/auth.go
76.47% <76.47%> (ø)

pkg/krok/providers/service/repository.go
77.27% <77.27%> (ø)

pkg/krok/providers/handlers/auth.go
46.06% <100.00%> (+0.61%)
:arrow_up:

... and 5 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 cd557ba...923e69b. Read the comment docs.


[Event Change Request] - Database:: "VAT Amount Line" - OnInsertLine

We like to request the following event change:
Object: Database:: "VAT Amount Line"
Function: OnInsertLine
Reason: Please add the missing var tag for the IsHandled Variable
Code to change:
[IntegrationEvent(false, false)]
local procedure OnInsertLine(var VATAmountLine: Record "VAT Amount Line"; var IsHandled: Boolean)
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Feature/dev 3234

Includes support for nested analyze queries.
Fixed bug where analyze results were not deserialized correctly.
Improved Pylon method documentation.

The support to Nested Analysis Queries are already in the maven repository?

@RafaelAlbani no, this PR is to add support for that.
The next release (likely this week), will have it.


flash ?

Hi there is twice the flash status in the monsterdata.json .
and explain the violated status to me?
and find out why there are exhaust status and fatigue in the monsterdataconfig.cs folder?

1)As for the double flash, yeah one of them is wrong but I don't which one, so if you'll find what it might be I'll update my files;
2)For the violated no clue;
3)Why?


Parent child nested checkboxes, nested associatioin

Environment

Ruby [version]
gem 'ruby', '~> 2.3.1'
Rails [version]
gem 'rails', '~> 5.0.2'
Simple Form [version]
gem 'simple_form',                  '~> 3.4'

Current behavior
class SportCategory < ApplicationRecord
  has_many :children, dependent: :destroy, class_name: 'SportCategory', foreign_key: :parent_id
  has_many :submission_sport_lists
 accepts_nested_attributes_for :children, reject_if: :all_blank, allow_destroy: true
end

class SportSubmission < ApplicationRecord
  has_many :submission_sport_lists, dependent: :destroy, inverse_of: :sport_submission
  has_many :sport_categories, through: :submission_sport_lists
end

= simple_form_for [@game, @sport_submission] do |f|
      = f.input :validation, as: :hidden, input_html: { value: (@sport_submission.errors[:submission_sport_lists].first) }
      .row
        .col-xs-6
          = f.association :sport_categories, collection: SportCategory.sport_submission_collection, as: :check_boxes, required: true, label: t('.sport_categories'), input_html: { class: 'styled' } do |sport_sub|
            = sport_sub.association :children, collection: SportCategory.only_children, as: :check_boxes, required: true, label: t('.sport_categories'), input_html: { class: 'styled' }

Include code samples, errors, steps to reproduce the error and stacktraces if appropriate.
Association :children not found
Expected behavior
to have nested children checkboxes under parent checkboxes

I want to list the checkboxes that belongs to the parent. For Example:

[ ] bootball

[ ] boy team
[ ] girl team

[ ] basket ball

[ ] boy team
[ ] girl team

Please use StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only.


feat: support sparse vector with 1000000 dims

close #384

PTAL @usamoi @VoVAllen

Can you replace 1000000 with 1048576? It's hard to count there are how many zeros.

Could you replace 1000000 with 1048575 ($2^{20} - 1$)?

updated


Implement user authentication

Sign in with clerk setup completed. Registration done on Clerk dashboard signing in from app with custom UI.


Feature/SG-245 Support for register model in model's factory

Added @register decorator to easily map models to the global ARCHITECTURES variable. Input your desired architecture in the config via the function name that creates it, for example, architecture: ResNet18Cifar

This is a draft commit. Please confirm that you like the solution. If accepted, the next step would be to manually add @register decorators to all models to get back to feature-parity.
There is no elegant way to support an in-between step of supporting both (register + dict) methods.

Test failed on
File "/home/circleci/project/venv/lib/python3.7/site-packages/super_gradients/training/sg_trainer/sg_trainer.py", line 1675, in _instantiate_net
    architecture_cls = ARCHITECTURES[architecture]
KeyError: 'resnet18_cifar

Please note that to pass this test, the key must be changed to ResNet18Cifar, or the function that creates the model needs to be renamed to resnet18_cifar.

Recommendation for test:
Create my_model.py in super_gradients/training/models/user_models/my_model.py and add code:
from super_gradients.training.models.classification_models.resnet import ResNet18Cifar
from super_gradients.training.models.model_registry import register

@register
def custom_resnet18_cifar(*args, **kwargs):
    return ResNet18Cifar(*args, **kwargs)

Run recipe with architecture: custom_resnet18_cifar

@ofrimasad regarding

add a "name" parameter to the decorator, so that the user could define the name to use

To the best of my knowledge, there is no way to make a decorator which supports BOTH accepting an argument AND is callable without parenthesis.
Meaning, that if the users won't pass a name, they will get an error unless they type it like this:
@register()
def custom_resnet18_cifar(*args, **kwargs):
    return ResNet18Cifar(*args, **kwargs)

This can confuse a lot of people...
So I think it is best to choose; either the model gets registered automatically via Function/Class name or the user MUST define a registry name.


fix function timeout error in zap ascan

When you have a big or a particular website the active scan my take a lot of time so you can receive a timeout error on cucumber.
I added some configs to solve this problem (long timeout that you introduce but not in the table and not applied to active scan) or to have a better customisation of the test.
I would keep the software simple as you designed it however maxdepth and thread could let the users to easily customise the behaviour without work with zap api.
you can test zap on www.beefree.io to notice the timeout error.

Happy to put this through but just trying to test zap against beefree.io. This is what I seem to be getting:
    Step: Given I have loaded the web application - features/zap-active-scan.feature:10
    Step Definition: node_modules/sentinel-ast/integration/selenium/cucumber/steps.js:6
    Message:
      WebDriverError: unknown error: session deleted because of page crash
      from unknown error: cannot determine loading status
      from tab crashed
        (Session info: chrome=75.0.3770.80)
      Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
      System info: host: '483d6e9d68c3', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.76-linuxkit', java.version: '1.8.0_212'
      Driver info: driver.version: unknown
          at Object.checkLegacyResponse (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/lib/error.js:546:15)
          at parseHttpResponse (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/lib/http.js:509:13)
          at doSend.then.response (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/lib/http.js:441:30)
          at <anonymous>
          at process._tickCallback (internal/process/next_tick.js:189:7)
      From: Task: WebDriver.navigate().to(https://www.beefree.io/)
          at thenableWebDriverProxy.schedule (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/lib/webdriver.js:807:17)
          at Navigation.to (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/lib/webdriver.js:1133:25)
          at thenableWebDriverProxy.get (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/lib/webdriver.js:988:28)
          at World.<anonymous> (/working_dir/node_modules/sentinel-ast/integration/selenium/cucumber/steps.js:7:24)
          at _combinedTickCallback (internal/process/next_tick.js:132:7)
          at process._tickCallback (internal/process/next_tick.js:181:9)```

And then further down:
```22) Scenario: Check for Security vulnerabilities by running scan for CRLF Injection - features/zap-active-scan.feature:26
    Step: Given I have loaded the web application - features/zap-active-scan.feature:10
    Step Definition: node_modules/sentinel-ast/integration/selenium/cucumber/steps.js:6
    Message:
      function timed out after 10000 milliseconds

23) Scenario: Check for Security vulnerabilities by running scan for CRLF Injection - features/zap-active-scan.feature:26
    Step: After
    Step Definition: node_modules/sentinel-ast/integration/selenium/cucumber/setup-driver.js:137
    Message:
      function timed out after 5000 milliseconds

24) Scenario: Check for Security vulnerabilities by running scan for CRLF Injection - features/zap-active-scan.feature:26
    Step: After
    Step Definition: node_modules/sentinel-ast/integration/selenium/cucumber/setup-driver.js:136
    Message:
      function timed out after 5000 milliseconds

25) Scenario: Check for Security vulnerabilities by running scan for External Redirect - features/zap-active-scan.feature:27
    Step: Given I have loaded the web application - features/zap-active-scan.feature:10
    Step Definition: node_modules/sentinel-ast/integration/selenium/cucumber/steps.js:6
    Message:
      SessionNotCreatedError: session not created
      from chrome not reachable
        (Session info: chrome=75.0.3770.80)
      Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
      System info: host: '483d6e9d68c3', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.76-linuxkit', java.version: '1.8.0_212'
      Driver info: driver.version: unknown
      remote stacktrace: #0 0x55f678797299 <unknown>

          at Object.checkLegacyResponse (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/lib/error.js:546:15)
          at parseHttpResponse (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/lib/http.js:509:13)
          at doSend.then.response (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/lib/http.js:441:30)
          at <anonymous>
          at process._tickCallback (internal/process/next_tick.js:189:7)
      From: Task: WebDriver.createSession()
          at Function.createSession (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
          at Function.createSession (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/chrome.js:761:15)
          at createDriver (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/index.js:170:33)
          at Builder.build (/working_dir/node_modules/sentinel-ast/integration/selenium/node_modules/selenium-webdriver/index.js:626:16)
          at createDriver (/working_dir/node_modules/sentinel-ast/integration/selenium/cucumber/setup-driver.js:68:26)
          at World.get [as driver] (/working_dir/node_modules/sentinel-ast/integration/selenium/cucumber/setup-driver.js:97:18)
          at World.<anonymous> (/working_dir/node_modules/sentinel-ast/integration/selenium/cucumber/steps.js:7:17)
          at _combinedTickCallback (internal/process/next_tick.js:132:7)
          at process._tickCallback (internal/process/next_tick.js:181:9)```

Is this what you're seeing as well?

@perryloh-nintex yes you are right there are 2 problems:

selenium docker has a too small /dev/shm partition this make zap spider crash on big site (i tested on 2 wordpress sites)
zap error on active scan, this is due the small default timeout on cucumber functions.

For the first problem i found only one fix increasing the shm size on docker.
For the second problem in my solution i increased the timeout in cucumber but it also possible to limit the scanning of zap setting inScopeOnly: true and recurse: false but in my opinion is not the best solution for your software.

I updated my PR with the change on docker-compose.
i had to increase the Docker-compose version to 3.5 but considering that is based on docker 17.12.0+ should be safe.

Managed to get beefree.io site to scan with setting ZAP_MAX_DEPTH to 1. The config.env mechanism feels like one area which could do with an overhaul to make things easier to configure and manage.

This PR will be merged into v1.4.16


deprecate graph plugin

Per @baudehlo comment in PR #1028

If plugins as npm modules work, we should put this on npm.

I haven't had time to get it installed and write install instructions, but it's got a new home at haraka/haraka-graph and it's published on npm


Can not drop dac_override capability because of docker-entrypoint.sh

Currently the container needs the capability dac_override. This is a potential security issue also mentioned in this Red Hat article.
In Issue #208 and pull request #209 this issue was fixed but was reintroduced later.
If I drop the capability dac_override on an already initialized postgres installation serveral "permission denied" errors appear in the logs:
find: /var/lib/postgresql/data: Permission denied
You can workaround this error if you change the following line to chmod 750 "$PGDATA" || :
https://github.com/docker-library/postgres/blob/a11e908fb50cacb6192d1db93dcf911bc1a724e6/docker-entrypoint.sh#L41
The group of the files is "root" in this case. This is the reason why dac_override is not needed anymore and the find command can operate on the files anyway.
I'm not sure if this is only a fix for already initialized databases. Maybe other fixes are needed to be sure that dac_override can be dropped on non initialized databases.
For security reason it would be really great if we can drop the dac_override capability for this container again.

Ah interesting -- if we run the container as non-root, it doesn't run that code at all, and the cap drop works just fine.  I'd honestly suggest doing that for any/all security conscious users rather than relying on our code that does a drop from root after munging permissions.
See https://github.com/docker-library/docs/tree/master/postgres#arbitrary---user-notes for some details about how to do that successfully.

Hello @tianon,
thanks for your advise. With --user the container works perfectly with dropping all capabilities and for me the issue can be closed.


Fixed #13342,  #13340 & #13346

What this PR does / why we need it:
Which issue this PR fixes

fixes #13342, #13340 & #13346

Special notes for your reviewer:
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/assign @billimek

/ok-to-test

@darxkies Please sign your commits and bump the chart-version.

@darxkies still need to sign the commits - see the DCO bot status

/assign

/lgtm


Allow web-browsers to issue cross-domain requests

This only concerns JavaScript requests done from the web-browsers via XMLHttpRequest and ActiveXObject. By default the web-browsers are not allowed to fetch content from an OPTiMaDe server, living on an external domain, unless such header is included into the server's response:
Access-Control-Allow-Origin: *
May I kindly ask you to include this header into your server implementation responses.

@blokhin please start a PR to add this as a SHOULD or so to the optimade.md spec?

Are there security concerns we should worry about with this? The only thing I immediately can see is on the client--- if you are not careful with how you render data fetched via OPTIMaDe, the owner of the database may pull off some cross-site-scripting. But that, to me, is on the client.
Otherwise, I think this is commonly restricted to block man-in-the-middle-type attacks, but I do not yet see how that applies here. I'll think a bit more on this. But I think SHOULD is the right level for it.

The cross-site scripting is not so much an issue here, AFIU, but setting Access-Control-Allow-Origin: * opens slight possibility for subverting database data. If the scenario described in Quora

I do not like the Access-Control-Allow-Origin: *, considering it a bad design and possible security thread for our servers. Also, it seems to be not necessary: already without the ACAO header,

the same-origin policy allows inter-origin HTTP requests with GET and POST methods

W3C Same Origin Policy, and GET is the only request currently relevant for OPTiMaDe.
I therefore suggest either not having any mention of Access-Control-Allow-Origin in the OPTiMaDe spec, or at least changing 'SHOULD' to 'MAY'.

Please, see https://github.com/Materials-Consortia/OPTiMaDe/pull/105#issuecomment-502489546


Class name rules are too strict

From HTML 4.01 onwards, the class attribute is allowed to have weird values, including Unicode symbols. The following code is perfectly valid:

Foo.

Bar.

Baz.

Inga.

Lorem.

Ipsum.

Dolor.

Sit.

Amet.

However, the pug lexer restricts class names to values begining with - ,  _ or a letter and only containing _, -, a-z and 0-9. Is there a reason for it not being more loose?

First, it is perhaps better to look at the rules for CSS which are a bit more applicable for us.

The class selector is given as a full stop (. U+002E) immediately followed by an identifier.
– Selectors Level 4

– CSS Syntax Module Level 3

From the railway diagram above, it is pretty obvious that it is similar to what we have, except CSS has support for non-ASCII characters. This alone disqualifies several of your examples that use ASCII only.
Now, the rationale for not adding support for Unicode has been detailed in https://github.com/pugjs/pug/issues/1796#issuecomment-68077675 and https://github.com/pugjs/pug/issues/1904#issuecomment-114142406. Tl;dr, we believe that it's more bullet-proof if we force our users to use the explicit string way (i.e. (class='ʍəįɹp')).


Refill belt from inventory game crash.

Description of the bug
Using the Refill Belt Items from Inventory feature I am able to reproduce a game crash to desktop/non-responsive issue.
I was testing the Refill feature to see if it was malfunctioning in relationship to sorting the inventory. My suspicion was that moving inventory items with the sort feature was leading to bad references in the Refill feature. I was aiming to reproduce the issue others have reported with Refill and items disappearing. I stumbled on a different, but potentially related issue.
During testing I found that a potion with no replacement in inventory would duplicate in the belt one time. After using the newly added item I then used a scroll that I had 6 of in the inventory. This crashed the game.
I've seen chatter about Refill from inventory pulling potions from companions. I suspect that the Cat's Grace potion might be pulled in from a vendor, as this test is done in Drezen at the start of Act 3. I checked the companions, None of them have a potion of Cat's Grace in their belts to pull. Possibly this is what is setting the bad reference in the belt system that leads to a game crash when an scroll with copies in the inventory is used after the second, mystery potion.
Using WotR 2.1.4w
Mod Manager <IP_ADDRESS>
Toybox 1.5.5a
Steps To Reproduce
Starting condition is controlling the main character only, in the city of Drezen.
inventory contains many items, the ones used on the test are Scroll of Death Ward x1, Pot Cure Moderate Wounds x22, Pot Cat's Grace x1, Scroll of Remove Sickness x6.
Unequip all belt items.
Open Toybox, toggle Infinite Consumables off. Toggle Refill belt from inventory on. Close Toybox.
Place on the belt, in this order from left to right. Scroll of Death Ward, Pot Cure Moderate Wounds, Pot Cat's Grace, Scroll Remove Sickness.
Note the inventory screen shot has two black spaces, These were the Death Ward and Cat's Grace items. Also note, I checked companion inventory for a second Cat's Grace potion. There are none on the companion belts.
Use from the belt, in this order:
Cat's Grace (a second Cat's Grace appears, I don't know from where.)
Cure Moderate Wounds.
Death Ward. (at this point all items shift one position in the belt. And Arsinoe appears to cast the spell, which is odd.)
Cure Moderate Wounds.
Cat's Grace. (potion appears to work as intended, and this time there isn't a new one created to replace it.)
Remove Sickness.
Game is unresponsive, crash to desktop.
Expected Behavior
The Cat's Grace potion should not be replaced, as there is not one in the inventory. The Deathward is not replaced. The Cure Moderate Wounds potions are replaced. The Remove Sickness scroll is used and replaced, as there are 6 in inventory.
Log Files
No response
Save File
No response
Screenshots

Settings
No response
Toybox Version
1.5.5a
Operating System
Windows
What game are you using Toybox on?
Pathfinder Wrath of the Righteous
Game Version
2.1.4w
Anything else?
No response

I am using:
ToyBox 1.5.5a
Allow Modded Achievements 1.0.1
Bubble Buffs 5.1.3
Combat Relief 2.2.0
ModMenu 1.3.0
One Feat Per Level 1.1.0
Weapon Focus Plus 1.2.1

Player.log
Crash entry on line 656 of the Player.log
GameLogFull.txt
I looked through GameLogFull. I didn't see date/time stamps. I have played some since the testing that caused the error.
I know a thing or two about code, but it's my first time with Owlcat games and Unity mods.
I wish you all the best on the bug hunt!

Manual_5_Test_2.zip
Unfortunately I saved over the file where I was in Drezen.
This file is on a random encounter map shortly after the experiments where I was able to crash the game. I set up the main character with the items as listed in the steps to reproduce. I am able to reproduce the duplicate Cat's Grace potion issue, but I was unable to cause a game crash with the Remove Sickness scroll in this scenario. Also, the character Arsinoe is not appearing to cast the spells. I suspect using scrolls via Use Magic Device skill in Drezen might cause her to appear. Unknown if that is an oddity of the game, or a mod issue.


Don't set global uniforms in UpdateSurfaceData*

Picked from #1473.

I don't see the global flag in the constructor on u_ModelViewMatrix or u_UnprojectMatrix.

I don't see the global flag in the constructor on u_UnprojectMatrix. (Maybe we should delete the liquid shader so we don't have to discuss that...)

I don't see the global flag in the constructor on u_UnprojectMatrix.
Indeed. I have made it global now.

(Maybe we should delete the liquid shader so we don't have to discuss that...)
Then how would we render water?

We want water to be fixed, not NUKED:

https://github.com/DaemonEngine/Daemon/issues/645


faq-1-8-sept

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[x] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[x] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


Headless browser?

Hi, @GSstarGamer.
Please, refer to these links: https://github.com/Kalebu/alright/issues/74#issuecomment-1179672290 and https://github.com/Kalebu/alright/issues/74#issuecomment-1179772020.
Thanks.


Inconsistent behaviour when getter that returns a function is called with/without .call()

Dart-pad demo: https://dartpad.dev/?id=a0f88b47e1d05bd8f2347442f867de84
When a "getter" returns a function - depending on how it is called  - obj.adder(fetchNum()) vs obj.adder.call(fetchNum()) - the execution-path is different, check the demo link above.
This is an inconsistent behaviour, when the getter has a side-effect.
PS: Not sure if this is a bug or feature (as intended). According to me, it is a bug - since the behaviour is inconsitent.

It looks like a change that could give rise to a rather small amount of breakage (because getters returning functions could be a somewhat esoteric design choice), but based on the fact that it just changes the order of evaluation it might cause some really subtle bugs that aren't noticed for a while. And, of course, it might also break a lot of code, who knows.
I can see that the actual arguments are evaluated before the getter with dart and dart2js (the CFE might be making that decision and lowering the code).
@johnniwinther, we have had discussions about the evaluation order of similar constructs previously. What do you think? And is it true that this decision is made by the CFE (for all or some configurations)? @sigmundch, @mkustermann, WDYT?

Just for note, I discovered it when writing mock_plugin lib - with a feature called "dynamic  stubbing"  - the design is as follows:
test("dynamic stubbing", () async {
    // arrange
    final connectivityPlugin = setUpMockPlugin("dev.fluttercommunity.plus/connectivity");
    final checkStub = connectivityPlugin.stubFor.call(await Connectivity().checkConnectivity());
    checkStub.toResult((call) async => "mobile");
    // act
    final result = await Connectivity().checkConnectivity();
    // assert
    expect(result, ConnectivityResult.mobile);
    checkStub.verify.calledOnce();
});

Here, the stubFor is a getter that returns functions - with a side-effect that enables capturing any subsequent call to plugin, this then can be stubbed and verified. stubFor(...) misbehaves (await Connectivity().checkConnectivity() called before the side-effect inside the getter) but stubFor.call works as expected.
I think similar mechanism is done by mockito as well.

Just discussed the matter with @johnniwinther, confirming that this topic has been an issue for several years, and there is no easy path to "just fix it", but we are in a better position to do it than we used to be (because various stages of the compilation process have more type information available today). We'll discuss how to deal with it, but it is likely to take some time.

See previous discussion here as well.

Discussion of the state of the implementations as of 2019 here.


CMake code review

Minimize use of VCPKG specific variables, and use standard CMake logic instead.

Related fixes to test suite in this commit.


relax arrow parens rule

as needed

I'm so confused by this. Didn't we discuss today that we always want to have the parenths even on a single argument?

@chrisbreiding feels strongly. I don't care. prettier feels that it should be as needed, which means not for single argument. If we want to be compatible with prettier (which is a good thing for code consistency) we should relax this rule.

obsolete


Explicitly install dependencies for wine32.

Allow downgrading packages to resolve conflicts

Adding ppa:ondrej/php was a temporary fix until the official repositories are updated... However, it now causes more issues than it originally fixed. As such we need now to manually downgrade two packages so amd64 and i386 packages have same version.
This will result in the offending packages to be removed and some packages to be upgraded to satisfy dependencies of wine32 package.

@nmoinvaz @dead2


feat: add option to pass envs in build command

Any update?

Any update?
@joii2020 is working on this. We also have some other improvements listed here:
https://github.com/nervosnetwork/capsule/discussions/46

@zzhengzhuo015
Already implemented in https://github.com/nervosnetwork/capsule/pull/57
Close the PR due to above PR.


General availability of QnAMaker on nuget

When can we expect the newest commit that added changes to QnADialog so it would work with services on Azure to be updated on the nuget package? Wanted to change my code to use that service instead of the preview, but without what was changed on that commit I can't do it.
(I don't know what involves updating on nuget, if it takes much time or effort, asking so I can get a sense of when it will be available).

I have just returned from a vacation, so I should be able to get this out in the next 24/48 hours.

Okay, great! Thanks for the answer.

Hello, any news about updating nuget package? We are still waiting :)

@IgnasLabinas @1110770MiguelSilva Sorry for the delay :) I have just pushed the latest package to NuGet https://www.nuget.org/packages/QnAMakerDialog/3.1.0
Let me know if you have any issues with it 👍

Super, thanks!

I don't know why but I get this error when trying to update.
Package 'QnAMakerDialog 3.1.0' is not found in the following primary source(s): 'https://api.nuget.org/v3/index.json'. Please verify all your online package sources are available (OR) package id, version are specified correctly.
I even tried to remove an reinstall the package, couldn't do it, but I could for the 3.0.0 version.
@IgnasLabinas You didn't have any problem updating?

@1110770MiguelSilva Sometime NuGet can take a while to publish the updated packages, but I just got an email saying this was done.  Can you try searching using the Package Search in Visual Studio as opposed to the command line and see if you can see it please?

I can, it's there as the latest stable but I still get the same error.

@1110770MiguelSilva hmm. ok. I have no idea why that would be.  I can only suggest waiting a couple of hours and seeing if it resolves itself.  Maybe its something to do with how NuGet propagate newly published packages.

Error stopped showing, must've been a matter of waiting some time. But now I'm getting a new error when updating.
Could not install package 'QnAMakerDialog 3.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

I am getting thins error too.

@1110770MiguelSilva @IgnasLabinas Ok, you will need to leave that one with me. Looks like a NuGet packaging issue. I'll take a look shortly.

@1110770MiguelSilva @IgnasLabinas Ok, I think I know what's happening here. I have upgraded this package recently to .NET Standard.  Therefore, you need to be targeting 4.6.1 and above.  However, you should be able to install by ignoring dependencies using the -IgnoreDependencies flag on the NuGet package manager command line. Can you try that please?

Tried and still failed.

Same for me:
Install-package : Could not install package 'QnAMakerDialog 3.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Ok. Leave it with me. Might be tomorrow before I can fully investigate this but will get it done as soon as I can.

Ok, thank you.

Worked! Updated it, gonna work on getting it to use the Azure Service details now and I'll comment here afterwards.

The QnAMakerServiceAttribute is still asking me only for the subscriptionKey and the knowledgeBaseId, I can't seem to even find any reference to the other newer attributes. I built my dialog from the example in the sample, is the construction of it now different?
[Serializable]
[QnAMakerService("subscriptionKey ", "knowledgeBaseId")]
public class QnAMainDialog : QnAMakerDialog<bool>
{
   public override async Task NoMatchHandler(IDialogContext context, string originalQueryText)
        {
            context.Done(false);
        }
    public override async Task DefaultMatchHandler(IDialogContext context, string originalQueryText, QnAMakerResult result)
        {
            (...)
            context.Done(true);
        }

}

I'll check this. Can you try passing those details into the conductor instead??

If its not working I'll get a fix in this weekend.

The class itself doesn't have the attributes, if I go check the metadata it's still like this:
public class QnAMakerDialog<T> : IDialog<T>
    {
        protected Dictionary<QnAMakerResponseHandlerAttribute, QnAMakerResponseHandler> HandlerByMaximumScore;

        public QnAMakerDialog();

        public string SubscriptionKey { get; set; }
        public string KnowledgeBaseId { get; set; }
        public int MaxAnswers { get; set; }
        public List<Metadata> MetadataBoost { get; set; }
        public List<Metadata> MetadataFilter { get; set; }

        protected static IMessageActivity ProcessResultAndCreateMessageActivity(IDialogContext context, ref QnAMakerResult result);
        [AsyncStateMachine(typeof(QnAMakerDialog<>.<DefaultMatchHandler>d__25))]
        [DebuggerStepThrough]
        public virtual Task DefaultMatchHandler(IDialogContext context, string originalQueryText, QnAMakerResult result);
        [AsyncStateMachine(typeof(QnAMakerDialog<>.<NoMatchHandler>d__26))]
        [DebuggerStepThrough]
        public virtual Task NoMatchHandler(IDialogContext context, string originalQueryText);
        [AsyncStateMachine(typeof(QnAMakerDialog<>.<StartAsync>d__21))]
        [DebuggerStepThrough]
        public virtual Task StartAsync(IDialogContext context);
        protected virtual IDictionary<QnAMakerResponseHandlerAttribute, QnAMakerResponseHandler> GetHandlersByMaximumScore();
        [AsyncStateMachine(typeof(QnAMakerDialog<>.<MessageReceived>d__22))]
        [DebuggerStepThrough]
        protected virtual Task MessageReceived(IDialogContext context, IAwaitable<IMessageActivity> item);
    }

I know, I think, what the problem is. I'll get a fix to NuGet tonight or tomorrow.

@1110770MiguelSilva @IgnasLabinas ok, 3.1.2 published to NuGet and should hopefully now have the updated dialog :) Let me know how you get on.

Implemented and tested, working perfectly as far as I can tell. Thank you!

Fantastic! Great to hear. Glad we got you guys unblocked.


I can't run the train_fcn32s.

The problem is this:
subprocess.CalledProcessError: Command '['git', 'log', '-n', '1', '--pretty=%h']' returned non-zero exit status 128.
Anyone can help me ?

you can try to git clone https://github.com/wkentaro/pytorch-fcn.git

Did you solve the problem,I meet the same problrm.

Do as below:
git clone https://github.com/wkentaro/pytorch-fcn.git
cd pytorch-fcn
pip install .

cd examples
./train_fcn32s.py

Do as below:
git clone https://github.com/wkentaro/pytorch-fcn.git
cd pytorch-fcn
pip install .

cd examples
./train_fcn32s.py


Dask release 2024.12.0 changed dsk keyword in Blockwise class this breaks AwkwardBlockwiseLayer __init__

Hi,
the change here in dask version 2024.12.0 breaks AwkwardBlockWiseLayer super().__init__ function:

I am no expert whatsoever just tried to run most recent version and saw the break in the inheritance of the class.

@lgray , will #556 fix this? We have no way to add a dask version constraint to released versions...

Yeah once I get the details worked out #556 will take care of this. For now, @jpwgnr please use an older version of dask.

sure all good, just wanted to let you know. :)

Thanks! The nightly tests in coffea also picked it up, but good to have other confirmation!

+1 from vector


Remove EM from this section

This is old and duplicating the EM page

Closing as #38 has changed this and this change is not long applicable.


vector-0.13 not allowed

cabal outdated reports that packages in this repo do not allow the newest release of vector, v0.13:
- [ ] morpheus-graphql-0.27.2 (>=<IP_ADDRESS> && < 0.13.0). Davit Nalchevanidze<EMAIL_ADDRESS>@nalchevanidze. Used by: library
- [ ] morpheus-graphql-app-0.27.2 (>=<IP_ADDRESS> && < 0.13.0). Davit Nalchevanidze<EMAIL_ADDRESS>@nalchevanidze. Used by: library
- [ ] morpheus-graphql-core-0.27.2 (>=<IP_ADDRESS> && < 0.13.0). Davit Nalchevanidze<EMAIL_ADDRESS>@nalchevanidze. Used by: library
- [ ] morpheus-graphql-server-0.27.2 (>=<IP_ADDRESS> && < 0.13.0). Davit Nalchevanidze<EMAIL_ADDRESS>@nalchevanidze. Used by: library

Allowing these would work towards solving

https://github.com/commercialhaskell/stackage/issues/6624

Danke schön @nalchevanidze 👍🏼


Allow specifying allowed client-ids via a different input method

Currently, the list of allowed client ids can only be specified via cli args (unless I've missed something). This can be a security issue particularly on home-lab setups, because cli args are world readable (e.g., by reading /proc/<pid>/cmdline). In the case that a different service with a non-privileged user gets compromised, the attacker might be able to read out the list of client ids without needing to gain any further privileges.
This would be solved if you could provide the list of client ids via files or environment variables (or even stdin or sockets, but the former are easier to work with). Optimally, I'd like to be able to provide a file, because it integrates better with the systemd credential system, but I'm happy with envvars as well.
It might also be a good idea to warn the user somehow that they shouldn't provide the client id via cli args apart from testing purposes.

This is a good point -- client ID is a credential and should be treated like one.
I want to keep taskchampion-sync-server as the most basic "reference implementation" so I'd like to avoid adopting a config file -- that just invites more config knobs! Instead, I'd like to channel interest in more complex sync-server setups into new implementations, perhaps embedding the existing core crate or perhaps re-implementing the protocol from the spec.
But, as you say this is potentially an issue even in the intended use-case of a one-person server like a VPS or home lab.
So, I think that env vars -- ideally for all of the config options and not just this one -- is the right approach. I think clap makes that easy!


Refresh item not working

When the indicator is installed from PPA, the refresh item doesn't work whereas when the file is run using IDLE, the refresh button works.

Passing the widget as a function parameter to the refresh function solved the problem.


Display size and file count for works

Descriptive summary
Might be useful to the user to see how many files are in a work and how big the entire work is, similar to what we're doing it for collections as well.
Related work
See https://github.com/psu-stewardship/scholarsphere/commit/9c268e33e

This should probably go through some design as well. Tagging @ggeisler @samvera-labs/hyrax-ui-ux-advisors

Have druthers re: priority for :point_up:, @hannahfrost ?

+1 @wead !

Does a solution as simple as adding these fields to the metadata list as shown below work? Or do people think we need to make the file count and work size more prominent?

@ggeisler yep. that's how we did it.


use proper remappings for loading pose parameter

Thanks for the plugin, I've been looking forward for something like this for a while :)
However, right after startup, the rqt-node crashes. Debugging resolves:

you are looking up the parameter "poses" within the global parameter server
you are looking up by sub-string match
you "find" the first parameter to match and return

In my case, I had another parameter that had the phrase "poses" in it. So it grabbed the wrong param, which, of course, failed. Why are you searching for parameters anyway? This is not how one uses the ros parameter server. The program should respect the namespace it lives. The user can add remappings from outside, if necessary. Searching for parameters is very error-prone.
I suggest to remove the whole function getFullParamName() and just use the normal way of looking up parameters, and appropriate remappings. It'd also be less ambiguous if you'd rename the param "poses" to "camera_poses" or similar.

Thanks for using the plugin and opening this issue :)
You're right. I didn't think this through. I just searched for the parameters, because the namespace of the private node handle in the gui changes on each start up, as this is an rqt plugin.
I fixed this by giving the node handle a global name that corresponds to the name specified in the launch file. This way it's possible to use the ros parameter server as usual. Additionally I gave the parameter a more specific name.


Change output format to array of an object instead of an object

Currently, I am getting an output as
{
"token_type": "bearer",
"access_token": "e9054d8c5bc095e97c758f23f2766283484a01e3",
"expires_in": 3600
}
but I would like to change to
[
{
"token_type": "bearer",
"access_token": "e9054d8c5bc095e97c758f23f2766283484a01e3",
"expires_in": 3600
}
]
Is this possible?

No, the OAuth spec specifies that the format be in the form of an object.  Specifically:
The parameters are included in the entity-body of the HTTP response using the "application/json" media type as defined by [RFC4627].  The parameters are serialized into a JavaScript Object Notation (JSON) structure by adding each parameter at the highest structure level.

See https://tools.ietf.org/html/rfc6749#section-5.1


Doesn't work, doesn't throw error

I can confirm the plugin is installed, activated, and has a key binding but when I hit ctrl-I, nothing happens and no errors are thrown in the developer tools console.

Same here. On Mac, both on monoline or multilines selection.
See #4

+1

+1

closing this because it's 2 years old, this project is defunct, and i want to clean up my issues tab


Initial contribution guidelines.

Let's put this in .github/CONTRIBUTING.md

@pidster Do you mean /CONTRIBUTING.md, i.e. root level?

No. The .github/ directory also works & can container an issue & PR template.


Public changelog for the phrase CLI?

Hey there,
I'm just wondering if there is a public changelog for the phrase CLI somewhere. Everytime I update the pinned phrase CLI version in our integration I wonder what has changed and if we can improve our integration with new features. 🤔

Hi @skyfrk, thanks for raising the issue. We are aware of the need for a decent CHANGELOG and we opened an internal ticket to tackle this. Hopefully we'll start publishing one soon.

Not sure if I could call it soon :sweat_smile:, but finally we started automatic generating of changelogs for https://github.com/phrase/openapi, which should also trickle down to this repo too (hopefully to be seen in action soon)


feat(AlgebraicGeometry/StructureSheaf): add two useful lemmas

Let $f : R \to S$ be a ring map

The preimage of some basic open set $D(x)$ under $\mathrm{Spec}f$ is $D(f(x))$ (proof is rfl)
the ring map $\Gamma(\mathcal{O} _ {\mathrm{Spec}R}, D(x)) \to \Gamma(\mathcal{O}_{\mathrm{Spec} S}, D(f(x))$ is the map between localizations R_x and S_{f(x)}.

These are lemmas are found useful in #12371 by Andrew.
Co-authored-by: Andrew Yang<EMAIL_ADDRESS>

Thanks!
maintainer merge

Thanks!
bors d+

bors r+


sbt test error: model not found

Hi there,
I have installed dynet with swig successfully, but it has some errors when I test it with sbt test in the root of pnp as follows:

yuchenlin@5FKJDB2:/mnt/c/Users/v-yuclin/workspace/pnp$ sbt test
[info] Loading settings from assembly.sbt,plugins.sbt ...
[info] Loading project definition from /mnt/c/Users/v-yuclin/workspace/pnp/project
[info] Updating {file:/mnt/c/Users/v-yuclin/workspace/pnp/project/}pnp-build...
[warn]  module not found: me.lessis#bintray-sbt;0.3.0
[warn] ==== typesafe-ivy-releases: tried
[warn]   https://repo.typesafe.com/typesafe/ivy-releases/me.lessis/bintray-sbt/scala_2.12/sbt_1.0/0.3.0/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn]   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/me.lessis/bintray-sbt/scala_2.12/sbt_1.0/0.3.0/ivys/ivy.xml
[warn] ==== local: tried
[warn]   /home/yuchenlin/.ivy2/local/me.lessis/bintray-sbt/scala_2.12/sbt_1.0/0.3.0/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/me/lessis/bintray-sbt_2.12_1.0/0.3.0/bintray-sbt-0.3.0.pom
[warn] ==== local-preloaded-ivy: tried
[warn]   /home/yuchenlin/.sbt/preloaded/me.lessis/bintray-sbt/0.3.0/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn]   file:////home/yuchenlin/.sbt/preloaded/me/lessis/bintray-sbt_2.12_1.0/0.3.0/bintray-sbt-0.3.0.pom
[warn] ==== bintray-sbt-plugins: tried
[warn]   https://dl.bintray.com/eed3si9n/sbt-plugins/me.lessis/bintray-sbt/scala_2.12/sbt_1.0/0.3.0/ivys/ivy.xml
[warn]  module not found: org.allenai.plugins#allenai-sbt-plugins;1.4.8
[warn] ==== typesafe-ivy-releases: tried
[warn]   https://repo.typesafe.com/typesafe/ivy-releases/org.allenai.plugins/allenai-sbt-plugins/scala_2.12/sbt_1.0/1.4.8/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn]   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.allenai.plugins/allenai-sbt-plugins/scala_2.12/sbt_1.0/1.4.8/ivys/ivy.xml
[warn] ==== local: tried
[warn]   /home/yuchenlin/.ivy2/local/org.allenai.plugins/allenai-sbt-plugins/scala_2.12/sbt_1.0/1.4.8/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/org/allenai/plugins/allenai-sbt-plugins_2.12_1.0/1.4.8/allenai-sbt-plugins-1.4.8.pom
[warn] ==== local-preloaded-ivy: tried
[warn]   /home/yuchenlin/.sbt/preloaded/org.allenai.plugins/allenai-sbt-plugins/1.4.8/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn]   file:////home/yuchenlin/.sbt/preloaded/org/allenai/plugins/allenai-sbt-plugins_2.12_1.0/1.4.8/allenai-sbt-plugins-1.4.8.pom
[warn] ==== bintray-sbt-plugins: tried
[warn]   https://dl.bintray.com/eed3si9n/sbt-plugins/org.allenai.plugins/allenai-sbt-plugins/scala_2.12/sbt_1.0/1.4.8/ivys/ivy.xml

In the wikitable question branch:
[warn]  :: com.eed3si9n#sbt-assembly;0.11.2: not found
[warn]  :: me.lessis#bintray-sbt;0.3.0: not found
[warn]  :: org.allenai.plugins#allenai-sbt-plugins;1.4.8: not found

@matt-gardner  Is there a fix to this? I'm having the same issue with me.lessis and org.allenai.plugins. I fixed the first by changing the version to 0.14.6.

I'm pretty sure you can just remove those lines from project/plugins.sbt, and remove all references to docker and bintray in build.sbt.  I don't think the library code depends on those plugins, and things should hopefully still work.


compatibility issue: cache/adapter-common

geocoder related packages require "cache/array-adapter": "^1.0".
laravel-swap requires "cache/adapter-common": "^0.3"
Would it be possible to upgrade the package dependencies to resolve compatibility issues?

@papontes We can surely update the version.
Can you please send a PR ?

This will be fixed in the next major version that is being worked in this PR https://github.com/florianv/exchanger/pull/68


IllegalArgumentException when deleting the primary of a dependent resource with activation condition

Bug Report
ERROR [io.jav.ope.pro.eve.ReconciliationDispatcher] (ReconcilerExecutor-projectreconciler-350) Error during event processing ExecutionScope{ resource id: ResourceID{name='testproj', namespace='bschmeli-devjoy-test'}, version:<PHONE_NUMBER>} failed.: io.javaoperatorsdk.operator.OperatorException: io.javaoperatorsdk.operator.OperatorException: io.javaoperatorsdk.operator.AggregatedOperatorException: Exception(s) during workflow execution. Details:

io.devjoy.operator.project.k8s.deploy.ApplicationDependentResource -> java.lang.IllegalArgumentException: There is no event source found for class:io.devjoy.operator.project.k8s.deploy.Application
at io.javaoperatorsdk.operator.processing.event.EventSources.get(EventSources.java:127)
at io.javaoperatorsdk.operator.processing.event.EventSourceManager.getResourceEventSourceFor(EventSourceManager.java:273)
at io.javaoperatorsdk.operator.api.reconciler.DefaultContext.getSecondaryResource(DefaultContext.java:59)
at io.javaoperatorsdk.operator.api.reconciler.Context.getSecondaryResource(Context.java:20)
at io.javaoperatorsdk.operator.processing.dependent.AbstractDependentResource.getSecondaryResource(AbstractDependentResource.java:92)
at io.javaoperatorsdk.operator.processing.dependent.SingleDependentResourceReconciler.delete(SingleDependentResourceReconciler.java:24)
at io.javaoperatorsdk.operator.processing.dependent.AbstractDependentResource.delete(AbstractDependentResource.java:153)
at io.javaoperatorsdk.operator.processing.dependent.workflow.WorkflowCleanupExecutor$CleanupExecutor.doRun(WorkflowCleanupExecutor.java:75)
at io.javaoperatorsdk.operator.processing.dependent.workflow.NodeExecutor.run(NodeExecutor.java:22)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1623)
at io.javaoperatorsdk.operator.processing.Controller.cleanup(Controller.java:212)
at io.javaoperatorsdk.operator.processing.event.ReconciliationDispatcher.handleCleanup(ReconciliationDispatcher.java:294)
at io.javaoperatorsdk.operator.processing.event.ReconciliationDispatcher.handleDispatch(ReconciliationDispatcher.java:89)
at io.javaoperatorsdk.operator.processing.event.ReconciliationDispatcher.handleExecution(ReconciliationDispatcher.java:64)
at io.javaoperatorsdk.operator.processing.event.EventProcessor$ReconcilerExecutor.run(EventProcessor.java:417)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1623)

What did you do?
I created a dependent resource extending CRUDNoGCKubernetesDependentResource. In addition, I defined an activationCondition for the dependent resource. The resource condition is always true.
I delete the primary resource.
What did you expect to see?
The primary resource should be deleted, the dependent should not be deleted (because not garbage collected).
What did you see instead? Under which circumstances?
The primary resource is stuck in deleting state and I get the exception mentioned above.
Environment
Kubernetes cluster type:
OpenShift 4.13.26
$ Mention java-operator-sdk version from pom.xml file
4.6.1
$ java -version
openjdk version "20.0.1" 2023-04-18
OpenJDK Runtime Environment Temurin-20.0.1+9 (build 20.0.1+9)
OpenJDK 64-Bit Server VM Temurin-20.0.1+9 (build 20.0.1+9, mixed mode)
$ kubectl version
Client Version: v1.28.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.26.11+7dfc52e
Possible Solution
No
Additional context
No

Thx @Javatar81
This is an issue with the Activation condition. Theoretically can happen when resources is deleted before the first reconciliation happened. But will try to reproduce it also in a dedicated integration test, and see if there are other edge cases.


dropwizard-testing: Add Jersey Client configurability to ResourceTestRule

Addresses #1416.
Adds a setClientConfigurator method to the ResourceTestRule.Builder class which allows configuration of the Jersey Clients used in test rules. Adds a test to PersonResourceTest which ensures that custom providers installed by this new builder method are reflected in the produced clients.

A couple of nitpicks, but generally looks good!

Updated the branch with the following:

Rebase on current master
Inline the noop Consumer
Rm unnecessary @Provider annotation
Make DummyExceptionMapper private and static

Thank you very much for your contribution!


[carbonmark-api] API Versioning

What: Add versioning to existing endpoints
Why: Allow easy rollback
How: https://www.fastify.io/docs/latest/Reference/Routes/#version-constraints
Expected Outcome:
[ ] - some_outcome
[ ] - some_outcome
Testing Criteria:
1. do_something
2. do_something_else
3. expect_something

Versioning will help us avoid the race condition we have with builds.
Currently, if we make a breaking API change and alter the frontend to handle it, there is no way to deploy both frontend and backend changes in parallel.
In the future we need to follow this process:

Breaking changes must go under a new versioned URL path api.carbonmark.com/v22/projects
Old, unbroken changes must stay unchanged
New API versions must go to production first, in their own PR.
Frontend must upgrade to consume the newer API version in a subsequent PR (to avoid the race condition)
When we have public consumers we can come up with a deprecation scheme:

Choose a deletion date
Update all public docs to indicate deprecation, w/ upgrade guide
Update the old version to respond with a special deprecation header, or status code, or both.

If we ever built an SDK for the rest API, the SDK could consume this header and emit logs to catch developer's attention.

@Atmosfearful the only missing piece to this puzzle is how to handle hotfixes. Two options I can think of:

We have long running version branches and all hot fixes got to all branches
We only hotfix latest versions, any issues in old versions are never fixed

I vote for 2, less chance of git issues because we're not maintaining many branches and less of our dev time is used up. However if a customer is relying on say v2 we are forcing them to upgrade.
Thoughts?

After thinking about this some more I think the best solution here is to use a git tag deployment strategy. Vercel have a rough guide here:
https://vercel.com/guides/can-you-deploy-based-on-tags-releases-on-vercel
The basic idea is:

Creation of a git tag triggers a build and deploy
That deploy is add an Vercel alias or custom domain with the version prefix

For this I'll need to set up some github secrets so that our Vercel API keys are not exposed publicly. We should be able to create a role that allows secret access without giving admin privileges:
https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization
@Atmosfearful is that something you would have time to set up?


Created partition not recognized in Windows version

Etcher version: 1.1.2
Operating system and architecture: Windows 10 Pro x64
Image flashed: Benja OS https://benja.io
Do you see any meaningful error information in the DevTools? No

I have tried many times flash benja to my micro sd sandisk class 10 16GB. The result as follow:

There are 3 created partition and 1 unallocated space (benja used only 8GB, so the unallocated is the rest 8GB)

The first partition is recognized and shown in Windows.

The rest partition is not recognized. Only the first partition has its driver letter.

I open mini tool partition wizard and it shows like this:

The second partition should be ext4 but its shows as "OTHER"

I have submit this issue to Benja. They said there is no problem in Linux. They use the flashed sd card burned by linux burner and then plug the sd card into Windows, and it works fine, all 3 partitions are accessable by Windows with each has its own drive letter.

And this is the Benja's team screenshot, all 3 partitions are recognized:

I have tried 2 different computer. One on this one (Windows 10 Pro x64) and the second is on my laptop Windows 10 Home x86, same result.

I have tried to use another brand new 8GB sandisk class 10 micro sd, still same result.

Hi @facetime88 ,
Etcher does not manipulate the partitions of any image, and it preserves the partition table that comes with the image you select. The result you see is from the partition table Benja OS ships with by default. There are some flashers, that since target Linux distros specifically, do create a new partition table and move files around, which is the reason other people using different tools might be getting a different result.
Did you try booting the image? Unless it requires special treatment, like Windows images (which I highly doubt), it should work just fine.

I put the flashed sd card to my raspberry pi and it works fine. The OS can start the default electron app in the BENJA-APP partition. So it means the raspberry doesn't have any problem accessing the BENJA-APP partition (which is FAT32 file system). But I do not know why I can not access the partition in Windows.

Benja "team" here (just me). I have used etcher 1.1.2-x64, downloaded the iso, unzipped, and burned, with validation.

The folder BENJA-APP started showing even before the end of the validation and a message asking me to format the partition (Linux Ext4) appeared and I've ignored / canceled such message.

All good, I can confirm the benja iso is just fine and Etcher worked like a charm.

@facetime88 I'm afraid I've no idea what's wrong with your Windows 10 Pro :disappointed:

P.S. @facetime88 my windows never understood the second partition ... it doesn't have to recognize it to make the third one available.

Wait...what?? Work like a charm even burn it in Windows? This is a really weird situation for me. So basically you have done the same steps I made, and result in success while I am not.
Really weird....:D I think I need some time for vacation and hope when back everything will give me different result.

Thanks for reaching out @WebReflection !
@facetime88 I can confirm that as far as I know, Windows won't detect ext4 partitions, unless special software/drivers are installed, so the warning should be good to ignore.


Add github workflows for standard lint checks

Context
checkout .pre-commit-cofig.yaml.
we use the following lint tools on commit.

flake8
isort
black

Approach
add workflows in .github/workflows

@DevilsAutumn I would like to work on this issue please assign me .

@AyushMishraa any updates on this?

@DevilsAutumn what sorts of workflows you need? testing, linting and code cov? are following TDD

I think workflows mentioned in #94 is enough for now. not sure if we will be writing tests anytime soon.

# .github/workflows/coverage.yml
name: Post coverage comment

on:
  workflow_run:
    workflows: ["Test"]
    types:
      - completed

jobs:
  test:
    name: Run tests & display coverage
    runs-on: ubuntu-latest
    if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
    permissions:
      # Gives the action the necessary permissions for publishing new
      # comments in pull requests.
      pull-requests: write
      # Gives the action the necessary permissions for editing existing
      # comments (to avoid publishing multiple comments in the same PR)
      contents: write
      # Gives the action the necessary permissions for looking up the
      # workflow that launched this workflow, and download the related
      # artifact that contains the comment to be published
      actions: read
    steps:
      # DO NOT run actions/checkout here, for security reasons
      # For details, refer to https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
      - name: Post comment
        uses: py-cov-action/python-coverage-comment-action@v3
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITHUB_PR_RUN_ID: ${{ github.event.workflow_run.id }}

This would mostly used code coverage yml used in django-filter

we dont have tests so code coverage wont be useful?

Any Update on this? @salty-ivy can you assign this to me? I would like to work on this.

Hi @salty-ivy
Could you please assign this to me if there’s no further update from Ayush?
I believe we should add lint checks for pull requests. It will help to avoid merging poor formatted code.

@Suraj1089 we have already added ruff for the pre commit and workflow, so this issue is no longer valid.
But if you are interested we have a similar issue for frontend #207 , if you are interested.


Update handle-forgot-and-reset-password.md

Proposing these changes to make this chapter more congruent with the core chapters of the guide.

I replied in the other PR.


ImagesLoaded not working properly

I'm using an external API to fetch movie images, when the request is done I bind it to the scope and then repeat the images in a ng-repeat for use with the masonry directive. Problem I'm having is that the images are not stacked upon each other on page load, but rather when I make a new request to fetch some other images from my navigation menu. Isn't imagesLoaded supposed to take care of this?
Is there a fix for this?
I managed to "fix" it by adding a timeout of 100ms but this is bound to fail for some users so I don't consider it as an actual solution. All the issues I've read is that people are having my problem but in reverse, so the images stack on page load but not after that.
Please help.

Hi! Where exactly did you add timeout?Which part of the code?Thanks.

Same issue here. My image URL are retrieved from an internal API and then injected into the scope.

Have the same problem also. Has anyone found a viable solution for this issue?

@existence17 I found a solution (http://johnnythetank.github.io/apiNG/#demo)
I used a custom version of this directive: https://github.com/bimal1331/angular-images-loaded#eventsalways-available


[kcp-plugin] add org name to kubectl-kcp ws use|current output

Summary
This PR adds the organization name to the kubectl-kcp ws use|current
output, which requires refactoring of some re-usable code into helpers.
Related issue(s)
Fixes #631

Apart form my suggestion here I'm :+1:
Thanks for this contribution !

@sttts do you want to review ?


SearchOption for ViewModel with combined fields

Hi,
I cant find out how I am supposed to deal with the below scenario.
I am mapping a datamodel to a viewmodel like this:
            CreateMap<DataModel, MyViewModel>()                 .ForMember(m => m.YearSeason, map => map.MapFrom(u => $"{u.Year}-{u.Season}"))                 .ReverseMap();
And adding searchoptions like this:
query = SearchOptionsProcessor<MyViewModel, DataModel>.Apply(query, parameters.Columns);
Resulting in this error that I understand but how do I deal with an issue like this?

Instance property 'YearSeason' is not defined for type 'Models.DataModel'
Parameter name: propertyName

Thanks in advance
Axel G

Please share your data model and view model.

public class DataModel
{
public int Year { get; set; }
public int Season { get; set; }
public string GroupStrID { get; set; }
}

public class ViewModel
{
public string YearSeason { get; set; }
public string GroupStrID { get; set; }
}

AutoMapper

CreateMap<DataModel, ViewModel>()
.ForMember(m => m.YearSeason, map => map.MapFrom(u => $"{u.Year}-{u.Season}"))
.ReverseMap()

If Year and Season are string fields in your database. Then you can implement something similar to FirstName and LastName as shown in demo project. Currently there is no support for combined integer fields.


Service watcher is started even though there is nothing to do for it

Currently, even if elastic IP tag is not set, CCM tries to watch Service objects and every loop prints similar messages:
failed to update and sync service for add default/kubernetes: elastic ip tag is empty. Nothing to do

I think if there is no loops accessing the Service objects, watch could not even be started to save resources. Optionally, RBAC grant can then also be reduced to not need to read service objects, following least privileged principle.

The whole structure of CPEM has changed since this issue was opened. We also removed the errors that were reporting the above.


WIP: Grab code changes from PR#368 to run test on chrome on this PR.

That'll be easy for me to debug failed case on chrome.

Codecov Report

Merging #389 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #389   +/-   ##
=======================================
  Coverage   34.77%   34.77%
=======================================
  Files          49       49
  Lines        1852     1852
  Branches      334      334
=======================================
  Hits          644      644
  Misses       1208     1208

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 973f8ad...d931e6b. Read the comment docs.


WebView2 hosted by NavigationView/Frame/Page crashes app on exit

Describe the bug
If a WebView2 control is hosted in a Page which itself is navigated via a NavigationView/Frame and navigation happens a few times, the app crashes on exit with the following error message:

Steps to reproduce the bug

Open the attached sample TestNavWebView.zip
Build and run it
Navigate 5 times between the 2 pages
Exit the app and observere the above crash

Expected behavior
No response
Screenshots
No response
NuGet package version
1.1.4
Packaging type
Packaged (MSIX)
Windows version
Windows 10 version 21H2 (19044, November 2021 Update)
IDE
Visual Studio 2022
Additional context
No response

In the posted sample if you force a GC.Collect() after navigating you can observe the crash on exit right after the first navigation.
private void NavigationView_ItemInvoked(NavigationView sender, NavigationViewItemInvokedEventArgs args)
{
  Type navigationTargetType = _navigationItemToPageDict[(NavigationViewItem)args.InvokedItemContainer];
  if (NavigationFrame.Content?.GetType() != navigationTargetType) { NavigationFrame.Navigate(navigationTargetType, null, new DrillInNavigationTransitionInfo()); }
  GC.Collect(); // Forces the crash!!!
}

The crash is also present in 1.2.220727.1-experimental1