DNS Proxy: Adds UDP checksum for IPv6 Responses

Updates the DNS proxy to compute a UDP checksum over the IPv6 response packet and the pseudo-header. If the computation yields a result of zero, it changes the checksum to hex FFFF for placement in the UDP header.
Fixes #28678
The DNS proxy will now compute a UDP checksum over the IPv6 response packet and the pseudo-header.

@squeed @tklauser I'm new to this area of the Cilium code so I'm open to suggestions for computing the UDP checksum. I manually tested the changes but I can add unit tests if this approach is acceptable.

The Conformance K8s Kind / Installation and Conformance test is failing due to:
STEP: Checking if the Service forwards traffic to TCP only @ 11/29/23 21:30:24.379
  Nov 29 21:30:24.392: INFO: Running '/usr/local/bin/kubectl --server=https://<IP_ADDRESS>:35901/ --kubeconfig=/home/runner/work/cilium/cilium/_artifacts/kubeconfig.conf --namespace=services-7471 exec execpodmzmjh -- /bin/sh -x -c echo hostName | nc -v -t -w 2 <IP_ADDRESS> 80'
  Nov 29 21:30:24.685: INFO: stderr: "+ echo hostName\n+ nc -v -t -w 2 <IP_ADDRESS> 80\nConnection to <IP_ADDRESS> 80 port [tcp/http] succeeded!\n"
  Nov 29 21:30:24.6[85](https://github.com/cilium/cilium/actions/runs/7038674807/job/19156089632?pr=29493#step:15:86): INFO: stdout: "HTTP/1.1 400 Bad Request\r\nContent-Type: text/plain; charset=utf-8\r\nConnection: close\r\n\r\n400 Bad Request"
  Nov 29 21:30:24.685: INFO: Running '/usr/local/bin/kubectl --server=https://<IP_ADDRESS>:35901/ --kubeconfig=/home/runner/work/cilium/cilium/_artifacts/kubeconfig.conf --namespace=services-7471 exec execpodmzmjh -- /bin/sh -x -c echo hostName | nc -v -u -w 2 <IP_ADDRESS> 80'
  Nov 29 21:30:29.093: INFO: stderr: "+ echo hostName\n+ nc -v -u -w 2 <IP_ADDRESS> 80\nConnection to <IP_ADDRESS> 80 port [udp/*] succeeded!\n"
  Nov 29 21:30:29.093: INFO: stdout: "pod1"
  Nov 29 21:30:34.094: INFO: Running '/usr/local/bin/kubectl --server=https://<IP_ADDRESS>:35901/ --kubeconfig=/home/runner/work/cilium/cilium/_artifacts/kubeconfig.conf --namespace=services-7471 exec execpodmzmjh -- /bin/sh -x -c echo hostName | nc -v -u -w 2 <IP_ADDRESS> 80'
  Nov 29 21:30:38.321: INFO: stderr: "+ nc -v -u -w 2 <IP_ADDRESS> 80\n+ echo hostName\nConnection to <IP_ADDRESS> 80 port [udp/*] succeeded!\n"
  Nov 29 21:30:38.321: INFO: stdout: "pod1"
  Nov 29 21:30:43.321: INFO: Running '/usr/local/bin/kubectl --server=https://<IP_ADDRESS>:35[90](https://github.com/cilium/cilium/actions/runs/7038674807/job/19156089632?pr=29493#step:15:91)1 --kubeconfig=/home/runner/work/cilium/cilium/_artifacts/kubeconfig.conf --namespace=services-7471 exec execpodmzmjh -- /bin/sh -x -c echo hostName | nc -v -u -w 2 <IP_ADDRESS> 80'
  Nov 29 21:30:47.762: INFO: stderr: "+ + nc -v -u -w 2 <IP_ADDRESS> 80\necho hostName\nConnection to <IP_ADDRESS> 80 port [udp/*] succeeded!\n"
  Nov 29 21:30:47.762: INFO: stdout: "pod1"
  Nov 29 21:30:52.763: INFO: Running '/usr/local/bin/kubectl --server=https://<IP_ADDRESS>:35901/ --kubeconfig=/home/runner/work/cilium/cilium/_artifacts/kubeconfig.conf --namespace=services-7471 exec execpodmzmjh -- /bin/sh -x -c echo hostName | nc -v -u -w 2 10.[96](https://github.com/cilium/cilium/actions/runs/7038674807/job/19156089632?pr=29493#step:15:97).129.16 80'
  Nov 29 21:30:57.251: INFO: stderr: "+ nc -v -u -w 2 <IP_ADDRESS> 80\n+ echo hostName\nConnection to <IP_ADDRESS> 80 port [udp/*] succeeded!\n"
  Nov 29 21:30:57.251: INFO: stdout: "pod1"
  [FAILED] in [It] - test/e2e/network/service.go:3730 @ 11/29/23 21:30:57.251

Similar to https://github.com/cilium/cilium/issues/29315 flake. Maybe the 30-second timeout is not long enough for the change in the service to take effect so I'm rerunning the tests.

/test

/test


Unexplainable behavior with constant strings.

Could you please help with the following issue.
In the latest version of ConfuserEx, something very strange was happening with constant strings.
For example, after obfuscation a WPF converter looking like this
class TestConverter : IValueConverter {
  public object Convert(object value, ...) {
    switch (value) {
      case ...: return "A";
      case ...: return "B";
    }
  }
}

stopped to work. I've tried to apply [Obfuscation(Exclude=true)] to TestConverter, but it had no effect. Rewriting the method without constant strings solved the problem, but I wonder what caused it and why the attribute did not help, maybe I'm using it wrong?
Also it happened in another class method looking like string GetName() => "N";, again making string to be constructed dynamically resolved the problem.

Please provide the full version identifier of ConfuserEx you are using. If possible also add the *.crproj file of your project.
In case you are using ConfuserEx 1.4.1, please give the pre-release of ConfuserEx 1.5 a shot. It contains a lot of fixes.

1.5 RC fixed all the problems, thank you a lot!


Can't download the model ...showing error

The download link not working

Please use this temporary gdrive link to download the models.

Do you have any pretrained models on hugging face that could be exported like this  ?
tokenizer = Wav2Vec2Tokenizer.from_pretrained("           ")
model = Wav2Vec2ForCTC.from_pretrained("   ")

The google drive link has only the en2indic and the indic2en model. From where can I download the indic2indic model? @gowtham1997


addressing pr feedback

changes to the test cases to accommodate for new configuration settings

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Samer Jaser seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


1767 hotspot datasource

Closes #1767
Summary

This PR adds the data source tab component for the hotspot editor

Change List (commits, features, bugs, etc)

added HotSpotEditorDataSourceTab.jsx, HotSpotEditorDataSourceTab.test.jsx, HotSpotEditorDataSourceTab.story.jsx
added support for image card in handleDataSeriesChange & handleDataItemEdit in editorUtils.jsx
tweaked both DataSeriesFormItemModal and ThresholdsFormItem to allow for image card.

Acceptance Test (how to verify the PR)

created stories at https://deploy-preview-1865--carbon-addons-iot-react.netlify.app/?path=/story/watson-iot-experimental-hotspoteditormodal-hotspoteditordatasourcetab--with-state-in-story
Check that the object passed to the onChange event in the actions tab has the appropriate shape

{
    type: CARD_TYPES.IMAGE,
    content: {
      hotspots: [
        {
          title: 'elevators',
          content: {
            attributes: [
              // new data items changes go here
           ],
         },
        },
      ],
   },
  thresholds: [
    // threshold changes go here
  ],
}

:tada: This PR is included in version 2.141.0-next.61 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.142.0-next.1 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.142.0-next.1 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.142.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.142.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


System.TypeLoadException with Xamarin.Forms 3.4

Xamarin.Forms 3.4
CardView  2.3.8
Target Platform: Android Oreo 8.1
VS2019
Basic project with single content page and a carousel view inside.
Same solution with Xamarin.Forms >= 3.5 works fine (but at the moment I cannot migrate).

What's the stacktrace?
Cannot reproduce
are you sure it's related to CardsView nuget?

don't forget to call CardsViewRenderer.Preserve(); in mainactivity

Exception:
System.TypeLoadException: Could not resolve type with token 01000071 from typeref (expected class 'Xamarin.Forms.NavigableElement' in assembly 'Xamarin.Forms.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null')
Stacktrace:
0x77 in App1.MainPage.InitializeComponent at C:\Users\[user]\Documents\GitHub\CardsViewTest\App1\App1\obj\Debug\netstandard2.0\MainPage.xaml.g.cs:22,9 	at C:\Users\[user]\Documents\GitHub\CardsViewTest\App1\App1\obj\Debug\netstandard2.0\MainPage.xaml.g.cs(22) 0x9 in App1.MainPage..ctor at C:\Users\[user]\Documents\GitHub\CardsViewTest\App1\App1\MainPage.xaml.cs:14,13 	at C:\Users\[user]\Documents\GitHub\CardsViewTest\App1\App1\MainPage.xaml.cs(14) 0x10 in App1.App..ctor at C:\Users\[user]\Documents\GitHub\CardsViewTest\App1\App1\App.xaml.cs:14,13 	at C:\Users\[user]\Documents\GitHub\CardsViewTest\App1\App1\App.xaml.cs(14) 0x2E in App1.Droid.MainActivity.OnCreate at C:\Users\[user]\Documents\GitHub\CardsViewTest\App1\App1.Android\MainActivity.cs:23,13 	at C:\Users\[user]\Documents\GitHub\CardsViewTest\App1\App1.Android\MainActivity.cs(23)
To reproduce:
https://github.com/lightwalker01/CardsViewTest
@AndreiMisiukevich thank you for you attention.

thx I will take a look

no idea for now. I don't use Xamarin.Forms.NavigableElement

Update:
Referencing PanCardView and PanCardView.Droid from master  (downgraded to Xamarin.Forms 3.4) instead of the nuget package makes the app working again...

@lightwalker01 then I suggest you go ahead with this approach as a workaround :)
Or you can try to build local nuget with this settings


use multi-stage docker builds and an autobuild repo

I think we can replace our dockerize script with a multi-stage build. This will enable us to use an autobuild dockerhub repo.

Docker for Mac doesn't yet support this (on stable, at least).  Once it does, our Dockerfile should probably look something like:
FROM linkerd/rustup-nightly:v1 as nightly-build
RUN rustup update nightly
RUN mkdir -p /linkerd-tcp
COPY . /linkerd-tcp
WORKDIR /linkerd-tcp
RUN cargo build --release

FROM debian:jessie-slim
COPY --from=nightly-build /linkerd-tcp/target/x86_64-unknown-linux-gnu/release/linkerd-tcp /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/linkerd-tcp"]

