Improve test logging by removing a noisy message

The message Using Meilisearch server on http://localhost:7700 for running tests. makes it harder to understand the test running logs.
➜  meilisearch-dart git:(feature/tenant-token) dart test --concurrency=1
00:00 +0: test/get_keys_test.dart: Keys When has master key responds with all keys
Using Meilisearch server on http://localhost:7700 for running tests.
00:00 +1: test/get_keys_test.dart: Keys When has master key gets a key from server by key/uid
Using Meilisearch server on http://localhost:7700 for running tests.
00:00 +2: test/get_keys_test.dart: Keys When has master key creates a new key
Using Meilisearch server on http://localhost:7700 for running tests.
00:00 +3: test/get_keys_test.dart: Keys When has master key creates a new key with expiresAt
Using Meilisearch server on http://localhost:7700 for running tests.
00:00 +4: test/get_keys_test.dart: Keys When has master key updates a key partially
Using Meilisearch server on http://localhost:7700 for running tests.
00:00 +5: test/get_keys_test.dart: Keys When has master key updates key expiresAt
Using Meilisearch server on http://localhost:7700 for running tests.
00:00 +6: test/get_keys_test.dart: Keys When has master key deletes a key

Without it, we just have a compact log that just shows up the errors and all the other information is hidden (much better).
The idea is to remove this message for every test call, but print once before the whole test suite.
I know we have the setUpAll hook, but to be feasible to use it, I think we will need to improve the whole test suite.

To check the difference:

Just submitted a PR for this.
I passed all tests through a main testing_suite_test.dart file, allowing usage of the setUpAll hook to log the "Using Meilisearch server..." message only once, no matter which tests are run. I also added a dart_test.yaml configuration file to allow tests to be grouped and run by tags.
Running the analytics tests before my changes could be done like this:
flutter test test/analytics_test.dart

After my changes, running the analytics tests can be done like this:
flutter test --tags "analytics"

I hope this solution works for y'all. If there is anything you'd like me to change, I'd be happy to keep working on this issue.
This is my first attempt at an open-source contribution, so any tips would be greatly appreciated.  Cheers!🥂

@brunoocasali is this issue still happening ?
I am getting
dart run test --concurrency=1
00:31 +109: All tests passed!

and I can't see any noisy messages

I think it was related to the dart version, and it seems to be fixed now since we now have Dart v2.15 as the minimum.


Research multiple cursor after find/replace in selection

NB https://stackoverflow.com/questions/tagged/vscode - would have posted here but 😬...

Hi all,
Hope you're well
I make use of this feature regularly, using search find/replace:
⇧⌘L Select all occurrences of current selection

I would like to perform the same action combined with "Find in selection" (i.e. I want to select all occurrences in a specific selection) but for the life of me I'm unable to achieve this
Can anyone else perform this action, if yes I'd love to hear how?
Hope this is clear and to hear back
Thanks (in advance)
Related:
https://github.com/Microsoft/vscode/issues/9444
https://github.com/Microsoft/vscode/issues/9584
https://github.com/Microsoft/vscode/issues/21792
https://github.com/Microsoft/vscode/issues/26417
https://github.com/Microsoft/vscode/issues/27083

This is currently not supported but there is a feature request for this feature.
Closing as a duplicate of #21792


Updated year on hkdf.c

Updated the year on the license disclaimer. @bbbrumley
CLA: trivial

Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

Generally speaking updating the copyright year in files like this is not normally necessary. We have a script that does this when we create a release from a branch (i.e. if a year is wrong it will be corrected when the contents of the master branch become the 3.4 release at some point in the future).
https://github.com/openssl/tools/blob/master/release-tools/do-copyright-year

Thanks both for the feedback
@cm3173 In light of the comments, probably best to close this one out
Nevertheless, thank you for submitting your PR

I will be closing it now. Thank you for working on this great project :)


Failed to find Build Tools revision 23.0.2

I got this error on react-native 0.47.0

hey!! Just resolved the same issue that I had!! this is because the compiled version of Android is 23.0.3 where the lib required a minimum of 25.0.0! so to resolve it :
search in whole project as "23.0.2" and you should find something like this:
compileSdkVersion 23
buildToolsVersion "23.0.2"
set compileSdkVersion to 25 and buildToolsVersion as "25.0.0" or "25.0.3" or check your default version in your android studio by creating a project in app level build.gradle!!
this should work!!
if you still same issue, update your android studio and set up react native accordingly and try again!!
Hope it helps!!

Thanks. Solved my problem.


Rename extension, update assets & documentation

I hope today finds you well! This issue is being opened to inquire as to if you would be open to renaming your extension here on GitHub to reference Camunda Platform 7 rather than Camunda BPM. (For example: camunda-platform-7-mail) This change would also likely impact any screenshots you have in the README that reference Camunda BPM or older versions of Camunda Platform, and would need to also be updated throughout the repo's documentation as a whole. You can also make use of Shields.io badges to indicate which version of Camunda your extension is compatible with.
While it is not a requirement that you rename your extension to align with Camunda Platform 7, we would greatly appreciate it if you could make these changes, and merge them anytime after April 12th, 2022.
if you have any questions or require any assistance, please do not hesitate to reach out to @camunda-community-hub/devrel! :)

Done.


TLS/SSL Secure Socket

Greate work! I was looking for ages to avoid the interface abstractions and instead a PCL library for sockets. Thank you!
So, any changes on short term to have a TLS/SSL Secure Socket implementation supported?
Need any help? We can discuss and maybe I can help with code.
Thanks!

As far as I can check on the code, you are lacking the implementation of SslStream on it... If you need any help please let me know and I'm glad to make a PR.
Thanks

Yes, I had also been looking for a way to avoid working with interface abstractions for a while, so finally bit the bullet and put together this library.
TLS/SSL is not my area of expertise, but if you want to give your thoughts on the changes needed or put together a PR that would be awesome! Let me know what you think and if you need anything from me.
Ryan

OK, I'll have a look over the weekend. I don't understood correctly the way you made several project behind a single PCL and then "proxed" then with a dumb PCL but I know it is working and well. My unique point now is understood that, and then I will have a look on how to implement the SslStream. Looks like you not actually implementing anything in the PCL, they are just proxies. If I'm correct, we should be able to easily proxy the other missing classes since there is a implementation for each one of them in the specific platform... If you can put together how you designed the solution, that would help me a lot.
Thank you.
Gutemberg

Sure -
The technique being used here is often referred to as the "bait and switch pcl method". If you google this you will find a few blog posts that explain the topic. I can explain a bit more later but the blog posts should set you in the right direction. In terms of what the implications are:

any class or method you want the end user to be able to code against must be defined in the Sockets.Plugin project

every platform project must implement the same classes and methods, but can include anything extra they need to implement the required functionality

in sockets-for-pcl, you usually don't need to implement code in the platform projects, only "Sockets.Implementation.Net" and "Sockets.Implementation.WinRT", as this is an abstraction over the .NET and WinRT frameworks and the code is the same between all .NET platforms (iOSx2, Android, Windows Desktop), and all WinRT platforms (WinPhonex2, Windows Store). The files from the implementation projects are linked in to the actual platform projects.

because of the above, if you create any new files in the Sockets.Implementation projects you must link them in to their respective platform projects using Visual Studio.

To summarise that:

Add new classes and methods to Sockets.Plugin
Implement the new methods against .NET in Sockets.Implementation.Net and against WinRT in Sockets.Implementation.WinRT
Link (not copy) any new files into each platform's project

Let me know if you have any questions!

Thank you! I'm cloning right away and checking what I can do, will get in touch. Thanks!

Hello Ryan,
Thank you for the explanation and for the great design of the solution. Now I got the idea that "There is no PCL at all!" :)
So, I've created a PR with the implementation of SSL/TLS on your project. It was kept basic just supporting server certificate that is 90% of the cases.
Its optional for current users of your NuGet package and will not break any users since I'm using a simple bool optional parameter on ConnectAsync that has its default value to false, so no one will be affected.
I really appreciate if you can merge this PR and make it available on a new release on NuGet package so I can use it on my project.
Thanks!
Let me know if you have any problems.
Gutemberg

Thanks, this looks good! I'm pleased that the change is non-breaking for existing users.
Can you explain a little more about the support for server certificate vs client certificate and what that means? My understanding is that it is validating server certificates but does not support situations which require client to provide a certificate which as you say is very rare. Is that correct? I'd also like to know what other kinds of validations would come under the TODO comment you have.
I have a few specific comments which I'll add now in line with the PR - once you've confirmed these I'll merge and publish a prerelease package you can use to make sure everything works.
Great stuff and very quick!

Ok, I have added my comments!
I am not very familiar with SecureStream  so some of my assumptions may be wrong, but I think the changes are all very small. Because I haven't brought in any logging dependency, I'd prefer to keep any Console.WriteLine's out but we can leave them in for prerelease if it will help with your testing. Let me know what you think and once you've gone through I'll do the package up for you.
Ryan

Sure, no problem.
So, about the certificates... Imagine that in the HTTP scenario, only the server has the certificate, right? And if the user don't trust the issuer, a warning alert is presented by the browser. The same happens on RAW Sockets.
The client certificate requires that the client has a certificate that the server trust, along with the server certificate itself. It is a pain to install a certificate in a mobile device. It is usually used for old technologies that doesn't have a CA chain easily updatable.
I'm a bit noob on Git so, what should I do now? Make the changes here and add a new PR?
Thanks

Ok, so it's similar to HTTP like you say. Cool. I'll merge and pack now :tada:

Ok, I've added a prerelease version of sockets-for-pcl to nuget with the secure support added: 1.1.4-pre. I had to add a small change in to account for the fact that WP8 has a different SocketProtectionLevel enum, it should be the correct value.
Please enable installation of prerelease packages and give it a try. Thanks for your help!

