authority of route rule rewrite not work

version：istio: 0.6.0 +  Ubuntu 16.04.2 LTS
Hi,
I run bookinfo example in kube by the guide. I did some changes of the example to test the authority of routerule rewrite. But I found it did not work. Can someone give me a hint? Below are what I did:

I changed the detail  request url from 'http://details:9080/details/0' to 'http://ratings:9080/v1/details/0' in productpage service,and restart the service.
add a rewrite rule(detail-rewrite) of detail to rewrite "/v1/details" to '/details'
add a redirect rule(rate2detail) of ratings to redirect 'ratings' to 'details'
refresh the demo page. the demo is ok, it can get the detail info. (redirect success)
then I replace rate2detail to rate2detail rewrite.
refresh the demo page and now the the detail request fails. (rewrite not work)

Below are the rules:
detail-rewrite
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
  name: detail-rewrite
spec:
  ## Used by services inside the Kubernetes cluster
  destination:
    name: details
  match:
    request:
      headers:
        uri:
          prefix: /v1/details
  rewrite:
    uri: /details

rate2detail
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
  name: rate2detail
spec:
  ## Used by services inside the Kubernetes cluster
  destination:
    name: ratings
  redirect:
    authority: details:9080

rate2detail rewrite
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
  name: rate2detail
spec:
  ## Used by services inside the Kubernetes cluster
  destination:
    name: ratings
  rewrite:
    authority: details:9080

@aimuke can you try your rate2detail rewrite rule without the port in the rewrite?
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
  name: rate2detail
spec:
  ## Used by services inside the Kubernetes cluster
  destination:
    name: ratings
  rewrite:
    authority: details

Thx, @GregHanson
I tried to update rate2detail rule without port, but this didnot work.  It still returns:

Sorry, product details are currently unavailable for this book.http://details/v1/details/0[]

@GregHanson , I tried to change rate2detail  redirect to detail without port. By this way,  the request fails too.
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
  name: rate2detail
spec:
  ## Used by services inside the Kubernetes cluster
  destination:
    name: ratings
  redirect:
    authority: details

This issue is solved.
https://groups.google.com/forum/#!topic/istio-users/4hAjdIOFIQA
The reason is that a rewrite doesn't change the destination of a request, it only updates the header value in the request. So this place I should use route to change the destination, like below:
apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
  name: rate2detail
spec:

# send traffic who's destination is "ratings" to the destination "details"
  destination:
    name: ratings
  route:
  - destination:
      name: details

how does this work now that RouteRule is deprecated in networking.istio.io/v1alpha3 ?


More concise formatting of github workflow summary comments

The health check comment that is posted currently is extremely long, and pushes user comments below the fold.
This proposed new formatting shortens it up quite a bit:
Before
PR Health
Breaking changes :heavy_check_mark:

Details

Package
Change
Current Version
New Version
Needed Version
Looking good?

Changelog Entry :heavy_check_mark:

Details

Package
Changed Files

Changes to files need to be accounted for in their respective changelogs.

Coverage :heavy_check_mark:

Details

File
Coverage

This check for test coverage is informational (issues shown here will not fail the PR).

API leaks :heavy_check_mark:

Details

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package
Leaked API symbols

License Headers :heavy_check_mark:

Details

// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

Files

no missing headers

All source files should start with a license header.

Unrelated files missing license headers

Files

pkgs/checks/test/failure_message_test.dart

Package publish validation :heavy_check_mark:

Details

Package
Version
Status

package:checks
0.3.1-wip
WIP (no publish necessary)

package:test
1.25.9-wip
WIP (no publish necessary)

package:test_api
0.7.4-wip
WIP (no publish necessary)

package:test_core
0.6.6-wip
WIP (no publish necessary)

Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

After:
PR Health

Breaking changes :heavy_check_mark:

Package
Change
Current Version
New Version
Needed Version
Looking good?

Changelog Entry:heavy_check_mark:

Package
Changed Files

Changes to files need to be accounted for in their respective changelogs.

Coverage :heavy_check_mark:

File
Coverage

This check for test coverage is informational (issues shown here will not fail the PR).

API leaks :heavy_check_mark:
The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package
Leaked API symbols

License Headers :heavy_check_mark:
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

Files

no missing headers

All source files should start with a license header.

Unrelated files missing license headers

Files

pkgs/checks/test/failure_message_test.dart

Package publish validation :heavy_check_mark:

Package
Version
Status

package:checks
0.3.1-wip
WIP (no publish necessary)

package:test
1.25.9-wip
WIP (no publish necessary)

package:test_api
0.7.4-wip
WIP (no publish necessary)

package:test_core
0.6.6-wip
WIP (no publish necessary)

Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

Possibly we should also just consider not posting any comment at all, when everything is fine.


e2e - slow tests - should check network details after intercepting stats call

What would you like to be added:
Improve test speed for Wallet - Network detail screen - outside wallet contextshould check network details after intercepting stats call in networkDetails.spec.ts. Currently it takes around 1min.
Why is this needed:

I think this line is the culprit, reason for the long timeout is because smallest unit displayed in Last synced UI is minutes, hence that test is written to check if a minute has passed
https://github.com/DeFiCh/wallet/blob/4893a9bd48520375e34e94014bc8a8c1db02c3c2/mobile-app/cypress/integration/functional/wallet/settings/networkDetails.spec.ts#L113

@thedoublejay i think no way to get around this waiting time, unless we don't test if the UI changes after 1 min


Add env var to force TCF env in privacy center

Closes https://github.com/ethyca/fides/issues/4258
Description Of Changes
Context: https://ethyca.atlassian.net/wiki/spaces/EN/pages/2816933901/2023-10-18+Fides-tcf+without+server+side+geolocation
This is the "quick and easy" method. The more work method is poc'd in https://github.com/ethyca/fides/pull/4311, but we decided to get this in first (since the poc relies on this work anyway)
Code Changes