Specifically, we need Docker v17.05.0-ce, which is currently a release candidate.  Docker for Mac currently uses 17.03.1-ce.


Add oekofen-json to latest

Please add my adapter ioBroker.oekofen-json to latest.
This pull request was created by https://www.iobroker.dev 79ffd9b.

Hi, thank you for your adapter. Here are some review comments:

Should the password be stored encrypted? if yes simply add a key "encryptedNative" and "protectedNative" as array with the field name ("password") and ad min will store it encrypted and decryotion will also be automatic ... it will just be a breaking change for the current users (but I think better now then later) ... like here https://github.com/TA2k/ioBroker.psa/blob/master/io-package.json#L87-L92 (just the default should be then removed)
You can define static objects ti be created directly in io-pakage like https://github.com/TA2k/ioBroker.psa/blob/master/io-package.json#L100-L122 instead "in code" (and a´you also missed to create the info channel object :-)
an "await method().then" (e.g. https://github.com/chaozmc/ioBroker.oekofen-json/blob/main/main.js#L111-L112) is an anti pattern .. if you use "then" then you should not also use await. or use await but then no "then"
The current code would start the update interval also if the initial scan was not successfull. is this wanted? I would expect not because objects are missing then
The creation of the main objects is all done in parallel. This could be toomuch for smaller systems. Please use Async/await here!
As optimization you can simply remember the created objects to remember the factor. Migth be betetr then redine the objects on every update ...
When I read the one issue which is open and read about 1,6k objects then please add a safeguard and remember if adapter was unloaded (unload was called) and check that when setting values (because after unload the DB is gone 500ms later ... with such number of objects setting all the values can eaiely take longer!)
https://github.com/chaozmc/ioBroker.oekofen-json/blob/main/main.js#L349 ... you do not clear the interval - and si as soon as some triggers this the interval is duplicated, ending in two intervals running and requesting ... please add handling here, else triggering this often enough will kill the device and the iobroker system ;-)

Thank you for checking and adjusting the topics,
Ingo

Hi Ingo,
thank you for checking and feedback. I'll have a look into the things you've pointed out and get back soon

Hi Ingo,
would you check the latest code again? I've also added a self-termination of the adapter if an error occurs on retrieval, this should also prevent the extensive creation of wrong objects. That (still open) issue I can't reproduce or think of how this could happen and without any further feedback of the User, which I asked for but not received, I also couldn't troubleshoot that behavior any further.
I guess I've covered everything beside a local copy of the objects.
In regards of this, I'm thinking about how this could be changed at all, and maybe rewrite the update procedure in a next version and compare for example the last values with the current retrieved ones and only write those objects with changed values to ioBroker. But I think this will require more testing as I'm a bit concerned about the memory demand as soon as I create a local copy of all objects with the current and last retrieved values to compare them afterwards.
If you don't think that would be a crucial requirement for now and the code rewrite can be postponed as an improvement for a future version, I'd say this release is finished. Except I've missed something again but at least for me the adapter runs without any issues.
Thank you,
Max

RE-CHECK!

Automated adapter checker
ioBroker.oekofen-json

:thumbsup: No errors found

[ ] :eyes: [W400] Cannot find "oekofen-json" in latest repository

Add comment "RE-CHECK!" to start check anew

Hi,
sorry that my re-review took that long.
In fact many things are adjusted. Thank you for that.
But the main initialization look still does  "setObjectNotExists" calls and they all run in parallel. If we really talk about many objects this can crash or overload smaller systems. Please replace the forEach there with for Loops and simply use "await setObjectNotExistsAsync()" because then they are all created sequencially ...
Thank you for adjusting this.
Ingo

@chaozmc Anything we can support with?

Hi @Apollon77 - sorry my Laptop was broken and my whole VS setup on it etc. was gone with it too...
In regards of the for-loop I'll have a look how I could do that.
Is a foreach loop handled in parallel and not sequential? Would it be sufficient to replace this with await this.setObjectNotExistsAsync()?

Hi @Apollon77 again, I've searched around in the internet about the object.Keys().forEach() topic and the parallelism and understood what you've mentioned. I've changed the functions to use a for...of loop which should target what you've meant.

I meaned exactly that :-)
But now after having another look ... what is https://github.com/chaozmc/ioBroker.oekofen-json/blob/main/main.js#L4 seems unused and also such a package is not declared in your package.json ... Please check this.
Rest fine now

removed, idk where this came from, maybe VSCode has putted that in automatically due to IntelliSense

Welcome in the repository, sorry that it took that long

BTW ... stttoooop. One last thing ... Adapter type "communication" is not really matching ... Please check for a better matching type ... household? hardware? Please adjust in youtr io-package and in this PR. Thank you!

I've looked around other adapters with familiar capabilities, "climate-control" seems to be the best category as there are other heating-system adapters already. I've adjusted the category accordingly in both locations

Welcome in the repo then!


Webfonts referenced in stylesheet don't have the correct URL

Describe the bug
Webfonts use the webserver URL and not the resources URL (the URL of the Vite server). For example:
My webserver is located at http://<IP_ADDRESS>:8000
My Vite server is located at http://localhost:3000
I use this icon webfont: @mdi/font
Webfont is imported as http://<IP_ADDRESS>:8000/node_modules/.pnpm/@mdi+font@5.9.55/node_modules/@mdi/font/fonts/materialdesignicons-webfont.woff2?v=5.9.55 instead of http://<IP_ADDRESS>:3000/node_modules/.pnpm/@mdi+font@5.9.55/node_modules/@mdi/font/fonts/materialdesignicons-webfont.woff2?v=5.9.55 (note the port)
Reproduction

Install the @mdi/font webfont.
Add this code in your SCSS file:

@use '@mdi/font';

See the issue in your webserver

System Info
System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
    Memory: 936.25 MB / 31.79 GB
  Binaries:
    Node: 14.16.1 - C:\laragon\bin\nodejs\node-v14\node.EXE
    npm: 7.20.3 - C:\laragon\bin\nodejs\node-v14\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (92.0.902.84), ChromiumDev (94.0.992.4)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    vite: ^2.4.4 => 2.5.1

Used Package Manager
pnpm
Logs
> openstamanager@ dev C:\Users\Maicol\Documents\Progetti\Web\osm_rewrite
> concurrently --raw npm:serve-php npm:serve-dev

> serve-php
> php artisan serve

> serve-dev
> vite