Thanks Ryan,
I’m testing right now. Will get in touch with you soon with a feedback.
Thanks
From: Ryan Davis<EMAIL_ADDRESS>Sent: Sunday, February 8, 2015 5:39 AM
To: rdavisau/sockets-for-pcl
Cc: Gutemberg Ribeiro
Subject: Re: [sockets-for-pcl] TLS/SSL Secure Socket (#4)
Ok, I've added a prerelease version of sockets-for-pcl to nuget with the secure support added: 1.1.4-prehttps://www.nuget.org/packages/rda.SocketsForPCL/1.1.4-pre. I had to add a small change in to account for the fact that WP8 has a different SocketProtectionLevel enum, it should be the correct value.
Please enable installation of prerelease packages and give it a try. Thanks for your help!
—
Reply to this email directly or view it on GitHubhttps://github.com/rdavisau/sockets-for-pcl/issues/4#issuecomment-73400583.

Hello Ryan,
Completely tested. Works like a charm. You can promote it now to release.
Thank you!

Hey Gutemberg,
Thanks so much for your work developing and testing the TLS functionality!
I've pushed the prelease package out as 1.1.4 and it's available on NuGet now.
Thanks again for your help.
Ryan

No problem, you can reach me on skype at the same alias as here. As soon as I have time, I'll get back to check the client certificate and add the support here.
Thanks

Great! I'll look forward to it :tada:


How do i rotate voxel

I am making a program to generate voxel terrain
How to rotate textured blocks
Like the logs in minecraft, they can be placed in different rotations with different angles

Hadn't even thought of this, you can't do this as of now, unless you create diffrent voxels of each orientation, which doesn't sound practicle. It's definitely a good idea to implement a voxel orientation sytem though, I'm reworking the plugin right now, so I'll see if I can cook something up.

you'll be able to see progress #36

Thank you

I think it would also be useful to be able to rotate a voxel sides colors in voxelset editor


MAINT: make isinstance check in stats._distn_infrastructure more ro…

…bust
This check for a list return type from atleast_1d may fail if in NumPy 2.0 the return type will be tuple rather than list (xref https://github.com/numpy/numpy/pull/25570). Also, for PyTorch it's tuple, and in general tuple seems preferred here (due to immutability).
Checking for both list and tuple makes the code future-proof (also for array API support), and only costs a few tens of nanoseconds more (performance-wise this line doesn't matter). So it's useful to make the change now.

lint failure is unrelated.

LGTM, pushing the green button is a no-brainer here. Thanks Ralf, merged


Update grant-mssp-access.md

I updated to reflect support for delegated access for MDE in M365 Security Center.
I overwrote the previous Defender for Endpoint references - TBD if to have two pages (one for MDE and the other for MDE in M365D). Since this branch doesn't overwrite the original, no harm done

What is the purpose of this change? Some of the changes are not accurate and will confuse.
We are only rolling out the new Microsoft 365 Defender experience and the existing is still available. At a later phase some of those changes will make sense, but they are not just yet.

And once they do, then we will do a deeper refresh of all pages vs. a sporadic update of a single page.

Taking offline with Michael.


openwebrtc both Native and Hybrid is not connecting call in iOS

2017-03-31 10:24:43.588404 NativeDemo[255:19494] [DYMTLInitPlatform] platform initialization successful
2017-03-31 10:24:43.771320 NativeDemo[255:19436] [OpenWebRTC] initialized correctly!
2017-03-31 10:24:44.014557 NativeDemo[255:19436] Video settings: {
bitrate = 1024000;
framerate = 25;
height = 480;
mode = VGA;
width = 640;
}
2017-03-31 10:24:44.220099 NativeDemo[255:19436] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-03-31 10:24:44.221203 NativeDemo[255:19436] [MC] Reading from public effective user settings.
2017-03-31 10:24:44.326523 NativeDemo[255:19436] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using<PHONE_NUMBER>_PortraitChoco_iPhone-Simple-Pad_Default
2017-03-31 10:24:44.736397 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: -90
(:255): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
2017-03-31 10:25:02.034380 NativeDemo[255:19436] Joining room with ID: 522
[video/capture] Front Camera
2017-03-31 10:25:02.142385 NativeDemo[255:19436] [EventSource] response => <NSHTTPURLResponse: 0x174033120> { URL: http://<IP_ADDRESS>:8080/stoc/522/CA2F00E4-1AFC-4421-A81B-1082CB3FC14A } { status code: 200, headers {
"Cache-Control" = "no-cache, no-store";
Connection = "keep-alive";
"Content-Type" = "text/event-stream";
Date = "Fri, 31 Mar 2017 17:26:42 GMT";
Expires = 0;
Pragma = "no-cache";
"Transfer-Encoding" = Identity;
} }
2017-03-31 10:25:02.142814 NativeDemo[255:19436] [EventSource] received data: :
[video/capture] Back Camera
[audio/capture] Default audio input
2017-03-31 10:25:02.166851 NativeDemo[255:19501] gotLocalSources: (
{
mediaType = video;
name = "Front Camera";
source = "<00e74202 01000000>";
},
{
mediaType = video;
name = "Back Camera";
source = "<90e64202 01000000>";
},
{
mediaType = audio;
name = "Default audio input";
source = "<70e74202 01000000>";
}
)
2017-03-31 10:25:02.167100 NativeDemo[255:19501] Found cameras: (
"Front Camera",
"Back Camera"
)
2017-03-31 10:25:02.167340 NativeDemo[255:19501] [OpenWebRTC] Setting video rotation to: 0
2017-03-31 10:25:13.272738 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: 0
2017-03-31 10:25:27.409062 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: -90
2017-03-31 10:25:27.811615 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: 0
2017-03-31 10:25:29.105183 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: -90
2017-03-31 10:25:29.817366 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: 0
2017-03-31 10:25:30.819395 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: -90
2017-03-31 10:25:31.521708 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: 0
2017-03-31 10:25:32.213970 NativeDemo[255:19436] [EventSource] received data: :
2017-03-31 10:25:32.420515 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: -90
2017-03-31 10:25:33.020468 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: 0
2017-03-31 10:26:01.890365 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: -90
2017-03-31 10:26:02.199739 NativeDemo[255:19436] [EventSource] received data: :
2017-03-31 10:26:02.588242 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: 0
2017-03-31 10:26:03.085618 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: -90
2017-03-31 10:26:32.181764 NativeDemo[255:19436] [EventSource] received data: :
2017-03-31 10:26:36.377434 NativeDemo[255:19436] [EventSource] received data: :
2017-03-31 10:26:36.380025 NativeDemo[255:19436] [EventSource] received data: event:join
data:AA9FA12A-7016-450E-9D9C-7D078AD7141E
2017-03-31 10:26:36.380617 NativeDemo[255:19436] peer  joinedRoom: 522
2017-03-31 10:26:36.380874 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: -90
2017-03-31 10:26:36.382185 NativeDemo[255:19436] [PeerServerHandler] Sending orientation msg: {"orientation": 0}
2017-03-31 10:26:36.392050 NativeDemo[255:19436] [EventSource] received data: event:user-AA9FA12A-7016-450E-9D9C-7D078AD7141E
data:{"orientation": 0}
2017-03-31 10:26:36.392573 NativeDemo[255:19436] Rotating remote view to: 0
2017-03-31 10:26:36.392682 NativeDemo[255:19436] [OpenWebRTC] Setting video rotation to: 0
(:255): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
2017-03-31 10:26:36.417225 NativeDemo[255:19436] [PeerServerHandler] Message successfully sent to peer
2017-03-31 10:26:45.210829 NativeDemo[255:19436] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer
2017-03-31 10:26:45.211013 NativeDemo[255:19436] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer????
2017-03-31 10:26:45.211105 NativeDemo[255:19436] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer: NO
2017-03-31 10:26:45.978328 NativeDemo[255:19501] ############################# got_dtls_certificate
2017-03-31 10:26:45.978766 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer
2017-03-31 10:26:45.978867 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer????
2017-03-31 10:26:45.979108 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer: NO
2017-03-31 10:26:45.990729 NativeDemo[255:19501] ############################# got_dtls_certificate
2017-03-31 10:26:45.990959 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer
2017-03-31 10:26:45.991296 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer????
2017-03-31 10:26:45.991342 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer: NO
2017-03-31 10:26:45.996900 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> Got local candidate
2017-03-31 10:26:45.997533 NativeDemo[255:19501] CANDIDATE: candidate:1 1 UDP<PHONE_NUMBER> <IP_ADDRESS> 60052 typ host
2017-03-31 10:26:45.998192 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> Got local candidate
2017-03-31 10:26:45.998624 NativeDemo[255:19501] CANDIDATE: candidate:2 1 TCP<PHONE_NUMBER> <IP_ADDRESS> 0 typ host tcptype active
2017-03-31 10:26:45.999563 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> Got local candidate
2017-03-31 10:26:46.000103 NativeDemo[255:19501] CANDIDATE: candidate:3 1 TCP<PHONE_NUMBER> <IP_ADDRESS> 49569 typ host tcptype passive
2017-03-31 10:26:46.000686 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> Got local candidate
2017-03-31 10:26:46.001258 NativeDemo[255:19501] CANDIDATE: candidate:4 1 UDP<PHONE_NUMBER> <IP_ADDRESS> 52756 typ host
2017-03-31 10:26:46.001451 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> Got local candidate
2017-03-31 10:26:46.001823 NativeDemo[255:19501] CANDIDATE: candidate:5 1 TCP<PHONE_NUMBER> <IP_ADDRESS> 0 typ host tcptype active
2017-03-31 10:26:46.002583 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> Got local candidate
2017-03-31 10:26:46.002769 NativeDemo[255:19501] CANDIDATE: candidate:6 1 TCP<PHONE_NUMBER> <IP_ADDRESS> 49570 typ host tcptype passive
2017-03-31 10:26:49.022225 NativeDemo[255:19501] ############################# candidate_gathering_done
2017-03-31 10:26:49.022393 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer
2017-03-31 10:26:49.022482 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer????
2017-03-31 10:26:49.022568 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer????
2017-03-31 10:26:49.022650 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer: NO
2017-03-31 10:26:49.022778 NativeDemo[255:19501] ############################# candidate_gathering_done
2017-03-31 10:26:49.022860 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer
2017-03-31 10:26:49.022939 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer????
2017-03-31 10:26:49.023557 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer????
2017-03-31 10:26:49.023643 NativeDemo[255:19501] >>>>>>>>>>>>>>>>>>>>>>>>>> can_send_offer: YES
2017-03-31 10:26:49.087025 NativeDemo[255:19501] Offer generated:
{
sdp = "v=0
\no=-<PHONE_NUMBER>075465000 1 IN IP4 <IP_ADDRESS>
\ns=-
\nt=0 0
\nm=video 9 UDP/TLS/RTP/SAVPF 103 100 120
\nc=IN IP4 <IP_ADDRESS>
\na=rtcp-mux
\na=sendrecv
\na=rtpmap:103 H264/90000
\na=rtpmap:100 VP8/90000
\na=rtpmap:120 RTX/90000
\na=fmtp:103 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
\na=fmtp:120 apt=100;rtx-time=200
\na=rtcp-fb:100 nack
\na=rtcp-fb:103 nack pli
\na=rtcp-fb:100 nack pli
\na=rtcp-fb:103 ccm fir
\na=rtcp-fb:100 ccm fir
\na=ice-ufrag:aGvu
\na=ice-pwd:SPA9bhcixoF6hb5K/Aha2X
\na=candidate:1 1 UDP<PHONE_NUMBER> <IP_ADDRESS> 60052 typ host
\na=candidate:2 1 TCP<PHONE_NUMBER> <IP_ADDRESS> 0 typ host tcptype active
\na=candidate:3 1 TCP<PHONE_NUMBER> <IP_ADDRESS> 49569 typ host tcptype passive
\na=fingerprint:sha-256 5A:13:0D:67:51:94:FD:1D:E1:41:7E:67:B3:BB:CD:AA:16:A8:A4:F2:67:65:37:CF:DC:56:56:E1:B9:71:DA:31
\na=setup:actpass
\nm=audio 9 UDP/TLS/RTP/SAVPF 111 8 0
\nc=IN IP4 <IP_ADDRESS>
\na=rtcp-mux
\na=sendrecv
\na=rtpmap:111 OPUS/48000/2
\na=rtpmap:8 PCMA/8000
\na=rtpmap:0 PCMU/8000
\na=ice-ufrag:Ty0D
\na=ice-pwd:LoX6YSBodu8fiBple9PKHb
\na=candidate:4 1 UDP<PHONE_NUMBER> <IP_ADDRESS> 52756 typ host
\na=candidate:5 1 TCP<PHONE_NUMBER> <IP_ADDRESS> 0 typ host tcptype active
\na=candidate:6 1 TCP<PHONE_NUMBER> <IP_ADDRESS> 49570 typ host tcptype passive
\na=fingerprint:sha-256 5A:13:0D:67:51:94:FD:1D:E1:41:7E:67:B3:BB:CD:AA:16:A8:A4:F2:67:65:37:CF:DC:56:56:E1:B9:71:DA:31
\na=setup:actpass
\n";
type = offer;
}
2017-03-31 10:26:49.281328 NativeDemo[255:19436] [PeerServerHandler] Message successfully sent to peer
**
ERROR:owr_transport_agent.c:917:remove_existing_send_source_and_payload: assertion failed: (sinkpad)

(:291): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed


Disable Github Wiki for robotframework

This is a total nit pick, I just thought I would suggest disabling the wiki on this repo as it seems to be unused.  That's all, Thanks for all the work you have put into this project! I look forward to trying it out!
Settings Page

Done. I guess we kept wiki visible because we though it could be actually used for something. Can obviously be made visible again if we actually find some usage for it.


added Stepper 3D

I hope you merge it under Hacktoberfest label.

Please create a demo folder inside your project and add a working demo of your project named demo.gif


xlinkHref renders an 'href' attribute, not 'xlink:href' attribute

Well, subject.
preact version: 6.4.0

On what type of element?

<use xlinkHref="#icon-name" />

Strange, I have demos of this working. Will check if there was a regression..

Thanks!

hmm - it definitely is still working:
https://jsfiddle.net/developit/0qgbw2sg/4/
Perhaps you're inserting the <use /> prior to the href target being available?

Might also be worth checking a second browser.

Hm, you were right about inserting the <use /> tag before target was available.
But still. If I have static <use /> tags (inserted in raw html without javascriptwithxlink:href` tags, then it works even though the targets are loaded later.
I'm not completely sure, but I believe the reason is that preact strips the xlink: part.
In your jsfiddle example if you inspect the rendered elements you'll see that the <use> tag only has an href attribute.

That's actually just an oddity with how attributes work from JS vs from HTML.  Preact uses .setAttributeNS(), which excludes the namespace (explanation here).
In that jsfiddle, if you grab the element in console and look at $0.attributes, you should see that the xlink attribute has the correct namespace.
CSS Tricks has an article that goes over some of these awkward bits, might be worth a read:
https://css-tricks.com/gotchas-on-getting-svg-into-production/#article-header-id-2

@everdimension think we can close this out, at least in terms of being a preact issue? The oddity here is more about how inline SVG's work in HTML documents, not really about Preact itself.

Closing for now but please feel free to discuss here on on gitter!

As far as I can see, when calling setAttributeNS the namespace prefix can 'optionally' be a part of the attribute (qualified) name. React uses the prefixed version, it might be worth doing the same if there is no downside?
(I've have a user report elements with xlink:href attributes becoming clickable links in Firefox 43, though I haven't been able to reproduce it.)

@rmales You mean just to avoid stripping it out?

@developit I was actually looking into bug report which I thought might be related to this, but I think that is more likely a Firefox issue.
It's probably not worth changing it, unless you want to match React or cover some non-browser rendering cases.

@rmales I'm totally fine looking into this if adding the namespace to the name argument doesn't break anything.  Maybe it'll even let us shrink the size! 👍


Wrong error message: Newtonsoft.Json.JsonSerializationException: 'A member with the name 'X' already exists on 'Model.Y'

I have the following class:
public class Stuff
{
    [JsonProperty("Thing1")]
    public double Thing1 { get; set; }
    [JsonProperty("Thing2")]
    public double Thing2 { get; set; }
}

If I run the following:
var responseObj = new Stuff { Thing1 = 201.2, Thing2 = 1922.2 }
Object.FromObject(responseObj);  //this produces valid json
But if I do this:
public class Stuff
{
    [JsonProperty("Thing1")]
    _thing1 = 0;
    public double Thing1 {
       get  => Math.Round(_thing1, 3);
       set => _thing1 = Math.Round(value, 3);
    }
    [JsonProperty("Thing2")]
    _thing2 = 0;
    public double Thing2 {
       get  => Math.Round(_thing2, 3);
       set => _thing2 = Math.Round(value, 3);
    }
}

then run the following:
var responseObj = new Stuff { Thing1 = 201.2, Thing2 = 1922.2 }
Object.FromObject(responseObj);  //this produces invalid json
I get an error that says:
Newtonsoft.Json.JsonSerializationException: 'A member with the name 'Thing1' already exists on 'Model.Stuff'. Use the JsonPropertyAttribute to specify another name.'
Which is not true.
The only way to fix this is by either editing the JSONProperty name to a different name, or the actual property name itself to a different name.. so either of these would work:
public class Stuff
{
    [JsonProperty("Thing1_Column")]
    _thing1 = 0;
    public double Thing1 {
       get  => Math.Round(_thing1, 3);
       set => _thing1 = Math.Round(value, 3);
    }
    [JsonProperty("Thing2_Column")]
    _thing2 = 0;
    public double Thing2 {
       get  => Math.Round(_thing2, 3);
       set => _thing2 = Math.Round(value, 3);
    }
}

 //OR

public class Stuff
{
    [JsonProperty("Thing1")]
    _thing1 = 0;
    public double Thing1_Column {
       get  => Math.Round(_thing1, 3);
       set => _thing1 = Math.Round(value, 3);
    }
    [JsonProperty("Thing2")]
    _thing2 = 0;
    public double Thing2_Column {
       get  => Math.Round(_thing2, 3);
       set => _thing2 = Math.Round(value, 3);
    }
}

The problem is, I have too much code relying on both of these properties, and it would take a TON of refactoring and a TON of extra testing.. And it's unfortunate that I can't serialize a class that has definition in the setter and getter for property names and JsonProperties both being the same name.. And on top of that, I get the weird and incorrect message about how there's a duplicated property, that made me lose about 2 hours of my time, thinking I really did have a duplicate property. I thought it was copying and pasting weird hidden characters, or visual studios was acting up, and I cleaned the project a few times, restarted visual studios, etc etc.

Which is not true.

Yes it is. You have a property called Thing1 and you have a field you are also mapping to Thing1 because of the [JsonProperty("Thing1")] attribute on it. Either don't have the attribute on it or use a different name.

Ah, I didn't know that. However, it works when you dont have a definition for getter though. As soon as you add a definition it breaks.
Because it has been working like that for almost a year, my backend is wired to use the property name, and my front end is used to json property name.. if I change any of those it breaks. I was expecting that it wouldnt matter if I added a body to the getter.
Ill see what I can do to removw the json property names, but it just seems a bit weird that it breaks due to the modified definition.


iDEAL payments do not function

What area is the issue related to?
Checkout Sheet Kit
What version of Checkout Sheet Kit are you using?
3.0.4
Reproducible sample code
No response
Steps to Reproduce

Create a checkout
Select iDEAL as a payment provider
Select review order
Checkout doesnt navigate to iDEAL hosted page to complete payment

Expected Behavior

Create a checkout
Select iDEAL as a payment provider
Select review order
Navigate to iDEAL payment page to complete payment

Actual Behavior
When trying to use iDEAL as a payment provider you are not navigated to the iDEAL hosted payment page to complete the payment.
Screenshots/Videos/Log output
https://github.com/user-attachments/assets/d95162c6-503f-4366-8eb4-49b7b6a81185
Storefront domain
perfect-eyelash-hq.myshopify.com

Hey @joshgare, was this a false alarm or are you still having issues?

@markmur this was a false alarm - but we are having issues with iDEAL payments in general though as they don't permit payments to be completed within a webview as they use custom private url scheme to deep link to Dutch banks.
We've got a draft PR which I will open shortly with a work around for this but would love Shopify's thoughts on this once I've done so.

Here is said PR @markmur - https://github.com/Shopify/checkout-sheet-kit-swift/pull/215 +1


Error after fork

Hi
After making a fork of this repository,  and authorize the Action, when I try to create a release with some tag, e.g 2.0.0, I got the following error:
Error: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"}

See the log at:
https://github.com/restrepo/latex-on-ci-cd/runs/2062399073?check_suite_focus=true
Do you know hot I could fix the Error?
UPDATE:
The release must be created from the local clone with:
$ git tag v2.0.0
$ git push --tags

Thanks
:D

Hi @restrepo
I think, you have solved the issue ?

Yes, I did resolve the issue by making the release from the local clone instead than directly from GitHub

Thanks @restrepo.
I am closing the issue.


Update contribute.rst

Changed github link for cloning; I tried to use it the way it is now the first time I opened Toga, but it didn't work.

PR Checklist:

[x] All new features have been tested
[x] All new features have been documented
[x] I have read the CONTRIBUTING.md file
[x] I will abide by the code of conduct

Should I add the same change for all platforms?

Yes - that’s what I was thinking. Apologies for not being explicit.


Update dataset metadata in Single cell transcriptional and chromatin accessibility profiling redefine cellular heterogeneity in the adult human kidney

The datasets in Single cell transcriptional and chromatin accessibility profiling redefine cellular heterogeneity in the adult human kidney should be corrected to:

[ ] Use 'human adult stage' rather than 'adult' for the development_stage label as indicated by HsapDv:0000087

Adding @MaximilianLombardo  as he curated that dataset

Unassigning myself because this dataet was curated externally

During migration, we will remove the development_stage, and the Portal will add the correct label associated with HsapDv:0000087.
Is this ticket still necessary?

This was updated during the migration resubmission


how to update specific element in JSONB column

hi, is there a way to update a specific element in PostgreSQL JSONB column?
I have a jsonb column like {lat: value, lon: value}. I want to change either value at a time but I am not sure how I can do this. I tried using jsonb_set() method but could not achieve what I wanted.

I looked around, it doesn't seem like there is a matching updateRaw like there is a whereRaw or joinRaw, etc. You will have to use a raw query I think.

@richraid21 Could you please help me out on how I can write this raw query?

AFAIK only knex based thing that supports writing to and extracting data from postgresql jsonb columns is objection.js ORM.
With plain knex you need to use raw to write references:
knex('table').update({
  jsonbColumn: knex.raw('jsonb_set(??, 'lat', ?)', ['jsonbColumn', newLatValue]);
})

You can check generated SQL here https://runkit.com/embed/44ifdhzxejf1

i just find a way to update all the data column

@markairwallex in my last comment is an example how to update single value. You need to use .raw and write postgresql specific SQL code for that update.
Locking conversation to prevent answer from being lost in extra comments. If there are more problems related to this, open new issue or write a question to stackoverflow.


The template instantiating problem

I'll cut right to the chase and give an example:
File I:
export type S = struct { ... }

export type I = interface {
    def method
}

export def polymorph(i: I) {
    i.method()
}

File A:
import I
def method(s: S) { ... }
polymorph(s)

File B:
import I
def method(s: S) { ... }
polymorph(s)

In this case both File A and File B define an implementation for I for the type S.
The problem right now is that there's only one instance of polymorph for every given type.
It gets even worse, right now the context isn't considered at all so this would fail anyway.
I need to figure out a way to do this in a performant way without having to generate code for every single implementation.

My suggestion is to make implementations explicit, rather than to just look for functions in the scope that happen to match the interface that is being looked for willy nilly. Something like the following?
import I
A_Impl = impl I for S {
  def method(s: S) { ... }
}
polymorph((A_Impl)s)

Obviously using some pseudo code here, details to be figured out. Maybe A_Impl can be inferred, maybe it doesn't even need to be bound to an identifier. The important thing: The implementation of an interface is owned by the module it's created in and thus has a unique identifier, and can't be confused with another module's implementation.

Personally I feel like more explicit generics would help out here, as well:
export def polymorph<T1: Interface1, T2: Interface 2>(i: T1 & T2) {
    // can't use i.method() if both T1 and T2 implement it, so just as an example:
    T1.method(i)
    T2.method(i)
}
// can be called with:
polymorph<I1, I2>(s)

Just thinking of what would happen if you want something implementing two or more interfaces. But perhaps something like polymorph((I1 & I2)s) would also work. I1 & I2 would sort of be a supertype of two interfaces.

I do want to solve this by creating a type for the implemented interface together with its implemented methods so that these can be queried for equality. That way I know if the context change needs a different implementation because I can compare the actual methods on that interface. These types would only exist in the context of calling a polymorphic function and they get created for every interface that gets passed in (and every module). It's basically the automatic way of what you are proposing...
This kind of inference is one of the core aspects of my language and not really up for debate... interfaces don't create distinct types either, like if you have the same interface twice under different names and they have the same methods they are considered equal. And you can pass anything that "implements" one of these interfaces to the other.
About the generics, you are correct that if you pass in I twice it may be different ones. This is also the reason why its not possible to create variables of an interface type, Maybe "interface" isn't the right word for this, They are really concepts that happen to be bound to a type.
def polymorph(a: I, b: I) {
    let x: I = a // Not valid
    let y: (type_of a) = a // Valid
    let z = a // Also valid
}

That's how things are right now. I do want to introduce a syntax to be able to assert that you need the same I twice, it would look like this:
def polymorph(a: type T > I, b: T) {
    let x: T = a // This is valid now
}

I do want to be able to create types with the form of A & B at some point, but that's not implemented either. Because of the way my types work you can simply implement that by joining the two interfaces together into a third one.
I do not have super or subtypes, there's no type hierarchy at all.
The inference works in different ways too such as here (this I tested at some point not sure if it works currently)
type Vec(type T) = struct { ... }
type List(type T) = interface { // polymorphic type
    def add(t: T) ->T
}

def add(t: Vec(type T), t: T) -> T { ... }

var l: List(int) = ...
var v: Vec(int) = ...
// This works, it knows that Vec(int) implements List(int)
l = v

Is this a good idea? I don't know. One issue is that the error messages are unhelpful because a function will just not accept a specific type if it doesn't match the interface, and you don't really know why. But I can definitely enhance the error messages later on.
It's an experiment, really... If it turns out to be a horrible idea in practice I might change things. I would love to have more people use the language and come up with ways to break it.


fill field type select based on another field selection

first of all thank you so much for this plugin working perfectly
i have a question: we have 2 fields [A] and [B] which are both of type select
if value changed in [A], we have to update the array for field [B]
is it possible in this plugin ? any help ?

Please take a look at this example http://jsfiddle.net/tabalinas/n982uvx1/.


Bl 1033 be seed errors due to foreign key constraints in old migrations

Description
Updated seed files containing entry's that referenced invalid items inside other tables which was triggering an error when we attempted to seed.
https://bloomtechlabs.atlassian.net/browse/BL-1033
Video Link
Loom
Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have removed unnecessary comments/console logs from my code
[x] My changes generate no new warnings
[x] I have checked my code and corrected any misspellings
[x] No duplicate code left within changed files
[x] Size of pull request kept to a minimum
[x] Pull request description clearly describes changes made & motivations for said changes

Good job with making sure these ID's are corresponding correctly! I wonder if you came across any code that could be deleted like the old migrations or seeds that are outdated as was mentioned on the ticket?

Forgot to mention this on the github side, but in the ticket comments on jira I stated the following...
"I suggest creating another ticket dedicated to working with the DS team and cleaning up any unneeded tables and/or related data. The communication alone could take a bit of time."
Given the impact of the error, I wanted to make sure the seed process worked correctly. In the long run, I defiantly feel like cleaning up the seed information, and ensuring the migrations are lean would benefit the project. Especially as we build out more features that require relevant data to work properly.


LFS-enabled repo failing with permission and/or lfs issue

Hi,
I'm getting this with a (private) repo having lfs enabled:
Notice: Creating branch python-coverage-comment-action-data
Error: Critical error. This error possibly occurred because the permissions of the workflow are set incorrectly. You can see the correct setting of permissions here: https://github.com/py-cov-action/python-coverage-comment-action#basic-usage
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/coverage_comment/subprocess.py", line 17, in run
    return subprocess.run(
  File "/usr/local/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('git', 'fetch', 'origin', 'python-coverage-comment-action-data')' returned non-zero exit status 128.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/coverage_comment/subprocess.py", line 54, in _git
    return run(
  File "/usr/local/lib/python3.10/site-packages/coverage_comment/subprocess.py", line 25, in run
    raise SubProcessError("\n".join([exc.stdout, exc.stderr])) from exc
coverage_comment.subprocess.SubProcessError:
fatal: couldn't find remote ref python-coverage-comment-action-data

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/coverage_comment/storage.py", line 41, in checked_out_branch
    git.fetch("origin", branch)
  File "/usr/local/lib/python3.10/site-packages/coverage_comment/subprocess.py", line 62, in _git
    raise GitError from exc
coverage_comment.subprocess.GitError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/coverage_comment/subprocess.py", line 17, in run
    return subprocess.run(
  File "/usr/local/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('git', 'switch', '--orphan', 'python-coverage-comment-action-data')' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/coverage_comment/subprocess.py", line 54, in _git
    return run(
  File "/usr/local/lib/python3.10/site-packages/coverage_comment/subprocess.py", line 25, in run
    raise SubProcessError("\n".join([exc.stdout, exc.stderr])) from exc
coverage_comment.subprocess.SubProcessError:

then at the end:
Switched to a new branch 'python-coverage-comment-action-data'

This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-checkout' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').

I'm not sure which error is the real one..
is lfs issue or permission issue ?
EDIT:
fwiw: have NOT lfs: true in my checkout step before but given the last message I'm not sure that would help..
EDIT2: well, should I only:
rm .git/hooks/post-checkout

before the step as proposed by the last error message ?

Indeed, this is not a case we had tested for. I've never worked with LFS.
Do you want to work on that a submit a PR, or would you rather not ? I can't promise we'll do it right away, but I'd wager if you know how git LFS works, you're already a step ahead of me :)

I have been able to reproduce the error locally in a small test case in Docker and it seems to me that the only thing we need to do is to replace apt-get install -y git with apt-get install -y git-lfs in the Dockerfile.build file to install lfs.

Seems fine to me. Time for a v3 then :)

@plato-gst It should work now. Feel free to test it and give us feedback

(Closing for now, but don't hesitate to re-open if anything doesn't work as well as it should)

hi @kieferro @ewjoachim
all good, it's been correctly running since then!
thx for fast response :+1:


Update differential-impact-detection.md

🚀 Deployed on https://66e4950586a9686fc55cdc51--cozy-fox-0defec.netlify.app


Update dependency glob to v10.3.12

This PR contains the following updates:

Package
Type
Update
Change

glob
devDependencies
patch
10.3.10 -> 10.3.12

Release Notes

isaacs/node-glob (glob)
v10.3.12
Compare Source
v10.3.11
Compare Source

Configuration
📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

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

This PR has been generated by Self-Hosted Renovate Bot. Find all logs here.

 You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.


Support Python 3.6

Python 3.6 has been around for a while - and even Python 3.7 isn't too new - so we should start trying to support it.
This will probably require https://github.com/mosdef-hub/mbuild/pull/457 and https://github.com/mosdef-hub/mbuild/pull/435 to be merged first and then an mbuild release.
I am temporarily getting around plyplus issues (#172) by hosting builds on my own Anaconda channel; I will move those to the mosdef channel if it becomes necessary.

Closed #204


GHC 8.6.3

I do not claim to understand exactly what's going on here, but I do claim that this version of the test suite passes with all of the following builds:
$ stack test
$ stack --resolver lts-12.25 test
$ stack --resolver lts-13.0 test

I also did some very rudimentary manual testing via
$ stack --resolver lts-13.0 build --copy-compiler-tool

and it seems to be working as intended.

Cheers! Will push to hackage.

Pushed to hackage. When it's on stackage people can update their emacs lisp to master which references intero 0.1.35.

Or M-x customize-variable  of intero-package-version if you had customized it. To 0.1.35.


🐞 : footer section need improvement

footer section is not looking good, giving a bad user experience

@iamrahulmahato plz assign me this issue

it is solved


Breaking changes in google-protobuf 4+

The release of google-protobuf 4 cause pg_query to throw exceptions when the older Ruby DSL methods are used. For instance:
NoMethodError: undefined method `build' for #<Google::Protobuf::DescriptorPool:0x000000010ceb94b8> (NoMethodError)

Google::Protobuf::DescriptorPool.generated_pool.build do
                                               ^^^^^^
~/.bundles/securicy-app/ruby/3.2.0/gems/pg_query-2.2.1/lib/pg_query/pg_query_pb.rb:6:in `<top (required)>'

The change in google-protobuf is here: https://github.com/protocolbuffers/protobuf/commit/5cfc9e775d76acb37e5b554e53dff336a89d000f
Announcement of the breaking changes is the: https://protobuf.dev/news/2023-04-20/

I've hit this too.. any updates on a fix?

Hit this today trying to go to Ruby 3.3. Any ETA on Fix?

We haven't triaged this in detail yet - for now the recommendation would be to pin google-protobuf to an older version until we've made the necessary changes.
For those running into this, is there a requirement to move to the newer google-protobuf?


#sidebar-content retain a weird padding-top: 3px

workspace's content and tabs don't have retain the padding, but sidebar does.
it looks really weird:

it'll looks better if remove the "padding-top: 3px;".

Hi,
thanks for that. The bar at the top of debug is a distinct item on the debug tab, and currently we think the slight gap makes it look more part of it's tab, compared to almost blending into the info tab when the gap is removed.
(PS - we would also need a CLA in place before we could accept the PR... but ... no need just yet :-)


Make the reboot tracker catch failed coordinators, too.

Scope & Purpose
Make the reboot tracker catch failed coordinators, too.
Previously the reboot tracker was invoked only when a DB server failed or was restarted, and when a coordinator was restarted.
Now it will also act if a coordinator just fails (without restart).

[x] :hankey: Bugfix
[x] :pizza: New feature
[ ] :hammer: Refactoring
[x] :book: CHANGELOG entry made
[x] :muscle: The behavior in this PR was manually tested
[ ] :computer: The behavior change can be verified via automatic tests

Backports:

[x] Backports required for: 3.5 (https://github.com/arangodb/arangodb/pull/12636), 3.6 (https://github.com/arangodb/arangodb/pull/12606), 3.7

Testing & Verification

[x] This change is a trivial rework / code cleanup without any test coverage.

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/11876/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/11879/


ts: Instruction decoder should decode hex strings

Currently it decodes Buffer's and base 58 strings. Instead of base 58 it should decode hex by default. To decode base58, an optional parameter should be passed in describing how to interpret the string.
See https://github.com/project-serum/anchor/blob/master/ts/src/coder/instruction.ts#L112.

Hello could I work on this?

Hello could I work on this?

Please do!

Hello could I work on this?

Please do!

Apologies I am new to contributing, I didn't realize this was in Rust, I had thought Python! I don't think I'll be able to figure this out, sorry about that! You can delete my comments to not confuse others if you want.

I'll submit PR for this issue today.


Fix typos in .json

In some .jsons the field name was moveable instead of movable. This results in some errors as we query for movable in xdg-ninja.sh.
This PR simply replaces any occurence of moveable with movable.

Thank you so much!


feat(default): +default/yank-buffer-path-relative-to-project includes project name if prefix arg is passed

Sometimes we also want to specify the project name to let others know which mentioned project is.

LGTM. Thanks again for your help!


Fix for behaviour described in fcrepo4-777

Modify federated file system connector to use initial sha1 as the basis for comparison as per the fixity check behaviour described in https://wiki.duraspace.org/display/FEDORA40/How+to+audit+fixity+in+a+filesystem+federation

Closing this as the filesystem federation has been removed from the core of Fedora.


Mm 38799 invite to team

Summary
Convert invite to team modal from a fullscreen modal to an in-screen modal with a backdrop. Note that the possible treatments are the in-screen modal with radio buttons and the in-screen modal with the toggle. We are not keeping the fullscreen modal as a control in this test.
This is a long PR. 8K of the additions are adding the an svg for the "no permissions" screen (see other callouts section). Some of it is false LOC inflation from converting from js to ts, and git counting it as added * deleted files instead of changed files. About 2K LOC deletions are from removing the fullscreen modal, and the new modal is also about 2K LOC. I could maybe break out up to 1K LOC worth of typescript conversions, but then that would be one more PR with additional risks of having to make sure the newly typescripted files play nice with the existing fullscreen modal, and that they work with the new files when I convert to in-screen modal.
You can reach out to someone with Split access to toggle between the feature flag treatments. The split name is InviteToTeam.
Current treatment: toggle (toggle button)
Some caveats:

I wasn't able to find a slider like the one shown in the designs. We had previously discussed it was acceptable to use something close like it if it existed. If someone does know of an existing slider more like the designs, I'm happy to see if its doable to use it instead.
The Radio component that matches the designs is in Compass. It needs some further work before it can support labels with more than one color of text. I made a first effort using and changing it, but I don't think we'll be ready to use that Radio component until after we hope to merge this PR (Nov 15 for the Nov 24 release). So I opted to use the Radio group already in use in other places in webapp.

Things still needing decision:

In the fullscreen modal, we show a confirm modal on top of the fullscreen modal if the user exits out with unsaved progress. (How) should we prevent unsaved progress in the new experience? For example, if they've entered 10 users and 5 channels, and the accidentally click outside the modal and did not mean to, that is a fair amount of lost work. What I implemented as the easiest option was that if they have users or channels inputted or text in the search box, then we do not close the modal on outside clicks, only on pressing escape key or clicking the close button on the top right. More options for preventing lost work are documented in the Jira ticket.

Other callouts:
I don't think there's ever a hard server error in our scenario; instead, they all just get shown as "invite not sent". So I didn't implement a hard server error screen. However, I did see that user's might be able to invite members and guests, or that they might only be able to invite members. It's not clear to me whether it can happen that they can't invite either members or guests, so I implemented a "can't invite either" screen that looks similar to the hard server error screen, in which the only choice is to close the modal. Let me know what you think! If someone knows for sure that it can NEVER happen that a user doesn't have permissions to invite users and that all entry points to this modal are hidden when they have no permissions to invite, then we might not need this screen. I haven't looked into how to force this scenario, but for the time being if you type "nopermissions" into the users search textarea, you will get the "no permissions" screen.
Ticket Link
Jira: https://mattermost.atlassian.net/browse/MM-38799
Figma: https://www.figma.com/file/fheJeoKw0LBTlvmHpAqpls/✅Invite-to-channel?node-id=27%3A208034
Related Pull Requests

Server PR

Screenshots
Several of the interactions:

View when only member invites are enabled:

no permissions view:

Release Note
* Convert invite to team modal from fullscreen modal to in-screen modal.
* Track when invite users to team button is clicked.

I don't think there's ever a hard server error in our scenario; instead, they all just get shown as "invite not sent". So I didn't implement a hard server error screen.

There is an open ticket (and PR) that has been around for a bit that should address this https://mattermost.atlassian.net/browse/MM-25763 I've moved the ticket into our team and we can work on that separately.

. (How) should we prevent unsaved progress in the new experience?

I tried your approach here on only allowing to close on click if there is no changes in progress and seemed good to me. 👍
One minor UX detail I did notice was that there seems to be extra space between the title and the To: section below it:

looks good @neallred !

I see Maria mentioned the spacing issue between the modal title and the "To".

There should also be 8px space between "Set a custom message" and the sub copy. (and subsequently) also 8px between Custom Message and the input field

There should also be 24px padding on each side of the input fields.
The cancel/close icon at the top of the modal (and also for the custom message input field) should have a 56% opacity
The Invite button should be 24px away from the sub text above it
I notice when i have a lot of emails inputted and then add a custom message, the modal shifts a bit, I think to include the scroll bar but it also seems like it shifts a bit spatially.

@annelieseklein good finds! All the points have been addressed. For the modal moving spatially, I noticed there was a second scrollbar for the modal as a whole (as opposed to to the modal body) that showed up on the far right or the screen, hidden under the backdrop shadow. I was able to disable that scroll bar, so the spatial jump shouldn't happen any more.

@neallred Thanks! a few more:

In terms of modal placement, can we center the modal on the page
When we have a long list of autocomplete menu, can we overlay the menu on the modal (so as to not change the actual length of the modal) ? I can provide an updated design here, but a similar design is attached.
Eric found a black outline for the copy link click effect, which i didn't find. See attached

Also I noticed we have a disabled state for the CTA that is different from what we have in the figma, so we should align that as well.

@annelieseklein @esethna could you take another look? I was able to:
* place the modal on the center of the page
* Have the autocomplete menu overlay the modal instead of expanding the modal to try and accomodate the autocomplete menu.
* I didn't change the drop shadow, but I think what was seen was the shadow getting cut off because the modal was expanding, and not by enough.
* fix the disabled state of the invite button
* Remove the shadow on clicking the copy invite link as I saw it on my machine & browsers (Linux, Firefox & Chromium). Not sure if this addresses what Eric saw; I wasn't able to reproduce the exact shadow he shared.

Looks great @neallred ! One final thing - can we cap the max lines in the invite modal to 5 1/4 lines of invitees? Currently we are able to see a long list of emails. I'd like to cap it at 5 with a little peek of a 6th line

Sure!

@annelieseklein changed. Does this look right?

@neallred yep looks great!

Addressed 3 & 4. Open to addressing 1 & 2 but need to merge this so it has enough time for testing prior to release.

/cherry-pick cloud


[hi] Add content/hi/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.html

Hey folks, this is a PR for hi localization of the file: content/hi/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.html
PR is linked under this issue #29353
/language hi

/assign @mittalyashu

/retitle [hi] Add content/hi/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.html

/assign

@rajatgupta24 Can you look at the suggestions above. We could merge this PR then

@rajatgupta24 Are you active with this PR? Can you have a look at suggestions above

/label tide/merge-method-squash

/lgtm
/approve
Thank you @rajatgupta24


[CHORE]:Add code quality tracking.

What is the chore?
Integrate this project into Codacy.

Implemented and reviewed in the Codacy Dashboard.
https://app.codacy.com/gh/imAsparky/cookiecutter-py3-package/dashboard


How to handle mask digits and allowed digits

I want to mask default two digits after the decimal, But allow to enter up to four digits.
How can I achieve it?
Kindly, reply. Thanks in advance.

Hello, Any update please?
One more issue I am not able to change selected text to 0.

@GaikwadVikas ,
It is not possible out-of-the box.
I will add the functionality

@GaikwadVikas ,
Can you make a jsfiddle or alike for the second issue

@RobinHerbots ,
Please, visit your demosilte
Now enter any amount in Currency input. After that select that amount and press 0. It will not allow, But it is working for other than 0.
I want to change entered amount into 0.
I extended Aliases as below:
Inputmask.extendAliases({
currency: {
prefix: "",
groupSeparator: "",
alias: "numeric",
placeholder: "0",
autoGroup: false,
digits: 4,
digitsOptional: true,
positionCaretOnClick: "none",
clearMaskOnLostFocus: false,
removeMaskOnSubmit: true,
autoUnmask: true
}
});

@RobinHerbots ,
I think you should provide maskDigits option. If value not available for maskDigits, use digits.
So, I will set maskDigits to 2 and digits to 4.

@GaikwadVikas ,
Use "'2,4" as digits option

Thank you very much @RobinHerbots ,
Love you man  😄


[Questions] Does the generated code need optimization?

Have you read the project readme?

[x] Yes, but it does not include related information regarding my question.
[x] Yes, but the steps described do not work.
[x] Yes, but I am having difficulty understanding it and want clarification.

Describe your question
A clear and concise description of what the question is. Include errors and go source files.
type Tx int

type In struct {
	A Tx
}
type Out struct {
	A Tx
}

// goverter:converter
type Converter interface {
	Convert(in constructor.In) (constructor.Out, error)
	ConvertList(in []constructor.In) ([]constructor.Out, error)
}

result: generated.go
// Code generated by github.com/jmattheis/goverter, DO NOT EDIT.

package generated

import (
	"fmt"
	constructor "xxx/constructor"
)

type ConverterImpl struct{}

func (c *ConverterImpl) Convert(source constructor.In) (constructor.Out, error) {
	var constructorOut constructor.Out
	constructorOut.A = constructor.Tx(source.A)
	return constructorOut, nil
}
func (c *ConverterImpl) ConvertList(source []constructor.In) ([]constructor.Out, error) {
	var constructorOutList []constructor.Out
	if source != nil {
		constructorOutList = make([]constructor.Out, len(source))
		for i := 0; i < len(source); i++ {
			constructorOut, err := c.Convert(source[i])
			if err != nil {
				var errValue []constructor.Out
				return errValue, fmt.Errorf("error setting index %d: %w", i, err)
			}
			constructorOutList[i] = constructorOut
		}
	}
	return constructorOutList, nil
}

The field type is related, they are all Tx, just assign directly? No forced conversion required?
If it is a slice, len(source) is used twice, use the variable to receive, reduce the number of calls?

I'd expect the go compiler to just optimize it away. This edge case could be fixed in goverter, but it's probably not necessary. If you can prove that it'll affect performance, I'd be happy to adjust this.
Actually, len(source) is called for every iteration in the for loop. This is kinda a basic use-case so the go compiler should optimize it too. See https://stackoverflow.com/a/26634977/424499


Write a KCS for installing python packages in a disconnected environment

KCS solution URL: https://access.redhat.com/solutions/7045831


[CHALLENGE SUBMISSION]

Please provide the following information for your submission:
What is your name? (First, Last)
Brett Kuhlman
Where is your GitHub Repo ?(With your challenge solution)
https://github.com/kuhlman-labs/terraform-on-azure-challenge
What Challenge is this for? (Challenge number between 1 and 5)
4
(Optional) Anything else we should know? e.g., language used, location, blog post?
Docker build/push and helm deploy handled in GHActions

Thanks for participating in the #TerraformOnAzure coding challenges!
We have attached your very special Astronaut Badger background, for you to use in all your upcoming video calls!
And to recognize you for your learning, you can collect your digital Azure Heroes badge on your mobile (you may need to install the Enjin wallet to collect it). Make sure to collect it today!
https://beam.enjin.io/claim/d32599695c8c28cfc24820492080fac0
Keep on learning and sharing!
Greetings from the #TerraformOnAzure team,
Suzanne, Floor, Erik & Nick


ENH: Wrap itkAdaptiveHistogramEqualizationImageFilter for Python.

itk.AdaptiveHistogramEqualizationImageFilter doesn't work in Python.  This draft pull request is to check whether the reasons for disabling it are still applicable.
PR Checklist

[X] No API changes were made (or the changes have been approved)
[X] No major design changes were made (or the changes have been approved)
[X] Added test (or behavior not changed)
[X] Updated API documentation (or API not changed)
[X] Added license to new files (if any)
[X] Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
[X] Added ITK examples for all new major features (if any)

I have tested on my local Ubuntu 20.04 system that use of ./scripts/dockcross-manylinux-build-wheels.sh cp38 (from itkPythonPackage) on the code from this pull request runs without error and that a subsequent installation of the created Python wheel, and import into Python will run
import itk
import numpy
img = itk.GetImageFromArray(numpy.zeros((2,2)))
img_type = type(img)
filter1 = itk.AdaptiveHistogramEqualizationImageFilter[img_type].New()
filter1.SetAlpha(0.3)
filter1.SetBeta(0.3)
filter1.SetRadius(10)
filter1.SetInput(img)
filter1.Update()

without an error message.

Excellent!
You you please cherry-pick onto release and force push, so this can be included in 5.2.1?

Pull request #2675 is the pull request for these changes, but to the release branch.


ci: Enable CodeQL scanning

This PR has CodeQL run as CI on pull requests.

I don't think we need to worry about a test script that's only used on our docs...


fix typos in docs and command

What type of PR is this?

Uncomment only one  /kind line, and delete the rest.
For example, > /kind bug would simply become: /kind bug

/kind api-change
/kind bug
/kind cleanup
/kind deprecation
/kind design
/kind failing-test
/kind feature
/kind flake
/kind code-refactoring

What does this PR do / why we need it:
https://github.com/redhat-developer/kam/pull/42
Have you updated the necessary documentation?

[x] Documentation update is required by this PR.
[x] Documentation has been updated.

Which issue(s) this PR fixes:
Fixes #?
How to test changes / Special notes to the reviewer:

/assign @chetan-rns

Codecov Report

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

@@           Coverage Diff           @@
##           master      #50   +/-   ##
=======================================
  Coverage   61.36%   61.36%
=======================================
  Files          52       52
  Lines        2464     2464
=======================================
  Hits         1512     1512
  Misses        818      818
  Partials      134      134

Flag
Coverage Δ

#unittests
61.36% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/cmd/kam.go
0.00% <ø> (ø)

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 817c1af...01d657c. Read the comment docs.

/lgtm


mkdocstrings: Template 'module.html' not found for 'python' handler and theme 'material'

Describe the bug
ERROR    -  mkdocstrings: Template 'module.html' not found for 'python' handler and theme 'material'.
ERROR    -  Error reading page 'api.md': module.html
Traceback (most recent call last):
File "/root/miniconda3/envs/bt/bin/mkdocs", line 8, in
sys.exit(cli())
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/mkdocs/main.py", line 192, in build_command
build.build(config.load_config(**kwargs), dirty=not clean)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/mkdocs/commands/build.py", line 292, in build
_populate_page(file.page, config, files, dirty)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/mkdocs/commands/build.py", line 174, in _populate_page
page.render(config, files)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/mkdocs/structure/pages.py", line 175, in render
self.content = md.convert(self.markdown)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/markdown/core.py", line 264, in convert
root = self.parser.parseDocument(self.lines).getroot()
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/markdown/blockparser.py", line 90, in parseDocument
self.parseChunk(self.root, '\n'.join(lines))
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/markdown/blockparser.py", line 105, in parseChunk
self.parseBlocks(parent, text.split('\n\n'))
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/markdown/blockparser.py", line 123, in parseBlocks
if processor.run(parent, blocks) is not False:
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/mkdocstrings/extension.py", line 120, in run
html, handler, data = self._process_block(identifier, block, heading_level)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/mkdocstrings/extension.py", line 196, in _process_block
rendered = handler.renderer.render(data, rendering)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/mkdocstrings/handlers/python/renderer.py", line 70, in render
template = self.env.get_template(f"{data['category']}.html")
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/jinja2/environment.py", line 997, in get_template
return self._load_template(name, globals)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/jinja2/environment.py", line 958, in _load_template
template = self.loader.load(self, name, self.make_globals(globals))
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/jinja2/loaders.py", line 125, in load
source, filename, uptodate = self.get_source(environment, name)
File "/root/miniconda3/envs/bt/lib/python3.8/site-packages/jinja2/loaders.py", line 214, in get_source
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: module.html
To Reproduce
pull source from https://github.com/zillionare/backtesting.git, then:
pip install poetry
poetry install -E doc -E dev -E test
mkdocs build
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Information (please complete the following information):
mkdocs  = { version = "^1.2.3", optional = true}
mkdocs-include-markdown-plugin  = { version = "^3.2.3", optional = true}
mkdocs-material  = { version = "^8.1.11", optional = true}
mkdocstrings  = { version = "^0.18.0", optional = true}
mkdocs-material-extensions  = { version = "^1.0.3", optional = true}
twine  = { version = "^3.8.0", optional = true}
mkdocs-autorefs = {version = "^0.3.1", optional = true}
Additional context
Add any other context about the problem here.

Hi, I get dependency resolution problems when trying to install your project and its dependencies:
% poetry install -E doc -E dev -E test
Creating virtualenv zillionare-backtest-z6_oXPmY-py3.9 in /home/pawamoy/.cache/pypoetry/virtualenvs
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.

  SolverProblemError

  The current project's Python requirement (3.9.9) is not compatible with some of the required packages Python requirement:
    - zillionare-omicron requires Python >=3.8,<3.9, so it will not be satisfied for Python 3.9.9

  Because no versions of zillionare-omicron match >2.0.0a27,<3.0.0
   and zillionare-omicron (2.0.0a27) requires Python >=3.8,<3.9, zillionare-omicron is forbidden.
  So, because zillionare-backtest depends on zillionare-omicron (^2.0.0a27), version solving failed.

  at ~/.local/pipx/venvs/poetry/lib/python3.9/site-packages/poetry/puzzle/solver.py:241 in _solve
      237│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240│         except SolveFailure as e:
    → 241│             raise SolverProblemError(e)
      242│
      243│         results = dict(
      244│             depth_first_search(
      245│                 PackageNode(self._package, packages), aggregate_package_nodes

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For zillionare-omicron, a possible solution would be to set the `python` property to "<empty>"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

Can you confirm you are running mkdocs from within the Poetry env, and not from an external env? In your description you wrote mkdocs build where it should probably be poetry run mkdocs build or poetry shell then mkdocs build.

Thanks for take care of this case.
I'm using conda  env which is built with:
conda create -n bt python=3.8
conda activate bt
pip install poetry
poetry install -E doc -E dev -E test
mkdocs build
and if I run poetry shell, then mkdocs build:
(bt) root@ubuntu:/apps/backtest# poetry shell
Virtual environment already activated: /root/miniconda3/envs/bt
(bt) root@ubuntu:/apps/backtest# mkdocs build
give me same result.
I keep master branch untouched, it's still reproducible. You may reproduce this by yourself, or please tell my how can I help collect information for troubleshooting.

@zillionare I had a similar problem that was solved by removing poetry.lock file and reinstall. Looked like something went bad when I updated my dependencies.
Just in case I have those dependencies versions different from yours:
twine  = { version = "^3.3.0", optional = true}
mkdocs-autorefs = {version = "^0.4.1", optional = true}

I have an issue when building your docs:
...
File "/media/data/dev/backtesting/backtest/cli.py", line 21, in <module>
    cfg = cfg4py.init(get_config_dir())
...
File "/home/pawamoy/.cache/pypoetry/virtualenvs/zillionare-backtest-z6_oXPmY-py3.8/lib/python3.8/site-packages/watchdog/observers/inotify_c.py", line 405, in _raise_error
    raise OSError(err, os.strerror(err))
FileNotFoundError: [Errno 2] No such file or directory

If you have a hint on what's wrong (seems like a missing file/folder), I can fix it on my side to continue debugging. Otherwise I won't be able to help 😕

please set environment variable:
export cfg4py_server_role=DEV
than re-run mkdocs.
this variable will tell backtest to find config at source dir/backtest/config, otherwise, it'll go to ~/zillionare/backtest/config, which would never exist on you machine.
By the way, thanks for investigating.
Today I was able to run mkdocs build by tox -e lint, but still no lick at my conda development env.
this is my tox.ini:
`
[tox]
isolated_build = true
envlist = py38, lint
[testenv:lint]
whitelist_externals =
poetry
isort
black
flake8
poetry
mkdocs
twine
commands =
poetry install -E dev -E doc
isort backtest
black backtest
flake8 backtest
poetry build
mkdocs build
twine check dist/*
`

@zillionare I had a similar problem that was solved by removing poetry.lock file and reinstall. Looked like something went bad when I updated my dependencies.
Just in case I have those dependencies versions different from yours:
twine  = { version = "^3.3.0", optional = true}
mkdocs-autorefs = {version = "^0.4.1", optional = true}

@PhML I have no luck after replace these two deps.

% export __cfg4py_server_role__=DEV
% poetry run mkdocs serve
INFO     -  Building documentation...
INFO     -  Cleaning site directory
/home/pawamoy/.cache/pypoetry/virtualenvs/zillionare-backtest-z6_oXPmY-py3.8/lib/python3.8/site-packages/mkdocstrings/handlers/python/__init__.py:13: UserWarning: The 'python-legacy' extra of mkdocstrings will become mandatory in the next release. We have no way to detect if you already specify it, so if you do, please ignore this warning. You can globally disable it with the PYTHONWARNINGS environment variable: PYTHONWARNINGS=ignore::UserWarning:mkdocstrings.handlers.python
  warnings.warn(
/home/pawamoy/.cache/pypoetry/virtualenvs/zillionare-backtest-z6_oXPmY-py3.8/lib/python3.8/site-packages/pandas_datareader/compat/__init__.py:11: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  PANDAS_VERSION = LooseVersion(pd.__version__)
INFO     -  Documentation built in 2.19 seconds
INFO     -  [14:57:39] Watching paths for changes: 'docs', 'mkdocs.yml', 'backtest'
INFO     -  [14:57:39] Serving on http://<IP_ADDRESS>:8000/

No errors!

don't know why, yesterday I found tox -e lint pass, and today after I rebuild my conda env,  both mkdocs build and poetry run mkdocs build pass.

Thanks for coming back and closing!


Headers are missing when consuming a tombstone message from the topic

Describe the bug
Issue occurred after migrating from Spring Cloud 2021.0.3 to 2022.0.3. When it consumes a message with a null payload from the topic, the whole message becomes null, causing the headers (including the message key) to be lost.
Sample
I am attaching a sample code to reproduce issue. I ran it with "spring-cloud-starter-stream-kafka" in version 2022.0.3:
@SpringBootTest
@TestPropertySource(properties = {
    "spring.cloud.stream.kafka.binder.brokers=localhost:9092",
    "spring.cloud.stream.bindings.printer-out-0.destination=test",
    "spring.cloud.stream.kafka.bindings.printer-out-0.producer.configuration.key.serializer=org.apache.kafka.common.serialization.StringSerializer",
    "spring.cloud.stream.kafka.bindings.printer-out-0.producer.configuration.value.serializer=org.springframework.kafka.support.serializer.JsonSerializer",
    "spring.cloud.stream.bindings.printer-in-0.destination=test",
    "spring.cloud.stream.kafka.bindings.printer-in-0.consumer.configuration.key.deserializer=org.apache.kafka.common.serialization.StringDeserializer",
    "spring.cloud.stream.kafka.bindings.printer-in-0.consumer.configuration.value.deserializer=org.springframework.kafka.support.serializer.JsonDeserializer"
})
class KafkaNullConsumerApplicationTests {

  @Autowired
  private StreamBridge streamBridge;

  @Autowired
  private KafkaNullConsumer kafkaNullConsumer;

  @Test
  void shouldConsume() throws InterruptedException {
    final var id = UUID.randomUUID().toString();

    Message<KafkaNull> tombstoneEvent = MessageBuilder
        .withPayload(KafkaNull.INSTANCE)
        .setHeader(KafkaHeaders.KEY, id)
        .build();

    Thread.sleep(5000);
    streamBridge.send("printer-out-0", tombstoneEvent);

    boolean messageConsumed = kafkaNullConsumer.latch().await(2, TimeUnit.SECONDS);
    assertThat(messageConsumed).isTrue();
  }
}

@Slf4j
@Component
class KafkaNullConsumer {

  private final CountDownLatch latch = new CountDownLatch(2);

  @Bean
  public Consumer<Message<KafkaNull>> printer() {
    return tombstoneMessage -> {
      latch.countDown();
      if (tombstoneMessage == null) {
        log.warn("Cannot find message headers cause message is null");
      } else {
        latch.countDown();
        tombstoneMessage.getHeaders();
        log.info("Headers: {}", tombstoneMessage.getHeaders());
      }
    };
  }

  public CountDownLatch latch() {
    return latch;
  }
}

I investigated the issue a bit, and it seems that the reason could be in this place in the code:

Are there any updates on this?
Being able to handle tombstone messages while preserving headers is pretty crucial - if I'm going to be consuming a tombstone, obviously I need to know about the context behind the deletion so I can act upon it.
Please can the developers not return .accept(null)? This whole if statement is unnecessary, simply always return .accept(extractedValue) - really unsure why this code to remove information even exists.

@PiotrMichalowski96 seems like there aren't any updates by the Spring Cloud Function team at the moment, but if you're still having issues with this, I can suggest a workaround which works for me. It's annoying, but works:
Instead of
@Bean
  public Consumer<Message<KafkaNull>> printer() {
    return tombstoneMessage -> {
      latch.countDown();
      if (tombstoneMessage == null) {
        log.warn("Cannot find message headers cause message is null");
      } else {
        latch.countDown();
        tombstoneMessage.getHeaders();
        log.info("Headers: {}", tombstoneMessage.getHeaders());
      }
    };
  }

Simply use a Function<Message<KafkaNull>, Void> bean and make sure to return null:
@Bean
  public Function<Message<KafkaNull>, Void> printer() {
    return tombstoneMessage -> {
      latch.countDown();
      if (tombstoneMessage == null) {
        log.warn("Cannot find message headers cause message is null");
      } else {
        latch.countDown();
        tombstoneMessage.getHeaders();
        log.info("Headers: {}", tombstoneMessage.getHeaders());
      }
      return null;
    };
  }

and in your YAML, create a
printer-out-0: binding with the destination set to the same as the input binding for printer-in-0 (this prevents unnecessary topics being created).
Basically, looks like this bug (although from the code it seems intentional?) only is exhibited on Consumers, whereas Functions are left intact. This solution creates a Function which basically acts as a consumer and then returns null to make sure nothing is actually published.

Sorry, we were busy with our annual conference, back now and will look shortly

@PiotrMichalowski96 @jamfor352 This was indeed a regression issue. It is now fixed upstream in main (4.1.x) and back-ported to 4.0.x. Sorry for the delay in fixing and thanks for pointing out this issue.


Feature/GitHub workflow win mac

Hello,
inspired by a conversation on a PR on py-staticmaps, this PR adds windows and macOS to the github workflow.
It contains a dirty hack for pylint on windows only as it complains about no-member.
A lot of reading on the internet and testing various solutions brought me to this hack ;-).
I don't know if You'd like to have things like this on Your repo.
Take it as You like ...
Cheers
LT

Sorry,
that was too quick copy-and-paste


[DOC] Flat_Object Field Type Documentation

What do you want to do?

[ ] Add new documentation

Tell us about your request. Provide a summary of the request and all versions that are affected.
Field Type: Flat_Object
Version: 2.7
This feature is adding a new field type to OpenSearch Core.
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.
Issue: https://github.com/opensearch-project/OpenSearch/issues/1018
PR: https://github.com/opensearch-project/OpenSearch/pull/6507

Found a duplication issue: https://github.com/opensearch-project/documentation-website/issues/2657
Closing this one. Please addressed the #2657


Add possibility to use NGINX

Would be great if usage of NGINX will be possible. And even better - have an ability to install both web-servers.

I knew someone would open this ticket :)
I already have a geerlingguy.nginx role that I'm using on most of my production servers, so I'm interested in this too. The main thing I may need to do is abstract virtualhost configuration a bit so the same config.yml settings will work with either Apache or Nginx.

Also, there are now a few other Apache-specific configuration bits (like adding the www-data user to the dialout group so permissions are better-configured for Drupal 8/Apache 2) that I'll need to take into account.

+1 for nginx.

+1 for nginx.

Also see related config for the drupal-pi project (for those wishing to see an example of Ansible + Nginx with Drupal): https://github.com/geerlingguy/drupal-pi/blob/master/templates/drupal.conf.j2

So... this is a whole lot easier than I originally thought it would be. Testing out some other things now.

Also, to @BR0kEN- — I'd rather not support both servers running simultaneously because of the slight additional complexity that may add. While it's perfectly valid to see someone use something like Nginx for a balancer, Varnish for reverse proxy, and Apache for webserver, I don't want to support that kind of configuration.
For 99% of sites, it's better to standardize on either Apache or Nginx for as much of the stack as possible. And with Nginx, if you configure caching, you might not need some of the extra features of Varnish either, which makes your stack that much simpler (that's how I'm running most of my Drupal infrastructure nowadays—Nginx == load balancer + Nginx == reverse proxy and general webserver. Makes configuration so much simpler.


Aggregations with multiple outputs

Some aggregations like drop_duplicates or groupby-aggregate produce dataframes or series.  Currently these output a dask.dataframe object with a single partition.  However, in cases of high cardinality this may not be optimal and we may instead want to output a multi-partition object.
As an example, consider calling drop_duplicates on a series with very many unique objects or performing a groupby-aggregate with very many groups.  In these cases we are often bound by the tail end of the tree reduction, because the intermediate results are quite large and need to be moved many times.
We can reduce this cost by splitting the dataset in the middle of the reduction along some consistent hashing function, probably after the first reduction step.
Example
For drop duplicates I might do something like the following
Bad
s.drop_duplicates()  # ends with a single large partition, probably bad

Good
s2 = s.map_partitions(M.drop_duplicates)  # first round of reductions
h = s2.apply(myhash) % 10  # splitter
s2s = [s2[h == i] for i in range(10)]  # split to ten dask series with disjoint elements
s3s = [ss.repartition(npartitions=1) for ss in s2s]  # combine and drop_duplicates again
s4s = [ss.drop_duplicates() for ss in s3s]
s5 = dd.concat(s4s)  # bring back to single series

There are better ways to do this, like with pd.cut and such.  The above is just minimal pseudocode.
Analysis
This produces a dask Series with 10 partitions with only unique elements.  We suffer a 10x blowup in number of tasks but spread around the data more and reduce the total depth of the reduction tree.  Communication is better spread across workers.  We did the first round of reductions first, in hopes of minimizing communication.  In principle one could imagine interleaving many rounds of splitting and re-partitioning during the tree reduction; I suspect that in practice a single round is probably sufficient up to decently large scales.
cc @jreback @jcrist

One thought would be to bake this in to apply_concat_apply as optional keywords that would be passed through all of the reductions.  For example we might provide two inputs:

A function to determine the hashable object by which we can split.  This might be lambda df: df.index in the case of groupbys or lambda df: df in the case of drop_duplicates, where we need to hash the entire dataframe.
Information on how many times to split the output.  This might be a list of integers in the general case, which specifies the split factor before every round of combination or single integer in a special case which splits exactly once after chunking and before the first round of combinations.

In the common case I don't think that we want this active at all.

Fixed by #1808.


Can't play our sound and AV files

Apparently we can't play our sound and AV files any longer and I don't think its because of our pdf viewer. Can you explain that? Before we didn't have any problems with that.
See: http://www.soundeffects.dk/article/view/5184/5430
Regards
Niels Erik Frederiksen
Link to PDF file (or attach file here):
Configuration:

Web browser and its version:
Operating system and its version:
PDF.js version:
Is an extension:

Steps to reproduce the problem:
1.
2.
What is the expected behavior? (add screenshot)
What went wrong? (add screenshot)
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

There has never been support for audio and video annotations in PDF.js. There is a work-in-progress PR, but it did not made it to master yet. You must have used another PDF viewer before that did have support for this feature. Closing as answered as the audio/video annotations are being tracked in #2787.

One on page 4? PDF.js does not support playback of the "Screen" annotations. I don't see any other PDF readers can, bot Adobe Reader can if unsafe feature is enabled.

Before we didn't have any problems with that.

Please explain. Did you use other version of PDF.js, browsers, etc? I recommend to fill out the requested Configuration section. As is the issue is incomplete.


Source code showing up on Google Search on load

[X] I am on the latest Cerebro.app version

[X] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: Fedora 26

Cerebro.app version: (0.3.1)

Relevant information from devtools (See above how to open it): Opened it, but not sure what information would be relevant.

Issue
When opening a Google search page from Cerebro, A lot of source code shows up briefly before loading the page. This doesn't happen after refreshing or typing in the URL again. More information can be provided if necessary.

I came here to open an issue exactly about this.
+1!

Thanks for the issue! I've updated cerebro-google plugin with fix, so you should have it automatically (or just uninstall/install google plugin if you want it faster)


Provide binary via pip.

When installing tileserver with pip (or similar tools) you get a binary for tilequeue, but not tileserver.
I believe entry_points needs to be specified for tileserver.
I've not made use of entry_points before, but from my reading there needs to be a 'tileserver = tileserver.__init__:something' in a dict.

Note: The workaround for this is something like python ve/lib/python2.7/site-packages/tileserver/__init__.py config.yaml

Confirmed working


Fix all the scripts

Fixed some scripts which were broken because of mine and Frank's previous PRs.
Basically, I had to initialize the prior joint angles, velocities and torques.

@gchenfc gentle reminder


dynamic options in chart.tsx

I want dynamic options, not only data, in the chart, like you can change ticks, borders, min, max, colors and more in the "Y" axe, So will be awesome if the chart update when the options change

you can actually change options yourself with current implementation. Here's the simplest and known by me way to do this so far:
const [minYScale, setMinYScale] = createSignal<number|undefined>(undefined)

return (
         <DefaultChart
                    width={chartConfig.width}
                    height={chartConfig.height}
                    fallback={fallback()}
                    type={chartType()}
                    data={chartData()}
                    options={{
                        scales: {
                            y: { min: minYScale() }
                        },
                    }}
                />
)

Just as an example. I've just tested, it will work and the scale will be changed accordingly.

my bad lol. I didn't notice I've put createEffect on merged.options already. Will be possible next update. Sorry


Use react-reconciler instead of using react-fiber-export

I haven't found any problems with it yet. As far as I know it's good to merge.

And, yeah, it's been a little while coming, but I had to create the @types/react-reconciler (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/29005) and @types/schedule (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/29008) packages in order to have the TypeScript definitions.


[Mastodon] Update user profile URL

Fixes #10078
See the description and discussion on #10078 for more information and for the rationale behind this solution.

Thanks.
I know this is a really minor change, but I'm not going to get a chance to deploy it for a while due to some unrelated issues.


adding a meme generator script

Added a meme generator script. To run you just have to click the run all button.

@amanmakhija add an issue for the same PR

@amanmakhija add an issue for the same PR

I didn't get it.

@amanmakhija add an issue for the same PR

#106 is the issue for this PR and has already been opened and assigned to me.

@amanmakhija

Getting error while executing
Please fix or provide a requirements.txt for the script

@amanmakhija  Getting error while executing Please fix or provide a requirements.txt for the script

I've pushed the updated code for the meme generator issue.

Don't forget to give a ⭐ & Happy coding!. 😊


Nesting of properties

Currently there seems to be an issue with the nesting of properties,
var schema = {
  type : "object",
  properties: {
    comment: {
      title: "Comment",
      type: "string"
    },
    "color": {
      "type": "object",
      "properties": {
        "hasFave": {
          "title": "Do you have a favourite colour?",
          "type": "string"
        }
      },
      "oneOf": [
        {},
        {
          "properties": {
            "hasFave": {
              "enum": ["no"]
            }
          }
        },
        {
          "properties": {
            "hasFave": {
              "enum": ["yes"],
              "fave": {
                "title": "Your favourite colour",
                "type": "string",
                "enum": ["-", "red", "green", "blue" ]
              }
            }
          }
        }
      ],
      "x-hints": {
        "form": {
          "selector": "hasFave"
        }
      }
    }
  }
};

The 'fave' property will not render now, this can be remedied by moving the 'fave' property up one level, but that will only make it a pseudo child of 'hasFave' (i.e the path of fave will be ['color', 'fave'] not ['color', 'hasFave', 'fave'] as it should be.

hasFave is already a property of type string. So it can't have children. IMO having color/fave and color/hasFave is the way to go.

What could be done is to make it so that selection of string will yield an internal value like
 { 'value' : 'foo' } this would make it so that you could nest like like I mentioned.

The thing is, you have defined that hasFive is a string. And that's what makes oneOf work. You can't change it inside of a oneOf branch, to object type


CyberSource: Make :ignore_avs and :ignore_cvv settable on a per-transaction basis

This small change makes it possible to create a Gateway instance with one ignore_avs or :ignore_cvv setting, and then override it in a single payment invocation.
I hope this is a useful feature. I would however love feedback on the tests as this is my first active_merchant contribution. Is the testing at an appropriate level?

@rud the tests look great, but with your current code, if @options[:ignore_avs] is true, and I set options[:ignore_avs] to false, then it will still end up as true, right? I think you need to tweak the logic, and add a test to cover the case.

@ntalbott do'h, an excellent point - I'll get that sorted right away

@ntalbott fixed in 86f9605, thank you for the review

Looks good. @ntalbott is this ready to merge?

@wvanbergen :+1:.

Merged!

Awesome, thanks!


Discord?

do you have any discord?

Hello! We do, but we didn't shared it publicly until now. You're welcome there anyways 😉:
https://discord.gg/X5mthm2q8q


[BUG] Mixin library is not compatible with finenv.RetainLuaState

Describe the bug
The mixin.lua library is not compatible with the finenv.RetainLuaState property introduced in RGP Lua 0.60.
To Reproduce

Run the following script.

local mixin = require("library.mixin")
dialog = finale.FCCustomLuaWindow()
finenv.RetainLuaState = true

Run it a second time.

Expected behavior
The second time the script fails on
dialog = finale.FCCustomLuaWindow()

with
...mixin.lua:200: bad argument #1 to 'pairs' (table expected, got nil)"

Desktop (please complete the following information):

OS: macOS 10.12.1 (Monterey)
Finale 27.1
RGP Lua Version 0.61

Additional context
I tried changing mixin.lua:446 to
finale_ = finale_ or finale

but it makes no difference. I also tried this script:
if not finenv.RetainLuaState then
   mixin = require("library.mixin")
end
dialog = finale.FCCustomLuaWindow()
finenv.RetainLuaState = true

but it also makes no difference.
I'm still investigating it, but I though I would raise the issue so we know about it.
@ThistleSifter

More information:
I was able to fix the issues with finenv.RetainLuaState by changing the get_parent_class function to use finale_ instead of _G.finale. But now the following script fails, and it fails identically in RGP Lua and JW Lua. This is with no edits to mixin.lua
local mixin = require("library.mixin")
local dialog1 = finale.FCCustomLuaWindow()
print("ClassName of dialog1 is "..dialog1:ClassName())
local dialog2 = finale.FCCustomLuaWindow()
print("ClassName of dialog2 is "..dialog2:ClassName())

It fails because dialog2 comes back nil.
A comment from @ThistleSifter would be most helpful, because this is no longer an issue with RGP Lua.

Ah, thanks for the heads up. Looking into this now.