[x] Add a new environment variable FIDES_PRIVACY_CENTER__IS_FORCED_TCF=true
[x] Add a check to handle an empty GVL (which happens if we are using the TCF overlay but got a Notice experience back, so there's no gvl)
[x] Fix for test that sometimes fails on slow connections

Steps to Confirm

[ ] Set up TCF
[ ] Run FIDES_PRIVACY_CENTER__IS_FORCED_TCF=true turbo dev
[ ] VPN to an EU region and visit your privacy center /fides-js-demo.html
[ ] In the past you would have to tack on a ?geolocation=fr-id here in order to get the TCF overlay. But with this new env var, you'll always get the TCF bundle. You should see your TCF overlay as expected. You should also see a network call being made for the privacy experience, since it wasn't pre-fetched
[ ] VPN to California and visit your privacy center /fides-js-demo.html
[ ] You'll get an empty TCF overlay

Pre-Merge Checklist

[ ] All CI Pipelines Succeeded
Documentation:

[ ] documentation complete, PR opened in fidesdocs
[ ] documentation issue created in fidesdocs

[ ] Issue Requirements are Met
[ ] Relevant Follow-Up Issues Created
[ ] Update CHANGELOG.md
[ ] For API changes, the Postman collection has been updated

Failing tests are unrelated to this PR

Great! confirmed that tests are passing locally, except for the one we know about


how to get the hash of extension?

@rich-hansen i saw that you put KNOWN_EXTENSION_HASHES in https://github.com/facebookincubator/meta-code-verify/blob/main/src/js/config.ts#L54 where do we get this value? do everytime we need to whitelist an extension we need to hash it then put it into the merkle tree?

Ah i see, so we dont need to put in merkle tree but we need to hash and check ourselves which one is from which extension correct? Im actually thinking to make a dynamic UI to list id of extension we deemed safe to use actually it make sense using the hash but we the problem is we cant determine which script is being used by what extension right? So i think making a list of extension id is pointless

@rich-hansen wanted to ask so i have metamask and phantom wallet extension, and when i use the latest build from meta-code-verify from this repo and open web.whatsapp.com i got a validation error, and then i disable metamask, that leave only phantom wallet extension, and it doesnt get any validation error, is this the correct behaviour? because in my opinion it should get validation error because its not in the binary-transparency-manifest merkle tree and also it doesnt have it hash added in KNOWN_EXTENSION_HASHES,let me know your opinion on this


openneuro-py download error: No such option: --target_dir

Version: https://github.com/spinal-cord-7t/coil-qc-code/commit/0609ec86ccd3765fe190344102afdef4f86ecfb7

Using --target-dir fixes the issue.

Note: this also affects https://github.com/spinal-cord-7t/coil-qc-code/blob/0609ec86ccd3765fe190344102afdef4f86ecfb7/data_processing-human.ipynb even though I had already fixed it in the past https://github.com/spinal-cord-7t/coil-qc-code/commit/61bcc7069b103322db6fc4e16bf8c3f3708d52e3


Navigate to conversation on tapping notification

Still only on Android; iOS support for notifications in general is coming next.
Fixes: #123

Oh hmm, one thing I just noticed: is this meant to work when the app is not open at all, where tapping a notification is meant to cause a cold start of the app?

is this meant to work when the app is not open at all, i.e., where tapping a notification is meant to cause a cold start of the app? When I tap a notification when the app is completely closed, it does open the app, but just to the "Choose account" screen.

Hmmm good catch.
I think that is an important case for #123 — probably the most common case. I'll take a look at handling it.

Thanks for the review! Updated — PTAL.
I acted on the small comment above and then also added three commits at the end to handle the launch-from-notification case.

(As discussed at #352, on my device I still don't actually get notifications while the app is completely stopped. So wherever those symptoms apply, this still won't deliver a large swath of the value of getting a notification and opening it. That issue is tracked at #342.
But I can still manually test the issue you raised: open the app, cause a notification, then kill the app, then open the notification. The app was running when the notification appeared, but not when it was opened, so the opening of the notification is what launches the app.)

Thanks! Merged.
FWIW in my testing just now, on the office Android device, I also saw long delays in a notification appearing if the app was completely closed when the message was sent. The notifications did eventually arrive, but not before I opened the app again. (In fact, they didn't even arrive at the time I reopened the app—it took a surprisingly long time after that, maybe over a minute.)
So I managed to test the launch-from-notification case this way too:

But I can still manually test the issue you raised: open the app, cause a notification, then kill the app, then open the notification. The app was running when the notification appeared, but not when it was opened, so the opening of the notification is what launches the app.


ShareFileClient UploadRangeAsync timeout or reset on large file

Query/Question
Using Azure.Storage.Files.Shares v12.2.3. I'm attempting to upload json files. It appears that small files work without issue, but large files (~100MB) seem to "reset" after 90 seconds or so. I wired into the IProgress<long> progressUpdate and I'm logging every 5%. You can see it chugs along to 20% then it seems to reset.
Log excerpt:
[7/16/2020 11:48:37 PM] Uploading file: [2020-07-15.json]
[7/16/2020 11:48:38 PM] ... 0% [0/101494994]
[7/16/2020 11:48:58 PM] ... 5% [5111808/101494994]
[7/16/2020 11:49:19 PM] ... 10% [10223616/101494994]
[7/16/2020 11:49:40 PM] ... 15% [15335424/101494994]
[7/16/2020 11:50:00 PM] ... 20% [20316160/101494994]
[7/16/2020 11:50:19 PM] ... 0% [0/101494994]
[7/16/2020 11:50:39 PM] ... 5% [5111808/101494994]

Is there a way to set a higher timeout or ensure it keeps going or some configuration I need to check/set/enable or...?
Environment:
Azure.Storage.Files.Shares v12.2.3.
Project properties
<PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <AzureFunctionsVersion>v2</AzureFunctionsVersion>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="AsyncEnumerator" Version="4.0.2" />
    <PackageReference Include="Azure.Storage.Files.Shares" Version="12.2.3" />
    <PackageReference Include="IQ.Vanilla" Version="4.1.0" />
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.29" />
    <PackageReference Include="System.Data.SqlClient" Version="4.5.1" />
  </ItemGroup>

Microsoft Visual Studio Enterprise 2019
Version 16.6.3
from dotnet --info
.NET Core SDK (reflecting any global.json):
Version:   3.1.301
Commit:    7feb845744
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.18362
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\3.1.301\
Host (useful for support):
Version: 3.1.5
Commit:  65cd789777
.NET Core SDKs installed:
1.1.13 [C:\Program Files\dotnet\sdk]
1.1.14 [C:\Program Files\dotnet\sdk]
2.0.0 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.402 [C:\Program Files\dotnet\sdk]
2.1.505 [C:\Program Files\dotnet\sdk]
2.1.512 [C:\Program Files\dotnet\sdk]
2.2.110 [C:\Program Files\dotnet\sdk]
3.1.201 [C:\Program Files\dotnet\sdk]
3.1.301 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Hi @dspeidel, it's possible there is a bug around the IProgress, we had an issue with IProgress resetting on parallel and multi-part uploads for Blobs previously.
Are your larger uploads successfully completing?

Hi @seanmcc-msft, thanks for replying.
I just tried a couple uploads.  Nothing successful.  Here's my logging from one attempt.  Strangely, this one claims 100% within a second, then waits 90 seconds and tries again, going directly to 100%.  It does this 6 times.   (The operation was canceled.) (The operation was canceled.) (The operation was canceled.) (The operation was canceled.) (The operation was canceled.) (The operation was canceled.)```

Ya, it looks like the uploads are timing out.  @jaschrep-msft, could we look into adding ShareFileClient.Upload() overloads with StorageTransferOptions, so customers can specify MaximumTransferSize and MaximumConcurrency?

If I understand correctly, another workaround would be increasing the HTTP client's default timeout (which is 100 seconds): https://github.com/Azure/azure-sdk-for-net/issues/9212#issuecomment-575310337

Please re-open if you have further questions.

Ya, it looks like the uploads are timing out. @jaschrep-msft, could we look into adding ShareFileClient.Upload() overloads with StorageTransferOptions, so customers can specify MaximumTransferSize and MaximumConcurrency?

@seankane-msft wasn't this the reason the ticket remained open?

Oh sorry didn't see that part.

We will look into resolving this issue after the new year.

Currently working on this, we're hashing out Downloads right now and upload will come next.


"Key" mistranslated

Microsoft PowerToys version
0.47.1
Utility with translation issue
Keyboard Manager
🌐 Language affected
Chinese Simplified
❌ Actual phrase(s)
密钥

It is in line 2153 of file src/settings-ui/Microsoft.PowerToys.Settings.UI/loc/zh-Hans/src/settings-ui/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw.lcl.
✔ Expected phrase(s)
键
ℹ Why is the current translation wrong
"密钥" means "a word or system for solving a cipher or code", while "键" means "one of several buttons on a panel for operating a typewriter, word processor, or computer terminal", consistent with the translation in line 2189 (src/settings-ui/Microsoft.PowerToys.Settings.UI/loc/zh-Hans/src/settings-ui/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw.lcl).

The New Oxford English-Chinese Dictionary (Second Edition), Shanghai: Shanghai Foreign Language Education Press, 2013.

Tracked via https://github.com/microsoft/PowerToys/issues/9248


Remove mentions of Storage from Readme

I don't think this change is necessary post-GA, since the storage could isn't going to come back shortly, and such a change will make reverting difficult because it might introduce a merge conflict.


Build error on aarch64

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): linux ubuntu 18.04
Python version: 3.6
Installed using virtualenv? pip? conda?: pip
Bazel version (if compiling from source): 0.26.1
GCC/Compiler version (if compiling from source): 7.5
CUDA/cuDNN version: None
GPU model and memory: None

Describe the problem
Build from source failed on arm64 server when run command:
bazel build -c opt --config=opt //tensorflow/tools/pip_package:build_pip_package

I just use cpu version and build it successfully on x86 machine, so it should be related to the platform.
I find no arm image either, do you have any plan to support for arm.

good catch, we'll followup the issue as soon as possible. Of course, we'll provide arm image as well.


prediction: blanks [[],[],[],[]]

Hi.
Trying to use it on:
ipython notebook (anaconda) python 2.7
linux
simple example not working not sure what i am doing wrong.
txt file:
__label__WithNumbers J2VIEW5BJU
__label__NoNumbers AXUCXWNPCV
__label__NoNumbers DDUVWVPCJW
__label__WithNumbers 99W5K7EO91
__label__NoNumbers YPEVGZGEPW
__label__WithNumbers 4Z3KVHIW1P
....

classifier = fasttext.supervised(
                input_file='file.txt',
                output='model',
                word_ngrams=2
           )

[in]: classifier.predict('KFAOEKFEAIJFAE')
[out]: [[], [], [], [], [], [], [], [], [], [], [], [], [], []]

any ideas whats going on or how to fix it? thx

Hi @eloiup,
Your simple example only contains a one-word only. By default, a supervised model in the fasttext expect the following:

ws=5 the context window should be at least 5. Your training text is doesn't have any context at all, only one word.
min_count=5 this is a minimal number of word occurences. your dataset is unique, each word appear only once.

The information available here: https://github.com/salestock/fastText.py#skipgram-model
I hope it helps


Various feedback on SDK JS V2 documentation

Hello,
I list some errors on documentation v2, could you please reply in this thread when you fixed with the value fixed for each ticket. I need it for https://github.com/kuzzleio/sdk-javascript/pull/319.
I want also tell that returns type are not consistent, sometimes we have some fields, sometimes not. This is also highly coupled with Elastic Search, which will need a lot of refactor once you'll release another database driver.
You can use checkmark for each ticket progression.
Regards
Issues

[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/index/delete/ return type incoherent with sample
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/index/refresh/ failed or fail ?
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/auth/get-my-rights/ Little graphical bug on An `array<object containing: and Rights (`allowed
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/auth/login/ Error on type for credentials params. Also login (strategy, credentials, expiresIn) should be login (strategy, [credentials], [expiresIn]) because seems optional ?
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/auth/validate-my-credentials/ credentials param type and also [ ] if optional ?
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/ms link broken
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/collection/create/ create (index, collection, mapping = null, [options]) mapping should be [mapping = null]
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/collection/get-specifications/ Doc format broken + example of specification ?
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/collection/search-specifications/ link to https://docs-v2.kuzzle.io/sdk-reference/js/6/essentials/search-result is broken.
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/collection/search-specifications/ scroll type must be string not number ("2d", "3w")
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/collection/update-specifications/ doc broken - https://docs-v2.kuzzle.io/validation-reference/schema BROKEN LINK
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/create/ Semantic error, id is optional but not in [ ] and optional param is before required param, which is a semantic error.
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/createOrReplace/ same semantic error with id.
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/delete/ « Optional document id » no thats not true.
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/deleteByQuery/ Query is optional in a deleteByQuery ?
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/mDelete/ incomplete resolve function with types.
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/mGet/ Is it always resolving with an object with key hits containing array of docs and total ? (not written in resolve paragraph but only in example.
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/mUpdate/ Error while copy pasting method name.
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/replace/ No CSS on that page, also here return type give result key but create and createOrReplace return _source
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/search/ SearchResultObject not defined.
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/realtime/unsubscribe/ No resolve arguments doc.
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/server/now/ Timestamp returned is string or number ?
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/essentials/ Doc missing

[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/index/delete/ return type incoherent with sample No return
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/index/refresh/ failed or fail ? failed
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/auth/get-my-rights/ Little graphical bug on An `array<object containing: and Rights (`allowed done
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/auth/login/ Error on type for credentials params. Also login (strategy, credentials, expiresIn) should be login (strategy, [credentials], [expiresIn]) because seems optional ? optional
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/auth/validate-my-credentials/ credentials param type and also [ ] if optional ? optional
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/ms link broken done
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/collection/create/ create (index, collection, mapping = null, [options]) mapping should be [mapping = null] done
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/collection/get-specifications/ Doc format broken + example of specification ? done
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/collection/search-specifications/ link to https://docs-v2.kuzzle.io/sdk-reference/js/6/essentials/search-result is broken. done
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/collection/search-specifications/ scroll type must be string not number ("2d", "3w") done
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/collection/update-specifications/ doc broken - https://docs-v2.kuzzle.io/validation-reference/schema BROKEN LINK done
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/create/ Semantic error, id is optional but not in [ ] and optional param is before required param, which is a semantic error. id and option are last params
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/createOrReplace/ same semantic error with id. id is not optional
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/delete/ « Optional document id » no thats not true. done
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/deleteByQuery/ Query is optional in a deleteByQuery ? yes, no query match all documents
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/mDelete/ incomplete resolve function with types. resolve to an object, see doc
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/mGet/ Is it always resolving with an object with key hits containing array of docs and total ? (not written in resolve paragraph but only in example. doc updated
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/mUpdate/ Error while copy pasting method name. done
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/replace/ No CSS on that page, also here return type give result key but create and createOrReplace return _source have _source property who contain the document
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/document/search/ SearchResultObject not defined. link fixed
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/realtime/unsubscribe/ No resolve arguments doc. resolve if success
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/server/now/ Timestamp returned is string or number ? number
[x] https://docs-v2.kuzzle.io/sdk-reference/js/6/essentials/ Doc missing deleted


Fix(eos_designs): Trailing zeroes removed from asdot notation ASNs

Change Summary
Fixes issue #1160 where 4-byte ASNs in asdot notation gets treated as float and trailing zeroes are removed. Wraps ASNs in "" during templating to force string type.
Related Issue(s)
Fixes #1160
Component(s) name
arista.avd.eos_designs
Proposed changes
No data model changes.
How to test
Ran in lab environment to make sure ASNs of any notation are rendered correctly.
Repository Checklist

[x] My code has been rebased from devel before I start
[x] I have read the CONTRIBUTING document.
[x] My change requires a change to the documentation and documentation have been updated accordingly.
[x] I have updated molecule CI testing accordingly. (check the box if not applicable)

A few adjustments/comments.
Have you verified that the templates under tenants are not vulnerable to this issue?
Ex. router-bgp-vrfs.j2 it prints out the content of user input directly, so we have no real control.

It's fine as long as you put tenant bgp remote_as in quotes. If you don't it doesn't matter what we do, it's the same problem as if someone would put ASN 65000.100 on a l3leaf/spine in the fabric settings without quotes, yaml will interpret as float and remove trailing zeroes before any templating even takes place. If using 4-byte ASNs in asdot notation we should always put them in quotes in the vars.

Only one more request, please change AS numbers on one of the molecule scenarios (ex. take a POD in the 5-stage) and change that to use dot-notation with trailing zeroes. So we see the issue we are trying to solve.

Changed DC1-POD1 to use 4-byte ASN in asdot notation, with trailing zeroes.

@emilarista PR looks good - please also add a unit test for asdot notation ASN in eos_design_unit_tests.

As per discussion with Claus, I ended up changing DC1_POD1 in twodc-5stage-clos instead.


Discuss NEWS update process

How do we keep the NEWS.rst updated throughout a development cycle without creating merge conflicts for every PR? Ideally, it also contains a simple process to keep the NEWS file up to date for stable backports.
@cilium/team: Please provide your thoughts

Not every change should make it into NEWS. The NEWS is currently too detailed IMHO. We should reduce the rate of changes, which should reduce the rate of merge conflicts. Cf. how this file is defined in the [GNU Coding Standards|https://www.gnu.org/prep/standards/html_node/NEWS-File.html#NEWS-File]:

[...] the package should have a file named NEWS which contains a list of user-visible changes worth mentioning. [...]

I suggest that we start by deciding criteria for what makes a change worth mentioning, and enforcing that code reviews.

I would suggest we should have a label need news update that could be added to issues and/or PRs. Once they are closed, we could look up all closed issues with this label for a given release milestone for the NEWS update that the one doing the release could write up? It would help identifying all relevant issues/PRs that have been solved during that period and dealing with merge conflicts. Wdyt?

GNU projects require that the NEWS be updated in the same patch series as any significant user-visible change. So a branch could be released at any time without any extra work. NEWS is always up-to-date. I would prefer to follow that approach too.

I would suggest we should have a label need news update that could be added to issues and/or PRs. Once they are closed, we could look up all closed issues with this label for a given release milestone for the NEWS update that the one doing the release could write up? It would help identifying all relevant issues/PRs that have been solved during that period and dealing with merge conflicts. Wdyt?

It takes hours to write the NEWS file because the context has to be looked up every time. I want to find a way to write the NEWS blob at PR time.

GNU projects require that the NEWS be updated in the same patch series as any significant user-visible change. So a branch could be released at any time without any extra work. NEWS is always up-to-date. I would prefer to follow that approach too.

We have tried this approach and it resulted in massive merge challenges because of the conflicts. I agree that the NEWS update must be bundled with the PR somehow but we need to find a way to not touch a single file.
I see two options:

Add a special marker in the commit message which indicates that this now contains a NEWS update, e.g.
Release-note: (Kubernetes)
This is the release note description

add .news-<#pr> files which get accumulated automatically by a release script.

Another option could be to use the GH pull request message with a Release-note: and tag the PR with release note label. Meaning, the one that opens the PR is still required to write the related release note for it. For single commits, GH automatically pulls in the actual commit message and for sets one is required to write a summary right now, but we could set the workflow that once such label is set by the one who opens the PR, he also has to place the message there for both cases that goes later into NEWS file.
From the two options mentioned earlier, my personal preference would probably be to have it in the commit log itself then, although it may duplicate information a bit but wouldn't add churn to the source tree itself.

If we used a Release-note: label in commit messages, how would we deal with commits that are reverted? They would still remain in the git history with their Release-notes: labels in the commit message. How do we deal with commits that are backported? How will the NEWS file get updated on all branches where the commit is committed / backported?

I vote for a directory that contains the news-<#pr> files for significant PRs. These files are created by the PR author and on each release those files are merged and cleaned up.

@rlenglet Process with backports is essentially the same when cherry-picking from master, but agree on the reverts, this needs additional indication somewhere which is kind of annoying as it would require to go through the log to verify there are no reverts for such tagged commits. Not sure either of the two options are too optimal.
I'd go for earlier mentioned GH pull request message to add a proper high-level description as part of the workflow, so this would be needed for all PRs, also those that don't go into release notes. And the ones that should be part it would get a release note label. This would allow for i) code reviewers from that area to quickly get a high level description of what the PR is doing, ii) easy filtering of PRs based on milestone and labels from UI, iii) integrating that workflow in general in GH and also that could be scripted potentially as there's a GH REST API to fetch PRs.

I vote for a directory that contains the news-<#pr> files for significant PRs. These files are created by the PR author and on each release those files are merged and cleaned up.

+1. I like this because it resolves the merge conflict issue. We can have a folder for each each version, e.g. news/0.11, news/0.12 etc. and generate the NEWS file based on the VERSION at the root of the repo.

+1 for separate new directory.

+1. I like this because it resolves the merge conflict issue. We can have a folder for each each version, e.g. news/0.11, news/0.12 etc. and generate the NEWS file based on the VERSION at the root of the repo.

OK, I'm fine with news files. It also has the benefit that we can have inline comments to review NEWS changes.
I don't think we need separate directories necessarily, we can have a release script which:

collects news files and prepares the NEWS file
schedules all individual news snippet files for removal
Bumps the VERSION file
Leaves everything in scheduled so whoever prepares only has to review and then commit & push.

I've talked with @borkmann. We will still have one problem, after merging all news files, how do we split them by area (k8s / CLI / daemon / bug-fixes)?

I've talked with @borkmann. We will still have one problem, after merging all news files, how do we split them by area (k8s / CLI / daemon / bug-fixes)?

I propose something simple such as first line of the file representing the category. That said, fixing up the categories is something that can be done very easily when preparing the release. This only takes minutes. It's just copy paste in an editor and amend the commit.

FYI, this is own k8s does it: https://github.com/kubernetes/community/blob/master/contributors/devel/pull-requests.md#write-release-notes-if-needed

Their script to crawl GH PRs and generate release notes is here as well: https://github.com/kubernetes/release/blob/master/relnotes

Their script to crawl GH PRs and generate release notes is here as well: https://github.com/kubernetes/release/blob/master/relnotes

I'm sold on using this as-is. Any objections?

I'm sold on using this as-is. Any objections?

I'm all for this; no sense in reinventing the wheel.

LGTM.


(maint) Update version determination

With the move to the new ezbake packaging, we've fixed a long-standing
bug where we had packages with the same name but different content as we
didn't include the codename in the release field. This however breaks
the method of puppetdb installations, so update the version
determination.

Test FAILed

Test PASSed

Test PASSed

Test PASSed

Test PASSed

Testing and passing with the experimental pipeline here  deployed based on this pull request.
Unfortunately with this one we're in a chicken and egg situation that I don't see any easy way around: merging the ci change will break all tests on deb/ubuntu until this change goes in, and merging this without the ci change will also break all tests on deb/ubuntu. Best bet is probably just pick a time a merge them all at once, does that sound reasonable @mullr ?
Also, guessing this fix needs to go into 4.2.3.x and 4.4.x, and then master will get a merge from 5.1.x?

CLA signed by all contributors.

Test PASSed


[BEAM-1422] ParDo should comply with PTransform style guide

Backward-incompatible changes:

Removes ParDo.Unbound and UnboundMulti (as a result, the only entry point is ParDo.of(DoFn) - you can no longer specify ParDo.withSideInputs(...).of(fn) and such)
Renames ParDo.Bound to ParDo.SingleOutput and ParDo.BoundMulti to ParDo.MultiOutput

R: @kennknowles
CC: @davorbonaci @dhalperi

This is unfortunately going to conflict heavily with #2145.

I'm aware of that PR and I think the conflicts won't be that bad. I'm fine submitting mine later and dealing with the conflicts - still worth a review for whether the proposed changes make sense.

From the high level description, it makes sense. I would consider inlining ParDo.MultiOutput to ParDo (no need for it to just be a namespace) since it is the true primitive but that's really a matter of style. I think the SDK tends not to do that.

Coverage decreased (-0.009%) to 69.886% when pulling 01951a9d6333dc32d8d78720f82ec606c6f3a127 on jkff:pardo-style into<PHONE_NUMBER>bda5aaf34a7c176e11c2441d0a7346 on apache:master.

Very strange, these tests pass locally for me.

retest this please

Coverage decreased (-0.002%) to 69.892% when pulling 01951a9d6333dc32d8d78720f82ec606c6f3a127 on jkff:pardo-style into<PHONE_NUMBER>bda5aaf34a7c176e11c2441d0a7346 on apache:master.

Coverage decreased (-0.008%) to 70.09% when pulling a862a0960f2f50d68482d55b0f7d908f9bb50cbe on jkff:pardo-style into 3fde7b2a2e1e3b65c73ee62765a1215649844847 on apache:master.

Unfortunately, the ParDo change that you've likely rebased on had to be reverted. If you can be patient, it will likely be rolled forwards identically but with an added override in the Dataflow runner to restore the prior behavior just for Dataflow.

I believe this has now been rolled forwards and you should proceed with the PR

Run Dataflow RunnableOnService

Run Dataflow RunnableOnService

Changes Unknown when pulling 92cf360035429e54dd35742727f68258ebaf5f16 on jkff:pardo-style into ** on apache:master**.

Coverage decreased (-0.0009%) to 70.104% when pulling 2f1ad51315718398f8422140ad931cbea764e739 on jkff:pardo-style into 14aba812526af7981dfeb43b24cabae78301f128 on apache:master.

I sure hope this is flaky. Let's give it a shot:

Run Dataflow RunnableOnService

Run Dataflow RunnableOnService

Coverage decreased (-0.0008%) to 70.129% when pulling 7947734c6157a16298d2e1f84937685cfb3afd71 on jkff:pardo-style into ced1e5c3a1ee1e90ffe5843f7b4e8daf2cb3d46e on apache:master.

The failing test was already broken, and recently fixed. I'm not sure if you caught the worker container image update that would fix it, but it doesn't block this PR either way.

Yeah, that's why I rebased - I expect it to succeed this time (and it succeeded when I ran it against a local instance of Dataflow). In that case, PTAL :)

R: @tgroh because Kenn says he has too many reviews in the backlog right now.

Also R: -@kennknowles


Add Xcsync docs

Internal previews

📄 File
🔗 Preview link

docs/macios/xcsync.md
Xcode Sync (Xcsync)

Associated WorkItem - 294103

If this content applies to macOS, as well as iOS, it should move to the macios folder and then added in the TOC for both iOS + Mac Catalyst.

@davidbritch regarding the build failures:

I've specified the aliases like you suggested..is there a way to specify multiple authors or does the PR pick up all the contributors automatically?
I see there are other posts with urls included in them..is it fine to leave as is? or the bigger question at hand is the tfm reference link necessary here to begin with?

@haritha-mohan

I've specified the aliases like you suggested..is there a way to specify multiple authors or does the PR pick up all the contributors automatically?

You can only have a single author/ms.author. Anyone else is a reviewer. Anyone who PRs the content in future will automatically be added as a contributor.

I see there are other posts with urls included in them..is it fine to leave as is? or the bigger question at hand is the tfm reference link necessary here to begin with?

You should always replace absolute links to learn.microsoft.com with relative links. It means that https://learn.microsoft.com/dotnet/standard/frameworks will become /dotnet/standard/frameworks.

Is this feature also in the .NET MAUI extension for VS Code? If so it would be great to document that as well.

Is this feature also in the .NET MAUI extension for VS Code? If so it would be great to document that as well.

Not yet, but we have plans to integrate the tool into the extension in the future.


OpenCL Updates - Version Control

OpenCL Version Definition
On TOT the OpenCL backend defines the OpenCL Version as 2.2 when ROCm is detected. As shown below
if(EXISTS "${ROCM_PATH}/opencl/lib/libOpenCL.so")
        if(NOT "${OPENCL_LIBRARIES}" STREQUAL "${ROCM_PATH}/opencl/lib/libOpenCL.so")
            message("-- ${Magenta}ROCm OpenCL Found - Force OpenCL_LIBRARIES & OpenCL_INCLUDE_DIRS to use ROCm OpenCL${ColourReset}")
            set(OpenCL_LIBRARIES ${ROCM_PATH}/opencl/lib/libOpenCL.so CACHE INTERNAL "")
            set(OpenCL_INCLUDE_DIRS ${ROCM_PATH}/opencl/include CACHE INTERNAL "")
        endif()
        set(CL_TARGET_OPENCL_VERSION 220 CACHE INTERNAL "")
        add_definitions(-DCL_TARGET_OPENCL_VERSION=${CL_TARGET_OPENCL_VERSION})
        message("-- ${Magenta}ROCm OpenCL Found - Setting CL_TARGET_OPENCL_VERSION=${CL_TARGET_OPENCL_VERSION}${ColourReset}")
endif()

As the Khronos OpenCL guidelines suggest - an application may #define the preprocessor value CL_TARGET_OPENCL_VERSION before including the OpenCL API headers.  - https://github.com/KhronosGroup/OpenCL-Headers#compiling-for-a-specific-opencl-version
#define CL_TARGET_OPENCL_VERSION 120
#include <CL/opencl.h>

Should we adopt this and define it in the header files as we don't have a fallback working with 1.2?
Also, we define the version as below
AGO_OPENCL_BUILD_OPTIONS - override build options with environment variable [-cl-std=CL1.2 : -cl-std=CL2.0]

Closing this issue as per @asalmanp


Azure Bot Service: Bot offline and not replying on SKYPE. However working smoothly in WebChat (Azure) and cortana.

Bot Info

Bot handle: eucbot
App ID: 61b6c1e9-e438-443d-b307-aed48b1f27a8
SDK Platform: node.js
SDK Version: ^3.11.0
Active Channels: Skype(Not Working), Cotrana , Webchat
Deployment Environment: Azure bot Service

Issue Description
Bot is deployed on skpe channel. When I add it to contact....it show offline and does  not reply.
The bot is replying in Cortana and Azure WebChat
Code Example
github = https://github.com/tariksetia/chatops.git
Reproduction Steps

Create a Bot Service in Azure.
Under the build section click open online code editor
When the code editor is open...delete app.js, package.json and .gitignore
open console or Kudu Console (wwwroot) (if editor console do not work, open kudu console)
Type git init
Type git remote add origin  https://github.com/tariksetia/chatops.git
Type git pull origin master
npm install
replace line number 19 in app.js with following

var connector = new builder.ChatConnector({
    appId: 'your app id',
    appPassword: 'your app password'
});

Click run on console.
on Azure Portal, in bot service, choose channels.
Skype will be running by default . Click on skpye channel

Now you should see "Add Bot to Skype" page... follow instructions there.
type Hi! in skype bot conversation

Expected Behavior
It should say : Hi! Whats your name?
Actual Results
In Skpye Windows (Broken)

In Skype -Mobile (Broke but messaging is disabled)

In WebChat/Azure (working)

Cortana (Working)

This seems similar to https://github.com/Microsoft/BotBuilder/issues/3557

I also created a new bot service with vanilla Luis intelligence bot, put my Microsoft credentials in code using online code editor, added bot to Skype....But it also didn't work.... facing same behavior on skype

This got fixed
Download [https://go.skype.com/skype.preview.download].
Install it. If you are using windows 10, set compatibility mode to Windows 8.
In the left side bar, you will see your bot. Right click the bot and add to contact. This "add to contact" was not available is my default Windows 10 Skype.


[Devportal] Improvement to comments UI

If we put a very long comment we have to scroll the UI to the end to see the comment and the comment cart also is extended as an empty white space.

Can we improve this so that the comment displayed will break into several lines?  and can be viewed without scrolling

Fixed with https://github.com/wso2/carbon-apimgt/pull/8019


Office Hours Name Disambiguation

As a professor, I am also using CSXL alongside the TA's and ULA's.  However, I request that the students start with a TA for homework help so that I can focus on professor related questions.
In the CSXL system, it only shows as "Office Hours" and students can't tell which is mine and which are the TA's (which happen simultaneously).  It would be great if you could customize a title field that could disambiguate the different concurrent office hours.

@jadekeegan I believe this could be incorporated into the push for recurring events #597 since we'll need a schema migration and this is a simple field added to events. @ajaygandecha thoughts?

@KrisJordan @jadekeegan Agree! This maybe can either be a Boolean field, or an enum dropdown. We can also add this to the event type by separating office hours to something like (Instructor OH | TA OH). Thoughts here?


Fix 765 input phone dependency

Fix https://github.com/primefaces-extensions/primefaces-extensions.github.com/issues/765

Then we need to update the documentation as well. As people might already be using this input, that would be a breaking change.

Yep i will update the wiki.

Docs updated: https://github.com/primefaces-extensions/primefaces-extensions.github.com/wiki/Getting-Started


I am getting error - Nswag.CodeGenerator does not have strong name.

I am getting this error. When I tried to download code and get this signed, it started complaining about NJsonSchema.CodeGenerator is not signed and so no. I don't want to keep on signing all the assemblies.
What do you think would be better way to get around this?

You want to sign NSwag.CodeGenerator?

I want a version of NSwag.CodeGenerator that has strong name. I see there is a key when I downloaded the code. I was using that same to get this one strong name as well. NSwag.Core is having strong name.

Its not possible, because the project depends from Antlr4.StringTemplate and it does not have a strong name... In the future, I have to switch to another template engine library but I couldn't find one that fits my needs yet (PCL, strong name, good syntax, etc...) Signing NJsonSchema.CodeGenerator is also not possible because it uses the same template engine... As soon as the template engine is replaced, everything can be signed...

:( ok. I was trying to use NSwag to generate POCO classes for our webAPIs ... but all our assemblies are strong named. I might have to wait or use another alternative. Do you know of any?

Thanks for you reply.

Can't you use the command line tools and pass your Web API dlls to it?

Or how do you want to use NSwag in your environment?


^#^FREE-}}> Free Cash App Money The Simple Trick & Win #2024🚚 Earn $121 Per Offer! Freecash Fast

"There is no legitimate offer of '$2,000 free money' from Cash App. Beware of scams; always verify offers through official Cash App channels before engaging."
Understanding the Concept of 'Free Money' on Cash App
Exploring Legitimate Cash App Promotions
Cash App is known for running promotions that can put extra cash in your pocket! You might find special offers where they give you money just for using the app.
🔴💎👉👉CLICK HERE TO GET FREE NOW
🔴💎👉👉 CLICK HERE TO GET FREE NOW
For example, they sometimes have deals where you get a few bucks back for making a certain number of purchases. It's like a thank you from Cash App for being a loyal user.
These promotions are completely legit and are a way for Cash App to keep their customers happy and coming back for more. Always keep an eye on the official Cash App notifications to catch these cool offers.
Recognizing Cash App Giveaways and Sweepstakes
Every so often, Cash App will have giveaways and sweepstakes. They’re super fun and real! You might see them on social media or in the app. These giveaways can range from small amounts to big bucks.
To enter, you often just need to follow simple instructions, like retweeting a post or entering a drawing in the app. Remember, these are like games of chance, so not everyone wins, but when they do, it's a happy day! Always make sure you’re entering the official Cash App sweepstakes for a chance to get some free money.
The Role of Referral Bonuses in Earning Free Cash
Do you have friends who don't use Cash App yet? Well, you can earn money by inviting them! Cash App has a referral program that rewards you with cash for every friend who signs up and sends their first payment using your referral code.
It’s like telling your buddy about a cool new hangout spot, and the spot gives you a free soda as a thank you. Just share your unique code, and once your friend follows the steps, you'll see some sweet money added to your account. It's easy and benefits everyone involved!
Cash App's Boost Program – Saving While Spending
Imagine getting discounts every time you shop. That’s what the Cash App Boost program is like! When you use your Cash Card, you can apply boosts to get instant discounts at places like coffee shops, restaurants, and other stores.
It’s not exactly ‘free money,’ but it feels like it because you save on things you were going to buy anyway. These boosts change all the time, so there’s always a new chance to save. Keep checking the app to see what new deals are available for you.
Security Measures to Consider with Cash App Offers
When you see offers for free money on Cash App, think safety first. Always double-check that the offer is directly from Cash App. Don’t click on strange links from emails or social media that don't come from official Cash App accounts.
These could be tricks to get your personal info. Cash App will never ask for your sign-in code or PIN outside the app. Protect your money by sticking to legitimate offers and always keeping your account details to yourself.
Common Scams Related to 'Free Money' Offers on Cash App
Phishing Attempts and Fraudulent Links
Watch out for sneaky scams where someone tries to trick you into giving away your info. These are called phishing attempts. You might get an email or a message with a link that looks like it’s from Cash App, but it’s really not.
If you click on it, they can steal your personal details and even take your money. Always be super careful and only click on links that you’re sure are from Cash App. It’s better to be safe than sorry!
Fake Cash App Customer Support Scams
If someone says they're from Cash App Customer Support and they need your sign-in code or PIN to help you, don’t believe them. Real Cash App support will never ask for this info.
Scammers pretend to be support to get into your account and steal your money. Always reach out to Cash App through the app or official channels if you need help. Keep your account safe and never share your secret codes with anyone.
What is Free Cash Flow Important?
The “free” in free cash flow means how much a business has in its coffers to spend. Considered a reliable measure of business performance, free cash flow provides a glimpse of how much cash your business really has to draw on. A healthy, positive free cash flow indicates the business has plenty of cash left over. On the other hand, when it’s negative, that means your enterprise isn’t producing enough cash to support the growth of the business.
The upshot: Positive free cash flow means you have sufficient money to invest back into the business for growth or to distribute to shareholders.


Improve naming of per-format rules sections

Is your feature request related to a problem? Please describe.
Most users of Redocly CLI list rules under rules but as we see more customers using multiple API formats in their projects, we need to document the per-format rules config entries so that different formats can be linted using different rulesets. The per-format rules config entries currently are:

oas2Rules
oas3_0Rules
oas3_1Rules
async2Rules
async3Rules
arazzoRules

(equivalents exist for *Preprocessors and *Decorators)
Proposal: rename these config settings to something that fits our config naming scheme
In an ideal world, we could offer something like this:
rules:
  openapi-30:
    security-defined: warn
  arazzo-10:
    parameters-unique: error

Describe alternatives you've considered
Just make the config entry names more sane and leave them at the top level:

oas2Rules -> rules-openapi-20
oas3_0Rules -> rules-openapi-30
oas3_1Rules -> rules-openapi-31
async2Rules -> rules-asyncapi-26
async3Rules -> rules-asyncapi-30
arazzoRules -> rules-arazzo-10

Additional context
From a discussion with @DmitryAnansky and @tatomyr about how to thoroughly support and document our multi-format linting features.

I vote for the top-level, but I don't like naming like openapi-30... Maybe openapi-3-0 will work better?

@adamaltman or @RomanHotsiy could you comment on the requested renaming?

It sounds good. I agree with @tatomyr though on the naming, I prefer openapi-3-0 or we can even do openapi-3.0. Both yaml and json support keys with dots.

@RomanHotsiy It looks much nicer with dots. The only issue is that I vaguely remember we had some problems with parsing features.openapi. Or am I wrong?

I think it would probably work, but it's confusing to use dots inside a yaml key IMO, just because there's a convention of using it as a separator. For example info.description , we use this pattern ourselves in Redoc rendering too. So I discarded the dot and thought that the extra dash wasn't needed with every version being one major digit and one minor one. Happy to compromise on the two-dash format though!
Will we refactor this throughout the code, or as an alias for parsing the config in? We use this type of pattern in plugins too (as well as internally)

Will we refactor this throughout the code, or as an alias for parsing the config in?

For me, it doesn't make much sense to refactor it deeply, especially taking into account that we will have to use some artificial names for the variables anyway.

I classify this issue differently. I propose a different format which would rely on the verbose syntax of each rule:
rules:
  info-description:
    severity: error
    specs:
       - openapi3.0
       - asyncapi3.0

I think the current approach of listing which rules should apply to which format/family of APIs makes good sense, since different teams might manage the event-driven, legacy, or Arazzo types. We also design, maintain and document the rules on a per-specification/format basis, so configuring things along the same lines seems sensible.
The other major advantage of the existing approach is that it already works this way (when there are two ways to do things, the one that exists and is already tested and working does have some advantage points) and I think it works adequately. The only change proposed in this issue is to rename the existing top-level keys to something a bit more correct, friendly and future-proof.

This is not quite accurate:

We also design, maintain and document the rules on a per-specification/format basis, so configuring things along the same lines seems sensible.

We have single rules that span specifications. Many rules span OpenAPI 3.1 and 3.0. Quite a few also include 2.0. Some span OpenAPI and AsyncAPI.


status bound constraint

thank you for provide this package,
does it  provide a  current  interface of set a status bound constraint like goal constraint and control constraint?

@bjack205

Control and state bounds are both supported, as well as general nonlinear constraints, as long as they are stage-wise.

Control and state bounds are both supported, as well as general nonlinear constraints, as long as they are stage-wise.

thank u for reply, I have finished state constraints  by using altro-cpp,
it seems that control bound and state bound won't work when bound trajectory infeasible,
now i'm working to add the rate of control bound into my project , like jerk in a unicycle model(state：x,y,theta,v and control:front_wheel_angle, rear_wheel_acceleration),
can you show me some ideas?


Build failure with profiling enabled

In file included from /2TB/usr/src/github.com/1div0/vvdec/source/Lib/vvdec/../CommonLib/CommonDef.h:583,
from /2TB/usr/src/github.com/1div0/vvdec/source/Lib/DecoderLib/DecLibParser.h:45,
from /2TB/usr/src/github.com/1div0/vvdec/source/Lib/DecoderLib/DecLib.h:49,
from /2TB/usr/src/github.com/1div0/vvdec/source/Lib/DecoderLib/DecLibRecon.cpp:47:
/2TB/usr/src/github.com/1div0/vvdec/source/Lib/DecoderLib/DecLibRecon.cpp: In lambda function:
/2TB/usr/src/github.com/1div0/vvdec/source/Lib/DecoderLib/DecLibRecon.cpp:686:27: error: ‘picture’ was not declared in this scope; did you mean ‘Picture’?
686 |       __itt_frame_end_v3( picture->m_itt_decLibInst, nullptr );
|                           ^~~~~~~
/2TB/usr/src/github.com/intel/ittapi/include/ittnotify.h:247:39: note: in definition of macro ‘ITTNOTIFY_VOID_D1’
247 | #define ITTNOTIFY_VOID_D1(n,d,x)     (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) ? (void)0 : ITTNOTIFY_NAME(n)(d,x)
|                                       ^
/2TB/usr/src/github.com/1div0/vvdec/source/Lib/DecoderLib/DecLibRecon.cpp:686:7: note: in expansion of macro ‘__itt_frame_end_v3’
686 |       itt_frame_end_v3( picture->m_itt_decLibInst, nullptr );
|       ^~~~~~~~~~~~~~~~~~
make[2]: *** [source/Lib/vvdec/CMakeFiles/vvdec.dir/build.make:636: source/Lib/vvdec/CMakeFiles/vvdec.dir//DecoderLib/DecLibRecon.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:198: source/Lib/vvdec/CMakeFiles/vvdec.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Attached CMake cache file for reference.
CMakeCache.txt

Oh thanks. I'll fix it.


Support  APNs Auth Key in pem. (reopen)

reopen https://github.com/fastlane/fastlane/issues/7848
Some of third party services like Firebase and https://support.clevertap.com/  recommends use auth key, not certificates.
Maybe it's time to add it to fastlane?
thanks!

+1

Thanks for this feature request for pem.
You could help us - or any other contributor that wants to work on this - by providing all necessary documentation to understand what exactly it is you want to have implemented. If you also already have an idea how it could be implemented in fastlane (as in how one would use it, the API of the actions, parameters etc), please post this as well.
Each of these steps make it easier for someone to code it up and thereby increases the probability of implementation. Thanks you.

hello @janpio,
I thing @punksta want to have a simple fastlane pem (or sign) function to generate a APNs Auth Key as described here (between "Create a new Auth Key by clicking ..." and "Locate and copy your Team ID - ..."): https://developer.clevertap.com/docs/how-to-create-an-ios-apns-auth-key
Actually a function like this would be very useful, because the APNs Auth Key is used a lot now in different notification tools, like FCM. Then you would be able to use it automised like other fastlane tools and don't have to do this in the developer portal ;)

me too :D 👍

TBH, I had no idea what an APNS Auth key was 🙃 But this sounds like a thing that we should have. I will add this to my list of things to look into 💪
Sent with GitHawk

BTW I think the point of APNS auth keys is that they do not time out after a year. Which means this is something you do once (per development program!) and then almost never again. There is likely hardly a need to automate it and thus probably no need to support in fastlane. Then again i do not have a lot of experience with the apns keys so I might not be 100% accurate.

+1 this would be nice to have for people that make lots of different apps.


update pl 804xx rls notes

Add PL-40646 to FG release notes, remove from NG
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


dotnet xxx.dll --urls not work

Env: win2k8r2, VS2017, dotnet core 2.0

This is a known issue. See https://github.com/aspnet/KestrelHttpServer/issues/1998 for a workaround.

This issue is being closed because it has not been updated in 3 months.
We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.


Doctests for path deformation in 1d and 2d

I think this will be useful for any further development/bug fixing etc. The 1d tests are quite comprehensive.

This looks good, but I'm getting the following failure in pd_2d_test.py:
File "pd_2d_test.py", line 26, in __main__
Failed example:
    action_2d(0.1, [1.0202, 1.21683])
Differences (ndiff with -expected +actual):
    - 119.83...
    +<PHONE_NUMBER>5128852

I'm also getting a lot of failures in python 3, in both pd_1d_test.py and pd_2d_test.py, as well as a bunch of failures in pd_2d_test.py when I switch to the develop branch. Some of these are due to output differences in python 3 (exceptions get printed slightly differently) and some of it is just numerical uncertainty in the calculation, and the differences in libraries or the changes I made in the develop branch are enough to change the third or fourth sig fig in the actions.
I've switched the base of this PR to the develop branch. I want to sort out the issues above before merging it to master, and I'll probably use this as an opportunity to get a more structured test scaffolding set up using py.test or something. What's here looks good though, and I'll merge it once I've got some more time to work on testing.
Eventually, tests should also include comparisons to theory in the thin and thick-walled regimes. If you're so inclined to make these, it'd be great to have them.

Good ideas - these tests are quite primitive and could be much improved.

Eventually, tests should also include comparisons to theory in the thin and thick-walled regimes. If
you're so inclined to make these, it'd be great to have them.

Maybe, can't promise anything though!


Migrate documentation website to Fermyon Developer Home

ref https://github.com/fermyon/developer/pull/220
Signed-off-by: Radu Matei<EMAIL_ADDRESS>

This is ready to be dusted off and tested/merged now that the Bart docs are at https://developer.fermyon.com/bartholomew


IISIntegration functional tests are currently failing

We are now using ANCM as an internal dependency in IISIntegration. Tests seem to either be all passing or failing. I will disable for now and investigate issues this weekend/next week.

An update on this, we are only seeing failures for out of process tests. We can push this to preview2, however I would like to try fixing this asap.

Going to reenable Out of proc tests now.

Done pending the web.config generation issue.


Typedict key and value suggestion inside dict literal syntax.

The problem
I'm using python for configuration files. I want to use typeddicts to provide hinting for the keys and values as the user is writing configuration.
i.e. (Category is a typeddict, name and fiction are required, potato is optional)
from category import Category

categories : "list[Category]" = [
    {"name": "Fishing", "fiction" : False},
    {"name": "Music", "fiction" : True, "potato" : 5 }
]

Dataclasses/named tuples/classes are an alternative I could use, which would provide the desired code-completion hints, but then I need to depend on the actual implementations, and wrap everything in constructors.
from category import Category

categories : "list[Category]" = [
    Category(name="Fishing", fiction=False),
    Category(name="Music", fiction=True, potato = 5)
]

The solution I'd like:
Basically I'm looking for a way to do this with python dicts:
https://code.visualstudio.com/docs/languages/json
https://json-schema.org/
I could switch over to json config files and write up schemas but I want to use python. Because it works, it's just not a very friendly experience without the auto-completion.
Additional context
Pylance will give the red swiggly line if the typeddict doesn't match up with the proper syntax, but it doesn't say exactly which key(s) is wrong or missing. I'm not looking for the red swiggly line, I'm looking for autocompletion and a popup which reads the docstring.
It's not this issue as I've checked and this access to the dict is supported and works on my computer:
https://github.com/microsoft/pyright/issues/308
But I want it in the dict literal, not the accessor.
Your readme page mentions you have code completion support: https://github.com/microsoft/pylance-release , but it doesn't go into details on what exactly will and will not work. I thought the purpose of typeddicts were mainly to make autocompletion and hinting possible, and since it isn't I'm confused.
Maybe I'm misunderstanding what the purpose of typed dictionaries are, but it would help if you added more information somewhere on the page.
May be loosely related to: https://github.com/microsoft/pylance-release/issues/374
In that I think there would be similar code needed to be written to support both cases, just in reverse and mapped to the 'constructor' of the typeddict.

I'm a bit confused as to what you are looking for specifically; can you provide an example of where you are expecting completion in a code snippet and what you expect to appear, perhaps in a screenshot with what you get instead?
We should be giving completion anywhere we know there are members.

looks like he wants this to work (https://github.com/microsoft/pyright/blob/master/packages/pyright-internal/src/languageService/completionProvider.ts#L1096) in dict initializer construction on top of dict["..."] construct.

@jakebailey
@heejaechang
Exactly! dict["..."] will work as I mentioned, and that's great and all but it's not what I'm looking for. I want the {} to provide autocompletion:

You obviously can tell there is an issue with the dict init constructor, hence the red wavy lines, but as I'm adding fields to the instance you don't get any popups for members.
Ideally these popups would come with more information read from the docstring, to say what the configuration option does.

We also need this feature to allow for autocomplete support for XState in Python, where the API is a typed dict.
Is it possible to see a list of issues that are prioritized? It is my understanding that it depends on the number of upvotes but I can't seem to find how many upvotes are currently needed.

+1 This would be very helpful for prisma-client-py

@RobertCraigie Excellent! Thank you for pointing me to that.

Currently there are only autocomplete suggestions for a TypedDicts keys. Is it possible to also provide a hint what the type of the value should be ?
class Example(TypedDict):
    a: int

example: Example {'a': }
#                     ^cursor here: helpful suggestion would be something like 'a': int


Backlight control doesn't work on Arch

Built with qmake PREFIX=/usr CONFIG+=install_udev_rules CONFIG+=bundle_icons and installed through makepkg,
however Brightness bar is greyed out.
runtime deps are installed as instructed.

Never mind, had to add myself to video group.
usermod -aG video <user>


iOS 10 - crash in start method

I experienced random crashes in start method in iOS 10:
[runLoop run];
Are this library supporting iOS 10? Are you planning iOS 10 update?

Hi,
I wouldn't know the exact reason behind this but I would strongly consider using a different library for iOS 10 and beyond, as I am not maintaining this anymore. Maybe the Swift version would be a better fit, especially considering it uses the official iOS 7+ download APIs instead of manually implementing them.


Build SCSS -> CSS Pipeline

Right now you have to compile the scss to css, and that's annoying, so I should automate it!
https://bootswatch.com/4/cerulean/_bootswatch.scss
https://bootswatch.com/4/cerulean/_variables.scss
are examples of theming in bootstrap 4

Oh! And https://github.com/JudicialCouncilOfCalifornia/docassemble.jcc.ability-to-pay/blob/master/docassemble/jcc/ability-to-pay/data/static/style.css is what you would want to edit

@slowbot Here's a demo of custom CSS with an empty CSS file https://docassemble.chivuku.la/interview?i=docassemble.jcc.ability-to-pay%3Adata%2Fquestions%2Finterview.yml#page1
If you use the package installation page, you can add this to your local docassemble instance:

You can now edit https://github.com/JudicialCouncilOfCalifornia/docassemble.jcc.ability-to-pay/blob/master/source/style.scss and compile it from https://travis-ci.com/JudicialCouncilOfCalifornia/docassemble.jcc.ability-to-pay

Let me know if this works for you :-)


4 Errors found out of 15 Total Tests

4 Errors found out of 15 Total Tests
Steps to Reproduce the behavior
Steps should be reported as following example:

Wrote tests in UnitTesting File
Configured main.yml
Added Dependencies in pom.xml
See Test Errors when workflow runs

Expected Behavior
All tests should passed successfully in both local machine and GitHub Workflow.
Actual Behavior
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project devops: There are test failures.
Tests run: 15, Failures: 0, Errors: 4, Skipped: 0
Screenshots/Recordings
Detail error can be seen in 4c940a5 unit-testing.
Desktop

OS: Windows
Browser Chrome
Version/Commit: 4c940a5 unit-testing

Additional Information

The error occurs due to some methods not having Exception handling methods. Exceptions are added are not properly working as of now.

Errors occur when testing displayCapitalNull(), displayCapitalsTestContainsNull(), displaySummaryNull() and displaySummaryTestContainsNull(). The reason of error is NullPointer Error. Exception handling 'catch' statements written in display method of Capital and Summary Reports.


feature req: option to have each panel be 100% width of parent container

It would be great to have the option of setting the width of each panel to be the width of a container (e.g.: the parent of ul) . This would allow a single panel to always show completely filling said container.

If i understand right you mean an option that every li (slide) will fill the whole container?
Anyway good idea i'll add it.


feature(ui-ux): updated avatar

What kind of PR is this?:

/kind feature
What this PR does / why we need it:
Which issue(s) does this PR fixes?:

Fixes https://github.com/DeFiCh/wallet/issues/2316
Additional comments?:
Developer Checklist:

[ ] Read your code changes at least once
[ ] Tested on iOS/Android device (e.g, No crashes, library supported etc.)
[ ] No console errors on web
[ ] Tested on Light mode and Dark mode*
[ ] Your UI implementation visually matched the rendered design*
[ ] Unit tests*
[ ] Added e2e tests*
[ ] Added translations*

Works on iOS and mobile.
Minor issue on web, in the bottom sheet, it is not circular, but it is circular on the balance home screen


Possible memory leak in Keda-operator with Kafka scaler

Hi everyone,
I started to use keda with the kafka scaler, defined it pretty simple according to the example and after deploying it to production, I noticed that every 3 days the pod reaches the kubernetes limits and get OOM. The memory increasing constantly and I'm not really sure why.
This is the deployment description (I added few parameters such as limits, priorityClass and others):
Name:                   keda-operator
Namespace:              keda
CreationTimestamp:      Mon, 27 Apr 2020 12:56:42 +0300
Labels:                 app=keda-operator
                        app.kubernetes.io/component=operator
                        app.kubernetes.io/name=keda-operator
                        app.kubernetes.io/part-of=keda-operator
                        app.kubernetes.io/version=1.4.1
Annotations:            deployment.kubernetes.io/revision: 2
Selector:               app=keda-operator
Replicas:               1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
  Labels:           app=keda-operator
  Service Account:  keda-operator
  Containers:
   keda-operator:
    Image:      docker.io/kedacore/keda:1.4.1
    Port:       <none>
    Host Port:  <none>
    Command:
      keda
    Args:
      --zap-level=info
    Limits:
      cpu:     100m
      memory:  200Mi
    Requests:
      cpu:     100m
      memory:  200Mi
    Environment:
      WATCH_NAMESPACE:
      POD_NAME:          (v1:metadata.name)
      OPERATOR_NAME:    keda-operator
    Mounts:             <none>
  Volumes:              <none>
  Priority Class Name:  line-of-business-service
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Progressing    True    NewReplicaSetAvailable
  Available      True    MinimumReplicasAvailable
OldReplicaSets:  <none>
NewReplicaSet:   keda-operator-fd678455c (1/1 replicas created)
Events:          <none>

The Heap starts at around 30-40M and rinse till almost 200M, jumps to 240 and up and get OOM and restarted by the kubernetes daemon set.
Steps to Reproduce the Problem

create a scaledObject to read from a Kafka topic.
After hours of running the memory keeps increasing till it reached the pod limit

Specifications

KEDA Version: 1.4.1
Platform & Version: Kafka 2.3.0
Kubernetes Version: 1.15
Scaler(s): Kafka

@jeli8-cor thanks for submitting the issue. Are you willing to help a little bit with tracking donw the bug? Could you please ping me on slack and we can sync?

Sure, I would love to help with that. How can I find you in slack?

@jeli8-cor great, you can find me on kubernetes slack, #keda channel

Following a few tests and debugs with the dear friend @zroubalik here, I'm updating about the issue:
The issue exists in versions: 1.3.0, 1.4.0, 1.4.1 (these are the ones I checked).
The issue resolved in version V2 , still in alpha, but currently the pod runs over 3 hours now without even a minor jump in memory.
The scaler I used was Kafka and I tested it with increasing the lag, increasing the throughput, and "trigger" the scale up and down of the scaler.
According to my checks I test only Kafka scaler and prometheus scaler. Not sure 100%, but I think it's in prometheus scaler too.

@jeli8-cor thanks a lot for the testing!
We should speed up development (and release) of v2, in case we are not able to find the cause and proved a fix for this issue in v1.

Adding note that this should be included in changelog, so we don't forget.

also experienced the same memory leak issues using keda v1.4.1 with the redis list scaler, but I upgraded to v1.5.0 and looks like that resolved it

@zroubalik Yeah, we have 23 scaledobjects of which 17 use a kafka trigger and 6 a redis trigger

+1 to CPU and memory usage rising over time. 1000 SO exclusively using the Kafka scaler:

also experienced the same memory leak issues using keda v1.4.1 with the redis list scaler, but I upgraded to v1.5.0 and looks like that resolved it

Having only redis scalers and running on 2.0 I can confirm it is still existing for me.

Will try 2.1 and if it still is a thing create some own issue on that as is don't see a reference to redis directly in this one.

@lallinger-arbeit I think this was the same root cause as https://github.com/kedacore/keda/issues/1565 fixed in https://github.com/kedacore/keda/pull/1572


Add automatic tests

setup automatic tests, with pytest and tox.
also, I think GitHub-actions would be a good option for testing in different environments.

Yes, I'll do that as soon as possible

setup automatic tests, with pytest and tox.
also, I think GitHub-actions would be a good option for testing in different environments.

 ;-)


[GHSA-64wp-jh9p-5cg2] RSSHub SSRF vulnerability

Updates

Description
References

Comments
Added reference details.

Hi there @DIYgod! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.
This change will be reviewed by our highly-trained Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory


加了Netbeans 和 JDK 下载

加了网站去下载 Netbeans 和 JDK 一起

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@Nightey3s Thank you for your contribution.


Adding support for st2 login and st2 whoami commands

Overview
This PR introduces a new st2 login command to the StackStorm client. This command is similar to st2 auth, as it does generate a user token, but it also modifies ~/.st2/config and adds a token file to the ~/.st2/config directory. Further st2 commands will use the new username/token combination that was written to disk.
This is in response to https://github.com/StackStorm/st2/issues/3110, where a user asked if there was a more friendly way of specifying the current user (i.e. without explicitly modifying configuration files or setting environment variables). This command is simply an alternative to those options.
Initially, I considered adding a flag to st2 auth that caches the token in ~/.st2/token-<username> but realized that ~/st2/config would also need to be modified to specify the "current" user. This seemed like a bit too much functionality to have in a single "flag" off of st2 auth, so I decided a separate command was ideal, and more self-explanatory.
By default, this command will write only the username to the configuration, for security purposes (not needed if a token file is present). The user can use the -w option to override this default and write the password into the config file as well.

Note, an st2docs PR will follow this, to document the new command. I just wanted to make sure the approach was valid before I started updating docs.

Example
Here's the new command in action. Note that the configuration file is updated and only the relevant section ("credentials") is written to - the rest is preserved.
(virtualenv)vagrant@st2dev:~/st2$ ll ~/.st2
total 12
drwxrwxr-x 2 vagrant vagrant 4096 Dec 16 17:42 ./
drwxr-xr-x 9 vagrant vagrant 4096 Dec 16 17:42 ../
-rw-rw-r-- 1 vagrant vagrant   40 Dec 16 17:42 config
(virtualenv)vagrant@st2dev:~/st2$ cat ~/.st2/config
[extrasection]
foo1 = bar1
foo2 = bar2

(virtualenv)vagrant@st2dev:~/st2$ st2 login st2admin --password Password1!
Logged in as st2admin
(virtualenv)vagrant@st2dev:~/st2$ cat ~/.st2/config
[extrasection]
foo1 = bar1
foo2 = bar2

[credentials]
username = st2admin

(virtualenv)vagrant@st2dev:~/st2$ cat ~/.st2/token-st2admin
{"expire_timestamp":<PHONE_NUMBER>, "token": "a89b4a5fcc0542bcac48d3d9ef67c8c9"}(virtualenv)vagrant@st2dev:~/st2$

On the other hand, a failed login attempt will do nothing:
(virtualenv)vagrant@st2dev:~/st2$ ll ~/.st2/
total 12
drwxrwxr-x 2 vagrant vagrant 4096 Dec 16 17:45 ./
drwxr-xr-x 9 vagrant vagrant 4096 Dec 16 17:45 ../
-rw-rw-r-- 1 vagrant vagrant   40 Dec 16 17:45 config
(virtualenv)vagrant@st2dev:~/st2$ cat ~/.st2/config
[extrasection]
foo1 = bar1
foo2 = bar2

(virtualenv)vagrant@st2dev:~/st2$ st2 login st2admin --password wrongpassword
Failed to log in as st2admin
(virtualenv)vagrant@st2dev:~/st2$ ll ~/.st2/
total 12
drwxrwxr-x 2 vagrant vagrant 4096 Dec 16 17:45 ./
drwxr-xr-x 9 vagrant vagrant 4096 Dec 16 17:45 ../
-rw-rw-r-- 1 vagrant vagrant   40 Dec 16 17:45 config
(virtualenv)vagrant@st2dev:~/st2$ cat ~/.st2/config
[extrasection]
foo1 = bar1
foo2 = bar2

StackStorm documentation has been updated in https://github.com/StackStorm/st2docs/pull/380
UPDATE: Based on some of the review comments, I've added a few tasks for myself:

[x] Add st2 whoami command (thanks for idea @Kami)
[x] Address logging configuration brought up in https://github.com/StackStorm/st2/pull/3123#discussion_r93160449
[x] Update changelog
[x] It's been a while since I looked at this PR - after all the above has been done, need to go through a full end-to-end test and ensure that everything shown in the examples above still works, and also verify that it still handles minor issues like ~/.st2/ not existing, etc.
[x] Documentation tasks. Make sure the descriptions between login and auth commands are sufficiently distinct. Also at least open a st2docs PR and link here

Closes #3110

@bigmstone:

Also what do you do in the event that the ~/.st2 folder doesn't exist? I'm of the opinion this tool should create it.

The _cache_auth_token method already has lots of checks like this, and I am doing that first, so if that has an error, the rest of the code won't run; if it doesn't, everything should exist.
You think this still warrants more checks within this function, or is that sufficient?

Current coverage is 20.59% (diff: 0.00%)

Merging #3123 into master will decrease coverage by 56.70%

@@             master      #3123   diff @@
==========================================
  Files           430        430
  Lines         22153      22187      +34
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits          17123       4569   -12554
- Misses         5030      17618   +12588
  Partials          0          0

Diff Coverage
File Path

0%
st2client/st2client/shell.py

0%
st2client/st2client/commands/auth.py

Powered by Codecov. Last update 85229b5...67a18aa

@Mierdin Looked over _cache_auth_token. :+1:

@bigmstone wanna take another quick look? Lots of changes in https://github.com/StackStorm/st2/pull/3123/commits/eb3aedcd99a6a8593851e3adce5179af51020e47 so maybe you might want to take a peek again?

If ~/.st2 directory doesn't exist, will it be created by st2 login?
We create that dir via curl | bash script, but it's not single point of truth.
People can install StackStorm with configuration management or manually via apt-get/yum install.
For me, st2 login -w could be useful as a way to run it once after clean st2 installation to store the password. See example: https://github.com/StackStorm/chef-stackstorm/issues/41
Additionally, we could replace this bashery: https://github.com/StackStorm/st2-packages/blob/master/scripts/st2bootstrap-deb.sh#L219-L259 with new functionality provided in this PR.

@armab See https://github.com/StackStorm/st2/pull/3123#issuecomment-267532280 - the method that I'm calling to generate a new token does all kinds of useful checks to make sure the directory is created if it doesn't exist. I am making sure that call is done first, so I know what files/directories will be on the system at that point.

I'm going to need more clarification from the team here. I looked at the original request. Wouldn't writing/caching the token be sufficient to meet the requirement? How come we are also rewriting the client config and saving the client credential in the config file. That seems insecure and not obvious to the user that their credential will be written to disk.

@m4dcoder the reason I'm modifying the config is all about instructing other st2 commands which token file to use, via the username. Tokens are cached by username (i.e. ~/.st2/token-st2admin), and my understanding is that the client uses the username in the configuration to determine which token file to reference (helpful when there are multiple).
So, st2 login modifies the configuration by writing the username specified via args. By doing this, other st2 commands know which token file to read to get the token.
Note also by default it writes a dummy/fake password to the config file. Other st2 commands apparently require that this field is present in the config (I tested without), but the field is not used if the token file is found, so the password doesn't need to be correct.
The user request was all about being able to quick switch between users, and this accomplishes this in the most secure way I know how, and doesn't rely on being able to modify environment variables in the calling shell (which you can't do in Python anyways). The config file in this case just acts as a pointer to which token file to use at a given time.
Hope that helps clear things up

Can you figure out why the password is needed (even a fake password) in the config file? I prefer we fix this and don't write a fake password. It's just confusing code wise and users who is looking at the config will question that anyway.

I agree - will hunt that down next.

@m4dcoder It seems I was mistaken about the password field. I must have lost track of my steps during initial testing; I can perform queries without the password field in the config:
(virtualenv)vagrant@st2dev:~/st2/st2client$ cat ~/.st2/config
[extrasection]
foo1 = bar1
foo2 = bar2

[credentials]
username = st2admin

(virtualenv)vagrant@st2dev:~/st2/st2client$ cat ~/.st2/token-st2admin
{"expire_timestamp":<PHONE_NUMBER>, "token": "ee46b13293b345c4a9f7bcd955854b3e"}(virtualenv)vagrant@st2dev:~/st2/st2client$ st2 execution list
+----+------------+--------------+--------+-----------------+---------------+
| id | action.ref | context.user | status | start_timestamp | end_timestamp |
+----+------------+--------------+--------+-----------------+---------------+
+----+------------+--------------+--------+-----------------+---------------+

In the next few minutes I'll push another commit that removes the password functionality from this patch.

@armab @m4dcoder I have made the requested changes, can I get another review at your convenience? Thanks and have a great weekend!

On a related note (something I wanted to do myself already), It would also be nice to have st2 whoami or a similar command which prints the username of the user which is currently being used for API operations :)

@Kami Okay - introduced the st2 whoami command in 5f8771963, would love to hear your thoughts on the implementation

Overall, nice work and LGTM :+1:
Only "blocker" for me right now which needs some clarification is https://github.com/StackStorm/st2/pull/3123/files#r99538549
Besides that, LGTM.


Broken singularity container recipes

The recipes in the container/singularity folder appear to be broken.

Fixed in 45affcd12f761cc0d30412c9879b296e89b335c6


Blends multiple overlays

The colormap is now a 2D texture instead of 1D, and stores all the color lookup tables for all layers (background image and all overlays). One change that might need to be discussed is the use of gl.NEAREST which means that each layer only uses one of 256 colors, rather than using gl.LINEAR that would interpolate between colors.

@neurolabusc, Thanks for all these changes! looks amazing. I will merge this in tonight (Oxford time).


Ternary Conditional Operator values misplaced when using persian values

Dear support,
When I'm trying to have a Ternary Conditional Operator expression in my html of an angular app and if I have a persian string value for true and another persian string value for false, then values of true and false are reversely placed because of RTL in persian.
for example:
{{ isTrue ? "درست" : "غلط" }}
And this is misplaced here too.
If we want right view by eyes, that should display as:
{{ isTrue ? "غلط" : "درست" }}
That is only an eye view problem and conditions execution are OK.
But that's very bad, because I'm debugging and see conditions are reversed, so I will deside to fix conditions and then I will see my conditions are absolutelly right => waste of time!
Thank you very much for support

Verified:

console.log(true ? "درست" : "غلط");


sales forecasting end to end notebook and python script resources for…

… diagnostics and monitoring ingestion, including production prediction and feature influence computation

@joshreini1 take a look when you have a moment! Also cc @rohitrastogi @goyetc @avinashmaheshjoshi for reference scripts w discussed yesterday, to review

@goyetc why did you close this?

I moved the sales forecasting resources to the root directory of the repo,
per your recommendation.
Colin
--
TruEra | +1<PHONE_NUMBER>
On Wed, Oct 4, 2023 at 11:16 AM Josh Reini @.***> wrote:

@goyetc https://github.com/goyetc why did you close this?
—
Reply to this email directly, view it on GitHub
https://github.com/truera/truera-examples/pull/20#issuecomment-1747066460,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFLYBEFRREX57VITPJXMNM3X5V4WVAVCNFSM6AAAAAA5LRQMW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXGA3DMNBWGA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Update Wiki link text; add Wiki section

I decided to kickstart the wiki by adding SCPI command lists. This is approximately complete for Rigol AFAIK, based on this source.
Due to the depth limit on Github wikis (no sub-pages) and the volume of information (largely duplicate) I've reorganized the wiki by manufacturer and product series. I believe this is a more forward-looking structure.
This requires altering the link. I also added a new README section after Website.

@globalcitizen Good work with the wiki. Can I add you to our list of contributors? I usually add people by their github name and email but you don't have a public email.

Sure no problem. No need to include email.


Pass baseId to getSchemaRefs to fix local $ref resolution in a schema without an id.

What issue does this pull request resolve?
Fixes #1711
What changes did you make?
Pass baseId to getSchemaRefs so that $ref can resolve local references when the parent schema has no $id.
Is there anything that requires more attention while reviewing?
No, though running npm run test-spec results in 156 test failures without my changes, and doesn't seem to currently be wired up to npm test in any way.

thank you - in 8.6.3 - it was an annoying one, I'm surprised the fix was so simple ;)


Allow unsmoothed model in SurfaceCut

Adds checkbox to govern whether cutting surface is
smoothed (prior behavior) or unsmoothed (new behavior) and implements the associated
functionality of switching between them

This is my first pull request to a Slicer project.  I tried to follow the style and patterns already present in the code, but there's probably a higher-than-average chance I've done something that doesn't fit at least the preferred style.  Please edit or request changes as needed!

I think this addresses all the comments.  Let me know if you see anything else.  I did notice that the module occasionally generates the following warning as the model is updated:
Generic Warning: In D:\D\P\S-0-E-b\MarkupsToModel\MarkupsToModel\Logic\vtkSlicerMarkupsToModelClosedSurfaceGeneration.cxx, line 311 Extent ranges not provided in order largest to smallest. Unexpected results may occur.
However, upon further checking, the module sometimes generates this warning without any of the new changes, and it doesn't appear to be related to any of the new code.

Perfect, this works very well and nicely implemented. Thank you for your contribution!
I've squashed the commits and pushed here:
https://github.com/lassoan/SlicerSegmentEditorExtraEffects/commit/759d014efcb90bbfa18c7e091c97d039f8a06ae5


redirectTo option on signUp and signIn not working

Bug report
Describe the bug
I am developing on localhost of a NextJS app and cannot get redirects to work.
I have the redirects set up in the auth tab and am using the code as shown in the docs.
To Reproduce
Setup the redirect rules in the auth section of the project for http://localhost:3000/access.
Use the following code:
const { error: e } = await supabase.auth.signUp(
  { email, password },
  { redirectTo: 'http://localhost:3000/access' }
);

Expected behavior
Upon success the page should redirect to /access
Screenshots

System information

Version of supabase-js: [latest]
Version of Node.js: [e.g. 16]

I'm facing this issue too

Hi @monsonjeremy and @ekrresa,
This is because you have "Enable email confirmations" toggle off which means new signup emails are automatically confirmed. The redirectTo url is usually appended to the confirmation link being sent to the user's email. A possible workaround for this issue right will be to handle the redirection logic on the client side on a successful signup.

Additionally, http redirection for POST requests omit the response body returned. This means that the tokens & user info that's supposed to be returned will be removed by the redirection.
Hope this helps!

Hi @kangmingtay,
"Enable email confirmations" is enabled on my dashboard. What worked for me is passing the url to the redirectTo option while calling the signUp method from the supabase js client. Thanks though.

redirectTo is not respected for me. How were you able to accomplish this @ekrresa?

It does not appear as the redirectTo link that you put in the option after signing up.
Confirm Link
https://{url}.supabase.co/auth/v1/verify?token={token}&type=signup&redirect_to=http://localhost:3000/

Expected behavior
redirectTo link > http://hoho.hoho.com/
https://{url}.supabase.co/auth/v1/verify?token={token}&type=signup&redirect_to=http://hoho.hoho.com/

Same issue:
await supabase.auth.signIn(
    {email},
    {
        shouldCreateUser: true, // default
        redirectTo: "/otp-ok"
    }
)

Email arrives with redirect_to=http://localhost:1234/. I've also tried adding the destination as a Redirect URL, which had no effect.

Seems to be caused by https://github.com/supabase/gotrue-js/issues/321.

@pikeas your redirectTo field should not just be a subpath, it should be the full URL that starts with either http or https


Can’t figure out how to install

Hello, I am new to modding storm chasers and o was wondering could I have instructions on how to install please? Thanks!

I think instructions are on the nexusmods page