Starting Laravel development server: http://<IP_ADDRESS>:8000
[Mon Aug 30 18:24:17 2021] PHP 8.0.8 Development Server (http://<IP_ADDRESS>:8000) started

  vite v2.5.1 dev server running at:

  > Local: http://localhost:3000/
  > Network: use `--host` to expose

  ready in 1704ms.

[Mon Aug 30 18:24:26 2021] <IP_ADDRESS>:55737 Accepted
[Mon Aug 30 18:24:27 2021] <IP_ADDRESS>:55737 Closing
[Mon Aug 30 18:24:27 2021] <IP_ADDRESS>:55745 Accepted
[Mon Aug 30 18:24:27 2021] <IP_ADDRESS>:55745 [200]: GET /images/favicon/favicon.ico
[Mon Aug 30 18:24:27 2021] <IP_ADDRESS>:55745 Closing
[Mon Aug 30 18:24:32 2021] <IP_ADDRESS>:55758 Accepted
[Mon Aug 30 18:24:32 2021] <IP_ADDRESS>:55758 Closing
Sourcemap for "C:/Users/Maicol/Documents/Progetti/Web/osm_rewrite/resources/js/Components/ListPage.jsx" points to missing source files
[Mon Aug 30 18:24:32 2021] <IP_ADDRESS>:55769 Accepted
Sourcemap for "C:/Users/Maicol/Documents/Progetti/Web/osm_rewrite/resources/js/Components/Page.jsx" points to missing source files
Sourcemap for "C:/Users/Maicol/Documents/Progetti/Web/osm_rewrite/resources/js/Components/Component.jsx" points to missing source files
[Mon Aug 30 18:24:33 2021] <IP_ADDRESS>:55769 Closing
[Mon Aug 30 18:24:33 2021] <IP_ADDRESS>:55770 Accepted
[Mon Aug 30 18:24:33 2021] <IP_ADDRESS>:55770 Closing
[Mon Aug 30 18:25:18 2021] <IP_ADDRESS>:56381 Accepted
[Mon Aug 30 18:25:19 2021] <IP_ADDRESS>:56381 Closing
[Mon Aug 30 18:25:19 2021] <IP_ADDRESS>:56382 Accepted
[Mon Aug 30 18:25:19 2021] <IP_ADDRESS>:56382 Closing
[Mon Aug 30 18:25:19 2021] <IP_ADDRESS>:56383 Accepted
[Mon Aug 30 18:25:19 2021] <IP_ADDRESS>:56383 Closing
18:25:33 [vite] vite.config.js changed, restarting server...
[Mon Aug 30 18:25:33 2021] <IP_ADDRESS>:56625 Accepted
[Mon Aug 30 18:25:34 2021] <IP_ADDRESS>:56625 Closing
[Mon Aug 30 18:25:35 2021] <IP_ADDRESS>:56637 Accepted

  vite v2.5.1 dev server running at:

  > Local: http://localhost:3000/
  > Network: use `--host` to expose

  ready in 1677ms.

[Mon Aug 30 18:25:35 2021] <IP_ADDRESS>:56637 Closing
[Mon Aug 30 18:25:37 2021] <IP_ADDRESS>:56650 Accepted
[Mon Aug 30 18:25:37 2021] <IP_ADDRESS>:56650 [200]: GET /favicon.ico
[Mon Aug 30 18:25:37 2021] <IP_ADDRESS>:56650 Closing
18:25:37 [vite] vite.config.js changed, restarting server...

  vite v2.5.1 dev server running at:

  > Local: http://localhost:3000/
  > Network: use `--host` to expose

  ready in 1738ms.

[Mon Aug 30 18:25:43 2021] <IP_ADDRESS>:56707 Accepted
[Mon Aug 30 18:25:44 2021] <IP_ADDRESS>:56707 Closing
[Mon Aug 30 18:25:44 2021] <IP_ADDRESS>:56719 Accepted
[Mon Aug 30 18:25:44 2021] <IP_ADDRESS>:56719 [200]: GET /images/favicon/favicon.ico
[Mon Aug 30 18:25:44 2021] <IP_ADDRESS>:56719 Closing
[Mon Aug 30 18:25:50 2021] <IP_ADDRESS>:56749 Accepted
Sourcemap for "C:/Users/Maicol/Documents/Progetti/Web/osm_rewrite/resources/js/Components/ListPage.jsx" points to missing source files
[Mon Aug 30 18:25:50 2021] <IP_ADDRESS>:56749 Closing
[Mon Aug 30 18:25:50 2021] <IP_ADDRESS>:56754 Accepted
[Mon Aug 30 18:25:50 2021] <IP_ADDRESS>:56754 Closing
Sourcemap for "C:/Users/Maicol/Documents/Progetti/Web/osm_rewrite/resources/js/Components/Page.jsx" points to missing source files
Sourcemap for "C:/Users/Maicol/Documents/Progetti/Web/osm_rewrite/resources/js/Components/Component.jsx" points to missing source files
[Mon Aug 30 18:25:50 2021] <IP_ADDRESS>:56755 Accepted
[Mon Aug 30 18:25:51 2021] <IP_ADDRESS>:56755 Closing
18:28:02 [vite] vite.config.js changed, restarting server...
[Mon Aug 30 18:28:02 2021] <IP_ADDRESS>:58393 Accepted
[Mon Aug 30 18:28:02 2021] <IP_ADDRESS>:58393 Closing
[Mon Aug 30 18:28:03 2021] <IP_ADDRESS>:58402 Accepted

  vite v2.5.1 dev server running at:

  > Local: http://localhost:3000/
  > Network: use `--host` to expose

  ready in 1672ms.

[Mon Aug 30 18:28:03 2021] <IP_ADDRESS>:58402 Closing
[Mon Aug 30 18:28:11 2021] <IP_ADDRESS>:58471 Accepted
[Mon Aug 30 18:28:12 2021] <IP_ADDRESS>:58471 Closing
[Mon Aug 30 18:28:12 2021] <IP_ADDRESS>:58481 Accepted
[Mon Aug 30 18:28:12 2021] <IP_ADDRESS>:58481 [200]: GET /images/favicon/favicon.ico
[Mon Aug 30 18:28:12 2021] <IP_ADDRESS>:58481 Closing
[Mon Aug 30 18:28:15 2021] <IP_ADDRESS>:58501 Accepted
[Mon Aug 30 18:28:15 2021] <IP_ADDRESS>:58501 Closing
Sourcemap for "C:/Users/Maicol/Documents/Progetti/Web/osm_rewrite/resources/js/Components/ListPage.jsx" points to missing source files
[Mon Aug 30 18:28:16 2021] <IP_ADDRESS>:58507 Accepted
[Mon Aug 30 18:28:16 2021] <IP_ADDRESS>:58507 Closing
Sourcemap for "C:/Users/Maicol/Documents/Progetti/Web/osm_rewrite/resources/js/Components/Page.jsx" points to missing source files
[Mon Aug 30 18:28:17 2021] <IP_ADDRESS>:58508 Accepted
[Mon Aug 30 18:28:17 2021] <IP_ADDRESS>:58508 Closing
Sourcemap for "C:/Users/Maicol/Documents/Progetti/Web/osm_rewrite/resources/js/Components/Component.jsx" points to missing source files
18:28:33 [vite] hmr update /resources/scss/app.scss
[Mon Aug 30 18:28:36 2021] <IP_ADDRESS>:58576 Accepted
[Mon Aug 30 18:28:36 2021] <IP_ADDRESS>:58576 Closing
[Mon Aug 30 18:28:36 2021] <IP_ADDRESS>:58577 Accepted
[Mon Aug 30 18:28:36 2021] <IP_ADDRESS>:58577 Closing
[Mon Aug 30 18:28:36 2021] <IP_ADDRESS>:58578 Accepted
[Mon Aug 30 18:28:36 2021] <IP_ADDRESS>:58578 Closing
18:29:09 [vite] hmr update /resources/scss/app.scss (x2)
[Mon Aug 30 18:29:12 2021] <IP_ADDRESS>:58748 Accepted
[Mon Aug 30 18:29:12 2021] <IP_ADDRESS>:58748 Closing
[Mon Aug 30 18:29:12 2021] <IP_ADDRESS>:58749 Accepted
[Mon Aug 30 18:29:12 2021] <IP_ADDRESS>:58749 Closing
[Mon Aug 30 18:29:12 2021] <IP_ADDRESS>:58750 Accepted
[Mon Aug 30 18:29:12 2021] <IP_ADDRESS>:58750 Closing
18:36:58 [vite] hmr update /resources/scss/app.scss (x3)
[Mon Aug 30 18:37:01 2021] <IP_ADDRESS>:59910 Accepted
[Mon Aug 30 18:37:01 2021] <IP_ADDRESS>:59910 Closing
[Mon Aug 30 18:37:01 2021] <IP_ADDRESS>:59913 Accepted
[Mon Aug 30 18:37:02 2021] <IP_ADDRESS>:59913 Closing
[Mon Aug 30 18:37:02 2021] <IP_ADDRESS>:59914 Accepted
[Mon Aug 30 18:37:02 2021] <IP_ADDRESS>:59914 Closing
[Mon Aug 30 18:37:02 2021] <IP_ADDRESS>:59915 Accepted
[Mon Aug 30 18:37:02 2021] <IP_ADDRESS>:59915 Closing

Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

Please provide a reproduction for this. I'm not sure how the webserver is set up, and how it interacts with the Vite dev server. It may be a misconfiguration somewhere, but it's hard to tell without the code for the project.


Error while using bucket partitions

Seeing following error while using the bucket partition
at org.apache.iceberg.spark.source.Writer$PartitionedWriter.write(Writer.java:381)
at org.apache.iceberg.spark.source.Writer$PartitionedWriter.write(Writer.java:342)
at org.apache.spark.sql.execution.datasources.v2.DataWritingSparkTask$$anonfun$run$3.apply(WriteToDataSourceV2Exec.scala:118)
at org.apache.spark.sql.execution.datasources.v2.DataWritingSparkTask$$anonfun$run$3.apply(WriteToDataSourceV2Exec.scala:116)
at org.apache.spark.util.Utils$.tryWithSafeFinallyAndFailureCallbacks(Utils.scala:1394)
at org.apache.spark.sql.execution.datasources.v2.DataWritingSparkTask$.run(WriteToDataSourceV2Exec.scala:146)
at org.apache.spark.sql.execution.datasources.v2.WriteToDataSourceV2Exec$$anonfun$doExecute$2.apply(WriteToDataSourceV2Exec.scala:67)
at org.apache.spark.sql.execution.datasources.v2.WriteToDataSourceV2Exec$$anonfun$doExecute$2.apply(WriteToDataSourceV2Exec.scala:66)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
at org.apache.spark.scheduler.Task.run(Task.scala:121)
at org.apache.spark.executor.Executor$TaskRunner$$anonfun$10.apply(Executor.scala:402)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1360)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:408)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

The relevant code looks like
val spec = PartitionSpec.builderFor(schema).bucket("_id", 800).build()

Sorting by the column does not help as its bucketted using hash.

Yeah, you need to get the bucket function to Spark and sort by that. Here's how to create a Spark UDF with the function:
import com.netflix.iceberg.transforms.Transforms
import com.netflix.iceberg.types.Types
import org.apache.spark.sql.types.IntegerType

// load the bucket transform from Iceberg to use as a UDF
val bucketTransform = Transforms.bucket[java.lang.Long](Types.LongType.get(), 16)

// needed because Scala has trouble with the Java transform type
def bucketFunc(id: Long): Int = bucketTransform.apply(id)

// create and register a UDF
val bucket16 = spark.udf.register("bucket16", bucketFunc _)

Then you can use it like this:
INSERT INTO table SELECT id, data FROM source ORDER BY bucket16(id)

@rdblue Thanks, let me try it out

@moulimukherjee, did that solve the problem?

@rdblue Yes, it did. Thanks!


🌱 Reduce e2e process time

Summary
for work and addon e2e, we do not need to
restart klusterlet for each case
Related issue(s)
Fixes #

/lgtm


Suggestion: More top padding in editor

Hey guys, thanks so much for StackEdit.
One minor gripe I have with it is that the top line of my editor is just about touching the formatting bar:

Would you consider adding some more top padding so that this looks a little nicer:
e.g. here's what 30px looks like

Thanks!
Fotis

Fixed in the v5.


504 GATEWAY_TIMEOUT after authentication

504 GATEWAY_TIMEOUT occurs once authenticated from github. is this due to not using the commercial version of formio?
Also in another application getting "GitHub account has not yet been linked" in login page after authentication. i have added oAuth action to link current user.
After this i'm getting unauthorized error while submitting in https://ufcokdihgmydfrg.form.io/user/login/submission

Yes, this is most likely that these actions are not enabled if you are not on commercial plan. It should work if your project is on Trial so please verify that you have at least a trial plan.

After successful authorize from github, still FormioAuthService authenticated value shows as false.
how to get the logged in user information and set authenticated as true?
https://github.com/login/oauth/authorize?response_type=code&client_id=b77a93a71dc718ea6ab9&redirect_uri=http%3A%2F%2Flocalhost%3A4210&state=ef25dae5ed6b9fbdf2f29d154ce81424d6d785e6e5fa9bf5cc7a086482819ee26bf758d9aaed35b1966b88b9bcee671df2d238128e216b66e5e522ee2535441d&scope=user%3Aemail

After successful authorize from github, still FormioAuthService authenticated value has false.
and shown unauthorized error for the call https://ufcokdihgmydfrg.form.io/user/login/submission.
https://github.com/login/oauth/authorize?response_type=code&client_id=b77a93a71dc718ea6ab9&redirect_uri=http%3A%2F%2Flocalhost%3A4210&state=ef25dae5ed6b9fbdf2f29d154ce81424d6d785e6e5fa9bf5cc7a086482819ee26bf758d9aaed35b1966b88b9bcee671df2d238128e216b66e5e522ee2535441d&scope=user%3Aemail

In the response from the server, are you receiving an x-jwt-token header as a response with your token? If so, then this means that the auth was successful. If not, then I would be curious how your login form is configured since this may be a misconfiguration.

In forum launch im getting "You must assign this button to an oauth action before it will work" , please let me know what configuration i missed...

When you get the form definition with OAuth you have to add ?live=1 to the form url. This is because the OAuth action modifies the OAuth button to add the appropriate information but we only want to do this when live. We are discussing changing this since it causes lots of issues.

..
providers: [
FormioResourceService,
{provide: FormioResourceConfig, useValue: {
name: 'participant',
Im accessing forms with above code.. how i can append ?live=1 in this case.

In the response from the server, are you receiving an x-jwt-token header as a response with your token? If so, then this means that the auth was successful. If not, then I would be curious how your login form is configured since this may be a misconfiguration.

the following payload is sent along with logon submission:
{"data":{},"oauth":{"github":{"code":"7f901849a1c476b21147","state":"4723db324bf2b2426339050798c8c690e1e7aa30d99ea8691bed9471662235dd990c083f10966e85b6deb85bf164e7e67dff0487d460c54d0e5856da9a930a9a","redirectURI":"http://localhost:4210"}}}

Angular 6 is just a wrapper around our formio.js renderer so they all should be the same with this functionality. Not sure what is going on here, but if you need resolution to this very soon you will probably need to expedite this so our dev team can be allocated to dig into your configuration. Please contact support if you want to go down that route.

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!


Failed to spawn command SourceKittenDaemon

This seems to happen Sporadically when i start up Atom. Any idea on how to resolve this?

The resolution would be to install SourceKittenDaemon properly, if it's already installed then maybe add it to your $PATH

Thanks, that fixed it.


wip: auto forward query to host server when having multiple servers

Changelog category :

New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Auto forwarding sql to host server when having multiple servers in order to utilize the metadata cache. By default, it is disabled, you need to set enable_auto_query_forwarding=1 to enable it.
Close https://github.com/ByConity/ByConity/issues/248 and release as a preview(experiment) feature in GA release.
The design is https://github.com/ByConity/ByConity/issues/208

We should have a multi-server suite to test this feature

@canhld94 comments are addressed


Add timeout to wait for quiescence of ForkJoinPool

https://wacklig.pipifein.dev/github/crate/crate/case/io.crate.expression.operator.any.AnyEqOperatorTest/testArrayEqAnyNestedArrayDoesNotMatch
and
https://wacklig.pipifein.dev/github/crate/crate/case/io.crate.expression.predicate.MatchPredicateTest/testGetStringDefaultMatchType
failed with active thread count on ForkJoinPool
expected: 0
 but was: 1
	at __randomizedtesting.SeedInfo.seed([E886A44AC68DB2F:76802B7792616C42]:0)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at io.crate.lucene.CrateLuceneTestCase.assertNoActiveCommonPoolThreads(CrateLuceneTestCase.java:207)

Adding a timeout to wait for those active threads to finish.

This seems to point to an actual issue in that there are still threads running?

Yes. We migrated tests to use JDK HttpClient in https://github.com/crate/crate/commit/10fc003d4ad2986671b9b01f769388bb78e4a26c. My thinking here is that we can have http-client-dependant tests still running in parallel and not yet finished.
If problem persists even after the reasonable timeout then it probably means we have an actual problem somewhere.

We migrated tests to use JDK HttpClient in https://github.com/crate/crate/commit/10fc003d4ad2986671b9b01f769388bb78e4a26c. My thinking here is that we can have http-client-dependant tests still running in parallel and not yet finished.

All the tests using the http client wait for the result. That they're still running shouldn't be the case, and if it is it is a mistake.
That we get these failures from query tests, and not any http integration tests is also suspicious.
We could try do something like this instead:
diff --git a/server/src/testFixtures/java/io/crate/lucene/CrateLuceneTestCase.java b/server/src/testFixtures/java/io/crate/lucene/CrateLuceneTestCase.java
index ae609e22ee7..435778a515b 100644
--- a/server/src/testFixtures/java/io/crate/lucene/CrateLuceneTestCase.java
+++ b/server/src/testFixtures/java/io/crate/lucene/CrateLuceneTestCase.java
@@ -42,10 +42,11 @@

 import java.io.Closeable;
 import java.io.IOException;
 import java.net.http.HttpClient;
 import java.nio.file.Path;
+import java.util.Map;
 import java.util.Random;
 import java.util.concurrent.ForkJoinPool;
 import java.util.concurrent.ForkJoinWorkerThread;

 import org.apache.lucene.analysis.Analyzer;
@@ -202,11 +203,26 @@ public void tearDown() throws Exception {
         luceneTestCase.tearDown();
     }

     @After
     public void assertNoActiveCommonPoolThreads() throws Exception {
-        assertThat(ForkJoinPool.commonPool().getActiveThreadCount()).isEqualTo(0);
+        ForkJoinPool commonPool = ForkJoinPool.commonPool();
+        StringBuilder sb = new StringBuilder();
+        if (commonPool.getActiveThreadCount() > 0) {
+            Map<Thread, StackTraceElement[]> allStackTraces = Thread.getAllStackTraces();
+            for (var entry : allStackTraces.entrySet()) {
+                Thread thread = entry.getKey();
+                if (thread instanceof ForkJoinWorkerThread) {
+                    sb.append(thread.getName());
+                    StackTraceElement[] stacktrace = entry.getValue();
+                    for (StackTraceElement stackTraceElement : stacktrace) {
+                        sb.append("\n    at").append(stackTraceElement);
+                    }
+                }
+            }
+        }
+        assertThat(commonPool.getActiveThreadCount()).as(sb.toString()).isEqualTo(0);
     }

     public void setIndexWriterMaxDocs(int limit) {
         luceneTestCase.setIndexWriterMaxDocs(limit);
     }

To get a better idea of what's actually running

We could try do something like this instead:

Thanks, applied


Feature/interface changes

Hello,
And sorry for the long post.
I've been working on the refactoring of the android-gpgs module and I needed to make some interface changes to the code. This PR contains these proposed changes to the IGameService interface and all necessary changes to sub-modules which implement the interface. I've tested these changes locally and seems to work fine and builds ok too.
Here are the key changes of the PR:

Add resultCode Integer into gsOnSessionActive and gsOnSessionInactive methods. I found it is important to know the reason code why these session changes occur. For example, considering the new way to handle logins in Google Play Services, one should consider a situation when the user asks to explicitly sign out from the service or cancel the sign in flow. When this happens, one shouldn't try to sign in after that until the user explicitly wants to sign in by pressing a sign in button in the application.

Thus, I figured I'd add a resultCode information in to the callback methods that deliver this information to the caller. This way the caller can persist the status and can make a informed decision whether to sign the user in during app startup or during resume. This is described in Google Play Games Checklist ID 1.6

Add get player data method to IGameService interface and implement method stubs to sub-modules

This is used to fetch player data from the Game Service if it supports it. This was a missing feature, and I thought I'd implement it in android-gpgs module. This is purely optional feature but nice to have.
Add IPlayerData and IPlayerDataResponseListener interfaces, which define the data model and the callback methods when
new player data is received from the Game Service.

Add timespan and collection parameters to fetchLeaderboardEntries in IGameService

If the Game Service supports it, these parameters can control how to refine the leaderboard
results.

Timespan declares if for example daily, weekly or all time results are fetched.
Collection defines if the results retrieved are in public or social context.

This feature is at least supported by Google Play Games and should be added to make more refined queries to leaderboards. Now it defaults to All Time scores and completely disables the possibility to fetch Daily or Weekly leaderboards.

Add missing Javadoc stuff to get rid of warnings during compile time.

Add resultCode Integer into gsOnSessionActive and gsOnSessionInactive methods. I found it is important to know the reason code why these session changes occur. For example, considering the new way to handle logins in Google Play Services, one should consider a situation when the user asks to explicitly sign out from the service or cancel the sign in flow. When this happens, one shouldn't try to sign in after that until the user explicitly wants to sign in by pressing a sign in button in the application.

This was handled implicitely by GpgsClient before, the behaviour should be kept. It's the difference between calling resumeSession and logIn.
If it didn't work this way on one if the implementations, that was a bug. I know for sure it works on Gpgs Android though. :)

Thank you for the comments. I have made some fixes and will update the PR soon. I will look into the GPGS login stuff a bit more to figure out a way to handle explicit sign out situations within the client code. I had some problems dealing with that stuff when updating the code to use the newer API. For example the old connect() method does not exist anymore and is replaced by silentSignIn() which seems to sign in the user no matter what is the situation (even if the user explicitly signed out previously).

I've made the changes that were requested. I renamed one enum type GsErrorType to GsResultCode and added some success enums there also that can be used as session inactive / active resultcodes.
I will take a look at the sign in stuff discussed earlier a bit more thoroughly when I prepare the PR for the android-gpgs refactor.

I managed to figure out the sign in process. If the user explicitly signs out it is handled within the GPGS client like previously.
The reason I added the status code to session state changes was to inform the client about the explicit sign out event so the client could persist the choice and make a decision during app startup whether or not to sign in the user. I made a fix to the gpgs client code which handles this behind the scenes so the original use case is not valid anymore (for my case).
It is up to you if you see this as useful. Should the session state change include a reason code? If not, I can remove the commit from the Pull Request in order to get this approved.
Cheers,
Kari

I think we should remove it, I can't see any use case and it breaks backwards compatibility (every game has to change the callbacks).
Ping me when the PR is ready to review.

Alrighty, I modified the PR by removing the commit containing the result code stuff.


Update outdated testing documentation (use pytest)

The CONTRIBUTING.md's "How to submit pull requests" specified nosetests, which is no longer used. (see: commit id f27dfbf, github pr #36201)
This commit updates the documentation to use pytest instead, and also encourages the use of a virtual environment.
Config files are also updated to ignore the virtual environment.

@clalancette merged, please check!

@clalancette ping

@clalancette updated, please check!

@clalancette ping

@clalancette ping


Added Hamcrest matcher for params, fixes #8

I added the matcher and two tests, one for each constructor.

@g4s8 please, pay attention to this pull request

Job gh:g4s8/mime#10 is in scope.

Unfortunately those rules are not displayed if I build locally. The constructor problem is obvious and my bad but I'm not sure how to fix the duplicate strings. The obvious way is just extracting a constant but it feels like cluttering up the header of the class and not like a benefit.

@Viciouss thanks for PR again!
If you have different build results on local and on CI, most probably you forget to add "qulice" profile to build arguments. Full build command should look like this:
mvn clean install -Pqulice

I'll look at code today later.

Codecov Report

Merging #10 into master will decrease coverage by 10.62%.
The diff coverage is 26.66%.

@@              Coverage Diff              @@
##             master      #10       +/-   ##
=============================================
- Coverage     63.51%   52.88%   -10.63%
- Complexity       20       23        +3
=============================================
  Files             4        5        +1
  Lines            74      104       +30
  Branches         11       11
=============================================
+ Hits             47       55        +8
- Misses           21       43       +22
  Partials          6        6

Impacted Files
Coverage Δ
Complexity Δ

...c/main/java/com/g4s8/mime/test/HmMimeHasParam.java
26.66% <26.66%> (ø)
3 <3> (?)

Continue to review full report at Codecov.

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

Codecov Report

Merging #10 into master will decrease coverage by 10.62%.
The diff coverage is 26.66%.

@@              Coverage Diff              @@
##             master      #10       +/-   ##
=============================================
- Coverage     63.51%   52.88%   -10.63%
- Complexity       20       23        +3
=============================================
  Files             4        5        +1
  Lines            74      104       +30
  Branches         11       11
=============================================
+ Hits             47       55        +8
- Misses           21       43       +22
  Partials          6        6

Impacted Files
Coverage Δ
Complexity Δ

...c/main/java/com/g4s8/mime/test/HmMimeHasParam.java
26.66% <26.66%> (ø)
3 <3> (?)

Continue to review full report at Codecov.

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

@rultor merge

@rultor merge

@g4s8 OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@g4s8 Done! FYI, the full log is here (took me 3min)

Job gh:g4s8/mime#10 assigned to @g4s8, please go ahead (policy).

Oops! You need to have one of these roles in order to do what you're trying to do: ARC, PO. I'm sorry to say this, but at the moment you've got no roles in this project (your GitHub login is "0crat").

@g4s8 this job was assigned to you 5 days ago. It will be taken away from you soon, unless you close it, see par.8.


helm install with proxy repo doesn't seem to respect repo's full path for download URL

Context: I'm working on an open source plugin for Nexus Repository that allows you to proxy helm charts, and I'm kinda learning as I go, so if I did something completely wild, just let me know.
When running:
$ helm install nexus/acs-engine-autoscaler --debug

I get:
[debug] Created tunnel using local port: '55509'

[debug] SERVER: "<IP_ADDRESS>:55509"

[debug] Original chart version: ""
Error: Failed to fetch http://localhost:8081/acs-engine-autoscaler-2.1.4.tgz : 404 Not Found

Output of helm repo list
NAME 	URL
local	http://<IP_ADDRESS>:8879/charts
nexus	http://localhost:8081/repository/helm-proxy/

Being I added nexus as a repo, I would sort of expect that the /repository/helm-proxy/ would get passed to the download url, but it sort of looks like only the hostname, etc... is. Is this expected behavior? We have to rewrite the index.yaml file to set the urls as relative, rather than absolute, so that it will download through Nexus Repository rather than go remote, a snippet of what that looks like is below:
apiVersion: v1
entries:
  acs-engine-autoscaler:
  - apiVersion: v1
    appVersion: 2.1.1
    created: 2018-04-11T22:11:19.624876083Z
    description: Scales worker nodes within agent pools
    digest: 1e86ff353b82a832c88d05bf73c6cef3dea3673c4cb93d4816aa0d2e75929e5e
    home: https://github.com/wbuchwalter/Kubernetes-acs-engine-autoscaler
    icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
    maintainers:
    - email<EMAIL_ADDRESS>      name: ritazh
    - email<EMAIL_ADDRESS>      name: wbuchwalter
    name: acs-engine-autoscaler
    sources:
    - https://github.com/wbuchwalter/Kubernetes-acs-engine-autoscaler
    urls:
    - /acs-engine-autoscaler-2.1.4.tgz
    version: 2.1.4

Any help/input is welcome! Thanks for taking a gander.
Output of helm version:
$ helm version
Client: &version.Version{SemVer:"v2.8.1", GitCommit:"6af75a8fd72e2aa18a2b278cfe5c7a1c5feca7f2", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.1", GitCommit:"6af75a8fd72e2aa18a2b278cfe5c7a1c5feca7f2", GitTreeState:"clean"}

Output of kubectl version:
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-09T21:51:54Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"", Minor:"", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2018-01-26T19:04:38Z", GoVersion:"go1.9.1", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
Minikube, locally

Welp, I figured it out myself, for posterities sake, when I was rewriting the index.yaml that pesky / snuck in, removed that and it seems to work fine! Sorry for the issue, maybe it will help someone else in the future avoid my silly ways.


hope the layers can be ignored by parameter

What would you like to be added:
Layers can be ignored by parameter，in the func 'CatalogPackages()'
Why is this needed:
When we scan lots of packages which have the same base layer，we needn't to parse the base layer's packages again and again.
Additional context:
Nothing.

I think you are referring to some of the functionality described in https://github.com/anchore/syft/issues/15 , specifically the user / user-squashed scopes. I'm going to close this issue in favor of the original.


Bug

The icon changes when it's opened on the phone with chrome or edge, but there's no problem when it's on the desktop, even though the code I'm using is still the same. Is this a bug?

i am not sure , its working on my side on the phone and tab

i am not sure , its working on my side on the phone and tab

Really? Did this happen to me myself? Because it just happened today, previously there was no problem with the icon. For example, you can visit my portfolio https://danuapratama.github.io and try to see the icon changes that occur, then try to compare it on the mobile and desktop versions. Thank you in advance for the response

i can see the icons on the bottom and the social media section on the mobile version too , please try deleting the cache and use a specific version while using the font if possible
its probably because of the update today , you need to use specific versions to avoid this , not the latest

Yes thank you. This solution worked for me. Have a nice day

I have the same problem.
Switch to the stylesheet of unpkg and it is fixed.
<link rel="stylesheet"<EMAIL_ADDRESS>Check my cache and it seems that the content of each icon is interchanged.

I have the same problem.
Switch to the stylesheet of unpkg and it is fixed.
<link rel="stylesheet"<EMAIL_ADDRESS>Check my cache and it seems that the content of each icon is interchanged.

Yes, thank you. I will try it

please stop using
and use

please stop using <link rel="stylesheet"<EMAIL_ADDRESS>and use specific versions <link rel="stylesheet"<EMAIL_ADDRESS>

I dont know how to keep the unicode while creating font , if anyone can help it would be helpful

found  a method to keep the unicode the same , it wont be a problem in future updates


service worker in mobile and desktop

I registered my service worker in mobile version of our site
Its a diffrent project with the same URL (which I use rewriting to keep the domain unchanged).
To prevent mix ups in caches , I unregister SW in the desktop version with this code:
if (navigator.userAgent.indexOf("Mobile") > -1) {
        navigator.serviceWorker.register('/sw.js')
    } else if (navigator.userAgent.indexOf("Mobile") === -1) {
        navigator.serviceWorker.getRegistration().then(function (registration) {
            if (registration) {
                registration.unregister();
            }
        });
    }

and this is a portion of my sw.js :
    global.toolbox.router.get("/(.*)", global.toolbox.cacheFirst, {
        origin: templateServerUrl,
        cache: {
            name: buildCacheName("assets")
        }
    });
    global.toolbox.router.get("/", global.toolbox.networkFirst, {
        cache: {
            name: buildCacheName("html")
        }
    });
    global.toolbox.router.get("/Product/*", global.toolbox.networkFirst, {
        cache: {
            name: buildCacheName("html")
        }
    });
    global.toolbox.router.get("/api2/Data/*", global.toolbox.networkFirst, {
        origin: searchServiceUrl,
        cache: {
            name: buildCacheName("html")
        }
    });

My problem is to handle the service worker cache in both versions without them mixing together.

url : digikala

I'm not particularly sure how to answer this, and I can't connect to https://www.digikala.com/ to see your site.
In general, if you're concerned about keeping caches separate, you should use different cache names. I see that you're already doing something with buildCacheName(), but I don't know how that's implemented.
If you need different versions of your service worker for different versions of your site, you could either use different scopes, or use different service worker paths, or possibly use the same scope and service worker path, but append a URL query parameter (like /path/to/sw.js?site=Mobile) and then check that URL query parameter from inside your service worker via self.location.
I'm just throwing out some ideas, and I hope one of those works. I'm closing for now, but if you have any follow-up information to share, feel free to reopen.

Hi @jeffposnick
This is weird question. But I am wondering, can I use below code in sw.js?
if(navigator.userAgent.indexOf("Mobile") > -1) {    console.log("run service worker code")   global.toolbox.router.get("/(.*)", global.toolbox.cacheFirst, {         origin: templateServerUrl,         cache: {             name: buildCacheName("assets")         }     }); } else {   console.log("do nothing") }


Update overview.md

I noticed that there are some knowledge gap in the documentation about user access, specifically about their access to adjacent resources. I could understand this only by getting help from experts
Please add the following which explains this concept in a simple language. I know the picture isn't professional but you get the idea and you can develop something better if you deem necessary. But I must say that having a proper picture helps a lot because to understand this concept, readers currently have to go through several pages of documentation, mostly text, and they have to interpret it (if they can understand it, at all. I couldn't)
"Users have access to all adjacent resources and sub-resources. For example, imagine that tenant root group contains User1 and Management-Group1. And Management-group1 contains User2 and Subscription1. And Subscription1 contains Resource1. In this scenario, User1 has access to all resources within tenant root group which means Management-Group1, Subscription1 and Resource1. User2 has access to all resources within Management-Group1 which means Subscription1 and Resource1."

@tfitzmac
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#reassign:davidsmatlak

@azarboon Thank you for the documentation feedback. I created an internal backlog work item to review the proposed change. I'm closing the PR and the image file will need to be recreated before publication.

#please-close


Billing address region dropdown gets stuck on some other country

When you first fill out this form, click into the country field and type "Canada". Notice that when you press "C" it starts to load subdivisions for some other country like Cameroon or something. The state field is then updated with the subdivisions for that country. When Canada ends up being selected the region dropdown doesn't change to Canadian subdivisions, so I have to change the country to something else and back again with my mouse.

Good catch @robbieaverill! What's your thoughts here? Throw in a debounce of sorts?

Good catch @robbieaverill! What's your thoughts here? Throw in a debounce of sorts?

Yeah I reckon so 👍

Yeah I reckon so 👍


Split generated code by types enums, structs, classes, interfaces

Does this feature is available now. It would be quite convenient to have automatic splitting those type on separate files, especially if generated file is too large.
I know that for now Generator could split on separate file by headers, but what about splitting by headers and/or types?

It's not available, and I need to tell you neither @tritao nor I is going to do it. Our time has been extremely limited lately and we won't spend it on a feature which I understand you find useful but is essentially cosmetic. I'd also not take somebody else's code because it would require way too many changes and I don't want any complication in our code unless absolutely necessary.

I think this could be done with a pass, if it's self-contained I would not mind merging it in, but as @ddobrev said, we will not be working on this feature.

OK, thanks for your answer.
Could you please also write some comments regarding #1088 ?

@QuantumDeveloper did you figure this one out? Also, how do I split by header? I essentially only add a single "uber" header, that includes all others, and all the code ends up in the same file.

@lostmsu Hah. I ended up with creating my own binding generator based on clang to accomplish this task :)


Tab inconsistent between Linux and Windows.

Today I was on Windows 10 debugging an issue with Jekyll and opened a file (that is not related) and noticed that when I opened that tab delimited file the alignment was off because on Linux Atom editor defaults to 8 space tabs but on Windows Atom editor defaults to 2 space tabs, this results in a massive misalignment of sources that use tabs between the two operating systems.

There are no platform differences when it comes to indentation settings. Are you sure both environments have identical packages installed as well as identical configuration? Indentation settings are overridden by both configuration and language packages.

That takes the assumption that Atom has a setting to adjust both independently but to answer your question: both are set to 2 space tabbing, but when \t is in a file one has 8 space tabbing (Linux) the other has 2 space tabbing (Windows,) both do not use any addons that would alter this behavior.  To me this seems like a platform difference that is not normalized.

As I mentioned, there is no platform-specific handling of indentation. Neither insertion nor rendering.
Are you able to reproduce this with the same file on both platforms when running in safe mode? atom --safe

As I mentioned, there is no platform-specific handling of indentation

I didn't refute your assertion... so why do you keep repeating it as if I'm ignorant? I asserted an agreement with an assessment that it should be handled and normalized.  I already stated there are no -addons that alter the tabbing so atom --safe is just a redundancy, I personally audit every addon we use on our systems because Atom has no control over the things people do (like inserting analytics and tracking our behavior) so I know exactly what every plugin does.

Let's go back to your original issue;

[..] because on Linux Atom editor defaults to 8 space tabs but on Windows Atom editor defaults to 2 space tabs [..]

This assumption is not correct. Hence my reason for asking you about packages, and configuration, because whatever is causing the difference in indentation in your two environments is not originating from Atom.

What? That assumption is not correct?

I'm closing this ticket, I don't have time for this bullshit.

@envygeeks What do the config.cson files look like on both systems?

@envygeeks I'm sorry you are having a bad experience with tab / indentation behavior. I think @thomasjo was genuinely trying to help. Please remember that there are volunteers here working on many of these issues, expending their free time in service of you. Please review<EMAIL_ADDRESS>Regarding:

[..] because on Linux Atom editor defaults to 8 space tabs but on Windows Atom editor defaults to 2 space tabs [..]
@envygeeks

And:

This assumption is not correct.
@thomasjo

@thomasjo is trying to articulate that Atom does not have a default to 8 space tabs on Linux. The default is always 2: https://github.com/atom/atom/blob/1d9ecc1d597983c0ac88b3c7f9df1bde3f798c3e/src/config-schema.coffee#L135-L138
That said, there can be a different default tab length set on a grammar-by-grammar basis. That could explain some variation if you are opening different files on each platform. Another cause of variation could be that your config.cson has a value set for editor.tabLength on one of your platforms but not the other:
config.cson:
"*":
  editor:
    tabLength: 8

@benogle @joefitzgerald it could be the latter part, I will get on my main Linux machine tonight and see if there is a dangling configuration option from the past in there that sets it.  I think I remember in the past there being an option to set both independently back in the way-way-back but I think I also remember refreshing my entire configuration for the Atom 1.0 so I honestly don't know but I will compare the two tonight and post the diff and do a fresh install test (since it's high time I clean out my Atom folder anyways, it's got stuff in there from when Atom first went public.)

I guess dangling was the wrong word, "different" is better.

In addition it might be worth checking init.coffee. Some of us used that in the early days to handle indentation settings based on file types, platform, etc. Easy to forget about that file, at least that's my personal experience.

@thomasjo good idea, I shall check there too

It was an old Atom configuration option from the way-way back.

Glad you solved it :thumbsup:


maint: fix labeler

The labeler is experiencing some issues as visible within https://github.com/ansys/pyansys-math/pull/281. This PR is to fix them.

The CI/CD label should not appear.


When running demo.sh: ImportError: No module named transforms3d.quaternions

File "./tools/demo.py", line 13, in <module>
from fcn.test import test_net_images
File "/dat01/zyzhou/PoseCNN-master/tools/../lib/fcn/test.py", line 16, in <module>
from utils.pose_error import *
File "/dat01/zyzhou/PoseCNN-master/tools/../lib/utils/pose_error.py", line 10, in <module>
from transforms3d.quaternions import quat2mat, mat2quat
ImportError: No module named transforms3d.quaternions
When I running ./experiments/scripts/demo.sh $GPU_ID, it reports error as above.
May I ask who also meet this problem and how to solve it?

You can try this line:pip install transforms3d


Ignore all unexported fields

Is there a way to ignore all unexported fields?
I have a library where I do comparisons and I need a generic way to skip unexported fields. ie. protobuf types.

For unexported fields, take a look at https://pkg.go.dev/github.com/google/go-cmp/cmp/cmpopts#IgnoreUnexported.
For protobuf types, I highly recommend using https://pkg.go.dev/google.golang.org/protobuf/testing/protocmp#Transform instead.

I was sorta hoping for

Not needing to know the type (just a global option)
Not needing to pull in a protobuf dependency to ignore unexported proto fields

Not needing to know the type (just a global option)

There's currently no ability to do that and it's unclear that it's a good idea to do that. Newly added fields that are actually semantically relevant may accidentally be ignored in the future just because all unexported fields are ignored.
You could build it yourself with:
opts := cmp.FilterPath(func(p cmp.Path) bool {
	sf, ok := p.Index(-1).(cmp.StructField)
	if !ok {
		return false
	}
	r, _ := utf8.DecodeRuneInString(sf.Name())
	return !unicode.IsUpper(r)
}, cmp.Ignore())

Not needing to pull in a protobuf dependency to ignore unexported proto fields

If the program has a generated protobuf message, then it already depends on the protobuf module. If you're trying to build a general purpose comparison library on top of cmp, then you have to accept that being able to correctly compare all possible types is an impossible task. Option 1 is probably the best you can hope for.

@dsnet Thanks for the tip! I was also looking for a way to ignore unexpected fields recursively. Maybe worth adding this filter into the library, documenting the potential problems? Despite the issues I still find it very useful in many situations.


Add tool for querying Pelican configuration

Pelican Service:

[X] Client
[ ] Plugin
[X] Registry
[X] Director
[X] Origin
[X] Cache
[ ] Other (please give the detail)

Is your feature request related to a problem? Please describe.
It's helpful now that Pelican dumps its entire config at startup but it would be useful to directly query Pelican to see what it thinks its running config may be.
Describe the solution you'd like
condor_config_val is a venerable tool that would be useful to model this tool after. A few features that I use regularly:

Query the system for the value of a specific configuration variable
Getting a full dump of the configuration, including defaults that have not been overridden by the operator
Query the system for the value of a specific configuration variable along with the file that it's defined in (will be especially useful if #1122 is implemented
Understanding what files are used in the configuration (especially #1122 is implemented)

See #1427 for an updated description of the issue.


[bug]: BigInt issue on React Native < 0.70

Description
I'm not able to build project using modal-react-native on android with hermes engine with react native in version 0.67.5.
I followed all installation steps and added BigInt polyfill, according to migration helper comparison:
https://github.com/WalletConnect/react-native-examples/compare/deprecated-example...deprecated-migration
However, adding pollyfil doesn't change anything and I'm still getting the same error as before
WalletConnect Modal SDK version
1.0.0-rc.3
Output of npx react-native info
System:
    OS: macOS 13.4.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 91.88 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.14.0 - /usr/local/bin/node
    Yarn: 1.22.15 - ~/.yarn/bin/yarn
    npm: 8.15.1 - /usr/local/bin/npm
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK:
      API Levels: 29, 30, 31, 32, 33
      Build Tools: 29.0.2, 30.0.2, 30.0.3, 32.0.0, 32.1.0, 33.0.0
      System Images: android-29 | ARM 64 v8a, android-29 | Intel x86 Atom, android-29 | Intel x86 Atom_64, android-32 | Google APIs ARM 64 v8a, android-33 | Google Play ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.1 AI-211.7628.21.2111.8139111
    Xcode: 14.3/14E222b - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.11 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.67.5 => 0.67.5
    react-native-macos: Not Found

Expo Version (if applies)
No response
Steps to reproduce
Try to setup example Explorer v2 example:
https://github.com/WalletConnect/react-native-examples/tree/main/dapps/v2Explorer
but on react-native version lower than 0.70
Snack, code example, screenshot, or link to a repository

hey @emzet93 did you add the polyfill at the top of your file? Before importing the modal SDK.
I created an example app using react native 0.67.5 with npx<EMAIL_ADDRESS>init AwesomeProject --version 0.67.5
and the sdk is working. Are you using the a compatible version of the other libs? async-storage and svg libs specially.
https://github.com/WalletConnect/modal-react-native/assets/25931366/88d8b2fb-3457-4adc-8351-4b887ded299b
package.json:
{
  "name": "awesomeproject",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-async-storage/async-storage": "1.17.11",
    "@walletconnect/modal-react-native": "^1.0.0-rc.5",
    "big-integer": "^1.6.51",
    "buffer": "^6.0.3",
    "react": "17.0.2",
    "react-native": "0.67.5",
    "react-native-get-random-values": "1.9.0",
    "react-native-modal": "^13.0.1",
    "react-native-svg": "13.5.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "eslint": "7.14.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "0.69.1",
    "react-test-renderer": "17.0.2"
  },
  "jest": {
    "preset": "react-native"
  }
}

metro.config.js
/**
 * Metro configuration for React Native
 * https://github.com/facebook/react-native
 *
 * @format
 */

module.exports = {
  transformer: {
    getTransformOptions: async () => ({
      transform: {
        experimentalImportSupport: true,
        inlineRequires: true,
      },
    }),
  },
};

babel.config.js
module.exports = {
  presets: [
    ['module:metro-react-native-babel-preset', { useTransformReactJSXExperimental: true }],
  ],
  plugins: [
      [
          '@babel/plugin-transform-react-jsx',
          {
              runtime: 'automatic',
          },
      ],
  ],
};


FEAT: Error boundaries

Describe the solution you'd like
https://reactjs.org/docs/error-boundaries.html

Shipped in beta release.


Reflect correct name in the docs

Description
The name used in the docs doesn't match the code so I fixed it. Maybe this used to be called finished, then was renamed but the renaming was not reflected in the docs :)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


format python code using autopep8 and add pylint

Format python code using autopep8 and add pylint

@depenglee1707 @SeanHH86 we need to pay attention the below errors which are exposed by pylint changes:
% pylint --rcfile=tests/pylint.conf $(git ls-files '*.py')
************* Module llmserve.backend.llm.ft.transformer
llmserve/backend/llm/ft/transformer.py:15:0: E0611: No name 'TransformersTrainer' in module 'ray.train.huggingface' (no-name-in-module)
llmserve/backend/llm/ft/transformer.py:21:0: E0611: No name 'TransformersCheckpoint' in module 'ray.train.huggingface' (no-name-in-module)
************* Module llmserve.backend.llm.pipelines.llamacpp.processors
llmserve/backend/llm/pipelines/llamacpp/processors.py:20:15: E1136: Value 'scores' is unsubscriptable (unsubscriptable-object)

------------------------------------------------------------------
Your code has been rated at 9.96/10 (previous run: 6.02/10, +3.95)

It's ok to remove ft.

It's ok to remove ft.

@SeanHH86 Yeah, agree with you, remove the FT in https://github.com/OpenCSGs/llm-inference/pull/13

@SeanHH86 @depenglee1707 I think the PR is ready to go now. Thanks.

Thanks @SeanHH86


Worker fails to run ODATA Operation

What happened:
Synapse worker (v0.3.15) fails to execute an ODATA operation and throws the following logs.
15:40:22] warn: Synapse.Worker.Services.Processors.ODataFunctionProcessor[0]
      An error occured while executing the activity 'b257e9b1-64b3-4115-837c-c35d85586c74' (type: 'Action')/r/nDetails:/r/nSystem.InvalidOperationException: Unable to load OData adapter from assembly Simple.OData.Client.V4.Adapter
       ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
      Could not load file or assembly 'Microsoft.OData.Edm, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
...

See attachment.log

  "functions": [
    {
      "name": "get-widget-definitions",
      "operation": "https://mozart.aws-k.certs.cloud/widget-manager/odata#WidgetDefinitions",
      "type": "odata"
    },

...
"states": [
...
   {
      "name": "GetWidgetDefinitions",
      "type": "operation",
      "actions": [
        {
          "name": "GetWidgetDefinitions",
          "actionDataFilter": {
            "toStateData": "${ .widgetDefinitions }"
          },
          "functionRef": {
            "refName": "get-widget-definitions",
            "arguments": {
              "queryOptions": {
                "filter": "${ \"subject eq '\\(.context.definitionId)'\" }"
              }
            }
          }
        }
      ],
      "transition": "InitializeWidgets",
      "end": false
    },
...

What you expected to happen:
Hoping to be able to use ODATA endpoints in workflows...
How to reproduce it:
Try calling a ODATA endpoint with queryOptions...
Anything else we need to know?:
Environment:
k8s, v1.23.5

Closed by #331


Document how to build mops on CPU only despite the presence of a CUDA compiler

This might be as easy as doing CMAKE_MOPS_CUDA=OFF CMAKE_MOPS_TORCH_CUDA=OFF pip install ... (and making sure the torch wheels are CPU-only), but this needs to be documented.

Are you sure that CMAKE_XXX in the env is used to set the XXX cmake option? This happens for native options, but I'm not sure it's the case in general.


Please add mss210p to the native HK devices list

Please explain your feature request in a one or two sentences.

Please add mss210p (smart plug with power metering, see https://www.amazon.de/Funktioniert-Strommessung-Stromzähler-Balkonkraftwerk-Fernsteuerung/dp/B0BTN6Z912?th=1) to the native HK devices list.
Hardware version: 7.0.0
Firmware version: 7.3.5

Is your feature request related to a problem? Please describe.

Adding to the ignoreDevice list with the below json didn't work:
{
"name": "Meross",
"username"<EMAIL_ADDRESS>"password": "xxxxxxxxxx",
"ignoreHKNative": true,
"ignoreMatter": true,
"singleDevices": [
{
"name": "Werkzeugschranklicht",
"serialNumber": "2302232xxxxxxxxxxxxxxxxxxxxxxxxxxa3",
"ignoreDevice": true
},
{
"name": "Schreibtischlampe",
"serialNumber": "2302237xxxxxxxxxxxxxxxxxxxxxxxxxe43",
"ignoreDevice": true
}
],
"platform": "Meross"
}

Any particular Meross devices that this relates to?

Anything else?

All done!

Great work, thanks a lot!


rkt gc doesn't clean up mcs state files for exited containers (selinux enabled)

These mcs state files currently accumulate until reboot, and I don't think that's necessary unless exited containers may get restarted using the same context or something?
If gc integration of mcs state reclamation is appropriate, it's not happening currently.

Partially related: https://github.com/coreos/rkt/issues/3031.


Feature Request: Replace with contents from a file

I have a folder of examples in my project and I would like to use this plugin to replace references to these example files with the actual code, fx:
::--example: someExample.ts, 15, 32--::
Would become a code block containing lines 15-32 of the someExample.ts file.
The thing that is preventing me from accomplishing it with the current version of this plugin, is that it doesn't seem to support replacing snippets with the contents of other files.
Would you consider supporting this usecase with this plugin? Do you know other non-hacky ways of doing this?

Hi. Yes, you are right that the plugin currently doesn't support this. It only supports replacing text (matched by a Regex) with another text.
As far as I know you can include markdown files in comments like this:
/**
 * My test class.
 *
 * [[include ./test.md]]
 */
class Test {}

Does that help you?
To be honest this seems like a rather big change to the plugin. Maybe one should write a new one specifically for this task.

All right, thanks for the response. I'll either fork/create a new plugin or just link to the examples using hyperlinks instead.

Another solution came to my mind: One could define a function instead of the text that should be used as the replacement. Then the function could  do the work (reading things from a file etc.). But I'm not sure if TypeDoc can be configured using a .js instead of a .json file. I will have to investigate this further.

That would be a lot more powerful and still pretty clean.
Maybe you could define it in a .json and provide a path to a ts/js file? Something like:
"replaceText": {
    ...
    "includeFunctions": "/some/path/to/functions.ts",
    "replacements": [
        {
            "pattern": "somePattern",
            "replace": "functionDefinedInIncludedFile"
        },
    ]
}

TypeDoc does allow JavaScript configuration files so this should be doable. I will fiddle around with it and let you know.

Thanks for reporting back. Glad to hear that you found a solution.

Released in 3.0.0


[Feature Request] Deploy Uniffle on Kubernetes

It's good to have a Kubernetes operator to help us deploy Uniffle on Kubernetes. We can automate our system operations.  This issue track the pull requests about Kubernetes operator.

@wangao1236 Do you want to help us?

Thanks, I'll submit some PR about dockerfile and operator of Uniffe.

I want to join in this issuses dev,I am currently working as an Apache Flink Operator developer, and I believe my experience will be helpful to our project @jerqi

I want to join in this issuses dev,I am currently working as an Apache Flink Operator developer, and I believe my experience will be helpful to our project @jerqi

Thanks, you're welcome. We have developed this feature in our internal company for  a period time. And @wangao1236 is my colleague. He will share our design document and give you some tasks. And you can also review his pull request and give us some advice.

I have written a design document, please help to review it: https://docs.google.com/document/d/1dlTvC0I-1WDNS6MOZp_0KB6mR3qr-EUiEJ11eeI828g/edit#heading=h.e0k4tcq0il5a
@jerqi @czy006

@wangao1236 Great work!

I have some experience in operator development(our internal elastic Yarn operator), maybe i can join this ticket

I have some experience in operator development(our internal elastic Yarn operator), maybe i can join this ticket

Welcome~

Left some comments. Thanks for your great work @wangao1236.
Besides, i want to know which language will be used when implementing this operator? Java or Golang.
Do we have a POC? Maybe it benefit us to understand your design.

Left some comments. Thanks for your great work @wangao1236.
Besides, i want to know which language will be used when implementing this operator? Java or Golang. Do we have a POC? Maybe it benefit us to understand your design.

We use golang to develop it. Sorry, there is currently no public POC environment.


Add Amazon Payment icon. Update readme and gemfile

New Amazon Payments icon in documentation
Jekyll exploded on me with the current readme docs, so updated the gem file and instructions to accommodate new versions of Jekyll

@stevebosworth @t-kelly

Other than failing tests LGTM :+1:

^ + :+1:

Tests don't work on the gh-pages branch (that houses the docs) so we can ignore them.


Issues with DMN Editor on macos

Describe the Bug

The modeler crashes when I try to change the id of the decision table.
The modeler gui doesn't refresh when I press the '+' button or remove from the context menu  on the dmn table row or columns, unless I switch to  "View DRD" and back.
While writing text to  the cells in the rows of the dmn table, after about 1 second the value resets unless I tab out the cell before the 1 second is elapsed.

Stack trace of 1.:
[/Users/zeller/Desktop/diagram_2.dmn] Cannot use 'in' operator to search for 'id' in undefined
    at file:///private/var/folders/x7/r3r9jthn3kg8_xqfv0z7rwdr0000gp/T/AppTranslocation/AE7E0F95-DEE5-437D-B441-F972F517C41F/d/Camunda%20Modeler.app/Contents/Resources/app.asar/public/7.7.js:8:187829
    at oldProperties (webpack:///node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js:69:25)
    at shouldSkipUpdate (webpack:///node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js:50:15)
    at file:///private/var/folders/x7/r3r9jthn3kg8_xqfv0z7rwdr0000gp/T/AppTranslocation/AE7E0F95-DEE5-437D-B441-F972F517C41F/d/Camunda%20Modeler.app/Contents/Resources/app.asar/public/1.1.js:1:50614
    at listener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:365:33)
    at _invokeListener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:350:23)
    at _invokeListeners (webpack:///node_modules/diagram-js/lib/core/EventBus.js:311:23)
    at fire (webpack:///node_modules/diagram-js/lib/command/CommandStack.js:346:28)
    at file:///private/var/folders/x7/r3r9jthn3kg8_xqfv0z7rwdr0000gp/T/AppTranslocation/AE7E0F95-DEE5-437D-B441-F972F517C41F/d/Camunda%20Modeler.app/Contents/Resources/app.asar/public/1.1.js:1:90220
    at fn (webpack:///node_modules/diagram-js/lib/command/CommandStack.js:367:4) [ error ]
[/Users/zeller/Desktop/diagram_2.dmn] Cannot use 'in' operator to search for 'id' in undefined
    at file:///private/var/folders/x7/r3r9jthn3kg8_xqfv0z7rwdr0000gp/T/AppTranslocation/AE7E0F95-DEE5-437D-B441-F972F517C41F/d/Camunda%20Modeler.app/Contents/Resources/app.asar/public/7.7.js:8:187829
    at oldProperties (webpack:///node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js:69:25)
    at shouldSkipUpdate (webpack:///node_modules/dmn-js-shared/lib/features/modeling/behavior/IdChangeBehavior.js:50:15)
    at file:///private/var/folders/x7/r3r9jthn3kg8_xqfv0z7rwdr0000gp/T/AppTranslocation/AE7E0F95-DEE5-437D-B441-F972F517C41F/d/Camunda%20Modeler.app/Contents/Resources/app.asar/public/1.1.js:1:50614
    at listener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:365:33)
    at _invokeListener (webpack:///node_modules/diagram-js/lib/core/EventBus.js:350:23)
    at _invokeListeners (webpack:///node_modules/diagram-js/lib/core/EventBus.js:311:23)
    at fire (webpack:///node_modules/diagram-js/lib/command/CommandStack.js:346:28)
    at file:///private/var/folders/x7/r3r9jthn3kg8_xqfv0z7rwdr0000gp/T/AppTranslocation/AE7E0F95-DEE5-437D-B441-F972F517C41F/d/Camunda%20Modeler.app/Contents/Resources/app.asar/public/1.1.js:1:90220
    at fn (webpack:///node_modules/diagram-js/lib/command/CommandStack.js:367:4) [ error ]

Steps to Reproduce
Follow the DMN tutorial, try setting the id of the table, edit the cells/columns.
Expected Behavior

Do not crash and update the id.
Refresh the gui
Do not overwrite the value of the cells while I'm typing.

Environment

OS: Macos 10.15.3
Camunda Modeler Version: 3.7.2

Thanks for reporting! This seems to be a duplicate of https://github.com/camunda/camunda-modeler/issues/1769. Maybe you can try out the 4.0.0-alpha.1 version of the application? The bug is not visible there anymore.

Thanks, I can confirm that the issue is not present it this version. Are there any known issues with this alpha release I should be aware of?

Yes, cf. changelog.
TLDR: You should not use the alpha release in production, as it exports DMN 1.3 (not compatible with stable, released versions of the Camunda BPM platform).

Closing this issue as a duplicate.

@nikku Thanks, in the meantime which editor version can I use to avoid the issue and use the model with the workflow engine?

Camunda Modeler 3.5 is a version that you can safely use.


Fix invalid joinColumn in ClassMetadata::associationMappings

Fix getting Notice: Undefined index: user_id for a user field association

Please re-send this against master. Also, tests are absolutely needed, as well as an example of where this is happening.

@gadelkareem is this still an issue?


Article not up to date

This is regarding the statement: "You need to be assigned permissions before you can perform these procedures. To add, modify, and delete anti-spam policies, you need to be a member of the Organization Management or Security Administrator role groups."
This is not complete since you can do the same actions with the Rbac Hygiene Management role group as per Product group investigation:
https://o365exchange.visualstudio.com/IP Engineering/_workitems/edit/1524463

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 61dc3925-c049-fd93-ac0a-d9c03e8bbdb4
Version Independent ID: 6cb1a261-061b-366e-c7fb-9b5b0ad552bb
Content: Configure spam filter policies - Office 365
Content Source: microsoft-365/security/office-365-security/configure-your-spam-filter-policies.md
Service: o365-seccomp
GitHub Login: @chrisda
Microsoft Alias: chrisda

@JeroenDronkers, confirmed. The Hygiene Management role group wasn't even documented in the Exchange Online permissions topic. That role group has the Transport Hygiene management role, which basically gives you access to any/app anti-spam/anti-virus protection features.
Thanks for the feedback.
Closing


[FEATURE] Add custom scrollbar

Description
I want to add custom scrollbar to the LinkFree project and replace the existing normal one.
I'll be editing the global.css page in this case.
Screenshots

Additional information
You can suggest me the color of the custom scrollbar.

Thanks for the idea Susmita, but I do not think we should customise the scroll bars, this is not good for accessibility - in my opinion we should use the theme of the users device and settings for this


For structured output via response_format remove the restriction of using jsonschema package.

Is your feature request related to a problem? Please describe.

In the latest implementation for structured output the ChatCompletionResponseFormatJSONSchema  struct accepts field Schema as a type of jsonschema.Definition this makes it hard to integrate with other json schema libraries or passing our own raw json schema.

Describe the solution you'd like

Make the type of schema in ChatCompletionResponseFormatJSONSchema to any, as it is done in FunctionDefinition. In FunctionDefinition we can pass anything in Parameters as long as it is json marshallable

Closing the issue since https://github.com/sashabaranov/go-openai/pull/819 fixes it


Should @type be "final"

Currently, if you query for @id, @value or @index, you get the literal value back, rather than a QueryNode(s). Currently querying for @type returns QueryNode  - shouldn't it also return the value instead? If there's more than one @type, an array of the literal values could be returned.

Hmm. Probably would work. What do you think @gareth-robinson ?

Yes, that would seem to be the behaviour we should expect.

@gareth-robinson could you check this commit for me?

Yep, looks fine


CSS @Import directive does not work in Polymer 2 Elements in Chrome and bleeds Firefox

Description
The css @import directive does not work properly in shadow dom templates for Polymer 2 Elements, but works as expected when using a native HTMLElement inherited component
The details of the problem are documented in the plunker document down below. Basically, it seems that @import directives only work when there is no semicolon included after it
If you look at at the same demo in firefox you can see the styles imported in the polymer elements are affecting the style of the sibling element with the example class, as well
If needed I can break these up into two issues if needed
Live Demo
http://plnkr.co/edit/PCx2LHplKlPJ1LIV0EA5?p=preview
Steps to Reproduce
Chrome bug repro

Create an external style called external.css to be used in an element
Add a style tag inside the template with exactly the content of @import "external.css" (no semicolon)
Imported styles function as expected
Add a semicolon so the style tag content is @import "external.css;"
Imported styles do not show up

Firefox bleed repro

create an external style called external.css to be used in an element that styles a .example element
Add css import in the Polymer element to import the external style sheet
Add a sibling element next to the polymer element instance with the class example
The styles from the external sheet, despite being imported into the polymer element, are applied to the sibling element as well

Browsers Affected

[x] Chrome
[x] Firefox
[ ] Edge
[ ] Safari 9
[ ] Safari 8
[ ] IE 11

Versions
Polymer 2.x

Right now only styles in <style> tags are supported (and also <link rel="import"> which is likely to be deprecated). In the Shadow DOM spec, <link rel="stylesheet"> is described but might be not so easy to polyfill.

It looks like this is the relevant issue:
https://github.com/PolymerElements/iron-flex-layout/issues/88#issuecomment-203692575
It makes sense. At the risk of just recreating the conversation from that thread, is there an official stance on how to import external style sheets without wrapping the css source in a dom-module to import? The <link rel="import" type="css" href="..."> is marked as "deprecated", but there's no reasonable solution for it now except for wrapping existing style sheets (often built for other libraries) in a dom-module, which feels a little gross.
The following discussions, though, basically say that the type="css" approach is expected to continue to be supported:
https://github.com/Polymer/polymer/issues/3837
https://github.com/Polymer/polymer/pull/4344
So the mixed signals are a little confusing. Can we expect that by the time it's actually deprecated there will be a suitable replacement for it's functionality that does not require modifying style source to include it in a style-module? Or is it actually ever going to be deprecated?

@gkjohnson You can assume you can safely use <link rel="import" type="css" href="..."> for the duration of Polymer 2.0 (i.e., we have no plans to remove it prior to the next major breaking change of the library).  As for the future, as we explore native ES module support in the browser, the solution may need to change along with that.
re: Chrome bug repro, this appears to be a shadycss apply-shim issue; this updated plunkr that does not load the apply shim shows the correct rendering for the @import with the semicolon on Chrome. I've opened a bug on shadycss to track this.
re: Firefox bleed repro, as noted the shadycss shim does not currently support @import syntax.  I've added a note to the shadycss documentation to this effect:

External stylesheets loaded via <link rel="stylesheet"> within a shadow root or
@import syntax inside a shadow root's stylesheet are not currently shimmed by
the polyfill.  This is mainly due to the fact that shimming them would require
a fetch of the stylesheet text that is async cannot be easily coordinated with
the upgrade timing of custom elements using them, making it impossible to avoid
"flash of unstyled content" when running on polyfill.

@kevinpschaaf

You can assume you can safely use  for the duration of Polymer 2.0 (i.e., we have no plans to remove it prior to the next major breaking change of the library). As for the future, as we explore native ES module support in the browser, the solution may need to change along with that.
It seems chrome 59.x with native support for components, ignores an import with rel import and type css
could not reproduce the issue on other browsers, with polyfills in place.
Using polymer 2.0

It sounds like you're putting the <link rel="import" type="css"> inside your <template>.  It needs to be outside the template but inside the <dom-module> for the element, since we rely on it loading to be able to extract the css text for polyfilling.  See docs here: https://www.polymer-project.org/2.0/docs/devguide/style-shadow-dom#external-stylesheets

yep yep :) . It is outside the shadow tree and inside the dom module as advocated on polymer-project docs.
<dom-module id="shared-styler">
    <link rel="import" type="css" href="p_s_m_1.css">
    <template id="shared-style-mod-one">
<!-- content-->
    </template>
</dom-module>

This is in chrome 59 alone with native web component support.
The import works fine with forced platform polyfills

+1. A clarification on Polymer's future plan in this regard would be very appreciated.

Create style module and copy paste the whole css content into that module.
It works like charm...


Want to capture the "div" which is created after scrolling the page

Subject of the issue
I want to capture the items from a site, but half of the items are loaded when I scroll the page(link of the page : https://www.91mobiles.com/mobile-price-list-in-india?page=1 ). A new div ( page_scroll_1) is created after I scroll the the page, and the items I want to capture are there in that div.
I have tried ".scrollTo" method from 'x-ray-phantom' but It didn't work
Your environment

version of node: 16.13.0
version of npm: 8.1.0

Steps to reproduce
const Xray      = require('x-ray');
const puppeteer = require('puppeteer');
var phantom     = require('x-ray-phantom');

var phantom_opts = {
    webSecurity: false,
    images: false,
    weak: false
};

var x = Xray().driver(phantom(phantom_opts, function (nightmare, done) {
    done
        .useragent("Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36")
        .goto(nightmare.request.req.url)
        .scrollTo(0, 500)
        .wait(3000)
        .scrollTo(0, 1000)
        .wait(3000)
        .scrollTo(0, 1500)
        .wait(3000)
        .scrollTo(0, 2500)
        .wait(3000)
        .scrollTo(0, 3000)
        .wait(3000)
        .scrollTo(0, 3500)
        .wait(3000)
        .scrollTo(0, 4000)
        .wait(3000)
}));

x('https://www.91mobiles.com/mobile-price-list-in-india?page=1', '.finder_snipet_wrap',[{
  mobile_model: '.name',
  Price: '.price',
  Url: '.name@href'
}])
.write('results.json')

Expected behaviour
It should capture all the item with '.finder_snipet_wrap'
Actual behaviour
Capture's only half items, and skips all the other '.finder_snipet_wrap' that is being created after page scrolling

Did you figure this out? I have a very similar issue.


Implement setHiddenCountLabel for ABClusterAnnotationView

Implement setHiddenCountLabel for ABClusterAnnotationView, if we setting annotationView.image = someImage...

@spbvasilenko thanks for doing this! Looking at your commit, I realized maybe it is best to just make the countLabel a public readonly property. This way someone could tweak the text font, color, or make it hidden directly.
Thoughts?

@bigfish24 yup, idea to make the countLabel a public property as well

Ok, I committed the change to make the countLabel public: https://github.com/bigfish24/ABFRealmMapView/commit/a34bfef6e47aeb6edb9fb55821237b6d582386ee
I will create a new Cocoapods release with this.

Great! Thanks!