chore: use helper method for evicting all pg user related cache

Description

The following code introduces a wrapper around the evictPermissionGroupForUser cache which can then be extended  for further similar use cases with changes if required.

Fixes https://github.com/appsmithorg/appsmith/issues/20567
Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Chore (housekeeping or task changes that don't impact user perception)

How Has This Been Tested?

Since this is just a wrapper around an existing function, there is no change in User Experience.

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/ok-to-test sha=e5adb81

/ok-to-test sha=dff7036

Flaky Tests:

GitSyncedApps_spec
Basic_spec
Button_onClickAction_spec
inline_editing_validations_spec

/ok-to-test sha=431cb68

UI test: https://github.com/appsmithorg/appsmith/actions/runs/4165308562
Non-flaky tests:

cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/DatasourcePageLayout_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/Filepicker/FilePicker2_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/Form/Form_With_CheckBox_spec.js

/ok-to-test sha=7e15fdc


Speed up builds by caching containers

It might be worthwhile to cache the images to speed up the build process, it could also lead to slightly less fragile tests due to Dockerfile not being deterministic.

Eh.. don't feel like managing my own storage outside of dockerhub, will just wait for the resolution of: docker/docker#20316


README.md - update audio example to function correctly

The example for audio only has 2 inputs for the navigator.getUserMedia function, which causes that code to fail.  I didn't see why you had two slightly different examples for audio, but only one for everything else, so I just consolidated them.  Additionally you aren't 100% explicit as to where you get the "btnStopRecording" and "audio" variables.
With this code someone should be able to copy and paste the example into their webpage and everything will just work.

Simple-demos has a separate directory:

https://github.com/muaz-khan/RecordRTC/tree/master/simple-demos


Enhancement: graph subscription add allow subscription for Event Hubs and Event Grid. Closes #6050

Closes #6050

@milanholemans Not sure why, but run actions/upload-artifact@v4 failed.

Let's give it another try 😊

That seemed to work, we'll try to review the PR ASAP!

Merged manually, thank you!


Class docstring and __init__ docstring has no visual separation

Take a look at this example:

"Construct a new two-local circuit" is from the __initi__ method docstring while the code examples are from the Class level docstring but there is no visual separation between the two which can be confusing.

This class and init merge is more how things are configured than a "bug" - see
https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autoclass_content
and for example in Terra https://github.com/Qiskit/qiskit-terra/blob/7955d92d3e8c6eb8055d29ce334a6fffeeb1310f/docs/conf.py#L90


Cherry pick #11487 and #11560 to branch-2.7

##Motivation
Cherry pick - Add backoff for setting for getting topic policies(#11487, #11560) to branch-2.7.
For some of the methods are different with the master branch, using git cherrypick -x will be failed. So I have to move the changes one by one.

Why didn't you use 'git  cherrypick -x'?
If you do it that way there is a better link to the original commits.
If they do not apply cleanly please explain

Can you please write in the description, and possibly the title, a summary of the changes?
Otherwise it is tricky for people reading the release notes and the commit messages to understand the meaning of this patch.

Sorry for this, I have changed the description.

Why didn't you use 'git cherrypick -x'?
If you do it that way there is a better link to the original commits.
If they do not apply cleanly please explain

For some of the methods are different with the master branch, using git cherrypick -x will be failed. So I have to move the changes one by one.

@eolivelli

Why didn't you use 'git cherrypick -x'?

There are too many conflicts with branch-2.7. we are not able to cherry-pick the change from the master branch, so push a PR to fix the branch-2.7 directly.


admin: Add support for comment search by URL

Checklist

[x] All new and existing tests are passing
[x] I have added an entry to CHANGES.rst because this is a user-facing change or an important bugfix
[x] I have written proper commit message(s)

What changes does this Pull Request introduce?

Added support for searching comments by URL in the admin interface. This includes changes to the backend to handle comment URL queries and extract comment IDs, and frontend changes to add a search input to the admin page.

Updated admin CSS to include styles for the new search input and button.

Modified the fetchall method in comments.py to accept an optional comment_id parameter for fetching a specific comment by ID.

Updated the admin HTML template to include a search form that allows inputting a comment URL for search.

Updated the admin method in views/comments.py to handle the comment_url query parameter, parse the URL to extract the comment ID, and fetch the corresponding comment.

Why is this necessary?

Closes https://github.com/isso-comments/isso/issues/642
Demo:

If I see this correctly, the search only succeeds if you supply both the thread URL as well as a per-thread comment id.
What about admins who would want to look up only http://localhost:8080/demo/, e.g. the thread URL, to moderate all comments for a particular blogpost? Since this was merged already, could you add that in a follow-up PR?

Yes, this PR implements the requested search for specific comments. I agree that we could make it even better by allowing comments to be searchable by thread URL.

Could you create a follow-up PR? I would argue that admins most often would search for threads, not comments.

Added a new PR to search for comments by thread URL: https://github.com/isso-comments/isso/pull/1020


People Picker

Q
A

Bug fix?
no - yes?

New feature?
no - yes?

New sample?
no - yes?

Related issues?
fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request? Upgraded SPFx to 1.8.0

Please describe the changes in this PR. Sample description or details around bugs which are being fixed.
Upgraded the solution to SPFx 1.8.0

thx @msekkappan, appreciated.


Restore backup configuration

hey, first i want to say thank you for you hard work,
i just installed your addon and i dont want to configure all the devices again, is it possible to upload a ".bk" file to the backup folder?
thank you

i just came up with another issue, did you exposed the port on which habridge sends the pairing command? i can't get it to pair

I can update the add-on to map the share folder to /share.  You could then upload your backup to a folder on the share share over samba then restore it from /share folder.  I'll check in that change tomorrow.
Can you clarify what you mean by pair?

Hey. Mapping theshare folder will be great. Thanks.
Pairing is the ability to pair the habridge with the Google home app. (Adding the Philips Hue Account)
One more thing. Since im using SSL in my hass configuration im nkt able to  add the iframe panel.
You cant surf to a non SSL page if u r using ssl in hass.
Is ot possible to map the ssl folder as well and run the habridge withh ssl certificates?
Much appreciated
David

Same ssl request for the node red addon

I've updated the HA Bridge add-on to fix the discovery issue with Alexa.  It was already working for me with Google Home.  To fix the Alexa issue, I had to add a configuration parameter for the server IP, which needs to be set to the IP of your hass.io machine.
I also migrated the config to /share/habridge since backups can only use relative paths.  It should automatically move your existing config from /data to /share/habridge for you.
Lastly, I don't see a way to configure SSL for HA Bridge, so it looks like you'll need to setup a separate reverse proxy to overcome that issue.

@notoriousbdg that was fast! great job! thank you very much
what kind of proxy to you recommend to use for the ssl issue?
are you looking for more nice addons ideas? ;)
have a great day

There are 2 nginx add-ons available (that I know of).  The first one is the built-in one (https://home-assistant.io/addons/nginx_proxy/), but it doesn't appear to have a way to add additional ports.  The second one is https://github.com/bestlibre/hassio-addons/tree/master/nginx_proxy might work, which looks like it might work if you create a separate hostname and cert for HA Proxy.
I haven't tried either of them yet, so I can't say for sure that they work for this use case.


[ethers] Expose ABI in generated code

I'm using deployMockContract from @ethereum-waffle/mock-contract and it requires an ABI for it to be called. Typechain currently doesn't expose this but the abi constant is in the generated factory file.
Can there be a configuration option to expose the ABI?

we can also ask @sz-piotr who works on Waffle -- do you have any advice or opinions in this case?
(some day maybe  a collab package with Typechain? 😉)

Actually i guess if i just turn on resolveJsonModule in tsconfig.json, I can still get types from the compiled artifacts. So this can just "work". Really long import paths though :c.

I am longer a maintainer of waffle. Please ask @marekkirejczyk, thanks :)

Really long import paths though :c.

If that's the only concern then you can add a path alias/mapping to your tsconfig -- I use that a lot in my projects, including an entry for contract JSONs like "@contract-abis/*": ["....build/contracts/*"]

This would be nice. I only need it for tests as well but if this does leak into production, I'd prefer to only bundle the abi once.

@ryanleecode just to confirm, which target are you using?

@ryanleecode just to confirm, which target are you using?

ethers-v5

I agree that this would be useful in some cases. I actually used to import the json files too, before the factory classes were added to the ethers target here. @krzkaczor what do you think?
How about adding the data as abi and bytecode static readonly properties of the factory class?
IMO it feels better than exporting very generic names like abi or bytecode from each factory file.

How about adding the data as abi and bytecode static readonly properties of the factory class?
IMO it feels better than exporting very generic names like abi or bytecode from each factory file.

Yes I think the only way to make this useful is to expose it as part of the factory class (not module).
I am fine with this change. The only problem that I see is that hardhat users confuse these factories often with factories from hardhat but I am planning to address it in a separate ticket (https://github.com/ethereum-ts/TypeChain/issues/359).

@ryanleecode are you up to make a PR with this?

Gonna have to pass on this. I'll leave it up to you fellas


Shader Variants / Huge ammount of Shader Variants

Hello there,
so i have a problem with the shader variants in the build. I cant include the two PBRGraphs in always include. If i do so he will compile over 200.000 thousands of shader variants.
So i decided to track down the shader when i hit play and save the Shader as a ShaderVariantCollection from the graphic settings.
Still he compile a huge ammount of shader variants in the build. So the shader ends up with 180MB in the build.
So i think this is far too much in a webgl build only for the shader ?
Can you assist here or is it a bug ?
Cheers,
Marcus

Hello everybody,
in WebGl Build i managed to strip the Shader, UnityPBRGraph, from 180MB to nearly 2MB.
I will share my code how i have achieved this. So first in PlayMode i made a ShaderVariantCollection and recorded it through the Graphics-Settings in Unity. Than use the ShaderVariantCollection for the Preloaded Shader section in the Graphic-Settings.
When you will use the script i only tested it on WebGl that the shader is still working with those stripped keywords.
And take care of that you have to make a clean Build when you will use the script, otherwise he will not use this script,
When something is broken with youre shader you can uncomment the case lines.
When you have other keywords in WebGl than this you have to analyze youre keywords that youre using.
You can achive this by adding a line in the foreach loop at the beginning with Debug.Log(key.name);
Than you can analyze those keywords and set them in the case lines within, when youre sure you dont need them.
And create a script with these lines of codes:
public class StripShaderVariants : IPreprocessShaders
{
public int callbackOrder { get { return 0; } }
private string foundKeywordSet;
private bool valueFound;
public void OnProcessShader(Shader shader, ShaderSnippetData snippet, IList<ShaderCompilerData> data)
{
    if (shader.name == "UnityGLTF/PBRGraph")
    {
        //for (int i = 0; i < shader.keywordSpace.keywordCount; i++)
        for(int i = 0; i < data.Count;i++)
        {
            ShaderKeyword[] keywords = data[i].shaderKeywordSet.GetShaderKeywords();
            foreach (var key in keywords)
            {
                switch (key.name)
                {
                    case "_ADDITIONAL_LIGHTS_VERTEX":
                    case "DIRLIGHTMAP_COMBINED":
                    //case "LIGHTMAP_ON":
                    case "LIGHTMAP_SHADOW_MIXING":
                    case "SHADOWS_SCREEN":
                    //case "_ADDITIONAL_LIGHTS":
                    case "_ADDITIONAL_OFF":
                    case "POINT_COOKIE":
                    case "_CASTING_PUNCTUAL_LIGHT_SHADOW":
                        valueFound = true;
                    break;
                    default:
                        valueFound = false;
                        Debug.Log("No Shader Keyword has been found and not stripped!");
                    break;
                }
                if (valueFound)
                {
                    data.RemoveAt(i);
                    --i;
                    break;
                }
            }
        }
    }
    //Debug.Log(data.Count);
    if (shader.name == "UnityGLTF/PBRGraph" && snippet.passName == "BuiltIn ForwardAdd")
    {
        //Debug.Log("Stripping pass: " + snippet.passName + " from shader: " + shader.name);
        data.Clear();
    }
    if (shader.name == "UnityGLTF/PBRGraph" && snippet.passName == "BuiltIn Deferred")
    {
        //Debug.Log("Stripping pass: " + snippet.passName + " from shader: " + shader.name);
        data.Clear();
    }
}

}
So Cheers everybody :)
Marcus

That's strange – these keywords should be stripped by Unity automatically. Thanks for the code snippet.

@MarcusGT076 Can you give an example on how to do this for UWP. I have the same problem, but this code won't compile for a UWP build

@ArDevKarl I dont know how to do it in UWP but i can tell you what i did so far. Maybe its also working in the UWP lets give it a try.
 There is a section Preloaded Shaders. There is also a clear button, so clear everything. Than start youre application in play mode.
After that he should show you Currently tracked: x Shaders, x total Variants.
Save this to an Asset with the button. Search for youre ShaderVariantCollection that you saved at mark it as a adressable. The next step is to mark also the shader that you use as a adressable. The ShaderVariantCollection and the shader itself has to be in the same group of the adressables. Even you can strip out some keywords that youre sure that you will not need in the ShaderVariantCollection. Than in addition use my script. Create a editor folder next to the asset folder and put it there.
I am not sure if the workflow will be 100% the same but it should be similar in some cases.
Let me know if its helping :)
Cheers,
Marcus

@MarcusGT076 Ok turns out, I've not needed any additional scripting to strip unneeded shaders. The Unity documentation about this is a bit confusing. My mistake was to add the shaders to "Always Include".
Thank you, for the answer. :)

Hey, the latest version now includes Shader Pass stripping in the UnityGltf Build Settings

Also two predefined ShaderVariantCollections: one for BuildIn and one for URP/HDRP

This should help a lot with reducing build time and shader size :)
I will close this issue, please create a new one when there are still some issues to this topic. Thanks!


Use GitHub Projects to organize presentation of issues?

Although I'm comfortable with fast skimming existing issues and doing homework before meetings, I can understand if people find it hard to keep a track of what's in focus or not. Maybe we should make it part of guidelines to use a Kanban style project tracker to improve mutual understanding across participants of esp. timed meetings?

This would help, especially as issues become more overlapped. There is the label view of course but IMO a Kanban-style board would look nicer.


Introduce abstraction around InstanceConfigs

This PR introduces a new data object called ServerConfig and associated
shims to convert InstanceConfig change notification into ServerConfigs.
This will provide a framework for future work to move away from storing
ambry specific server metadata in the InstanceConfigs, which comes with
some Helix performance and reliability advantages.

Codecov Report

Merging #1522 into master will increase coverage by 0.01%.
The diff coverage is 96.55%.

@@             Coverage Diff              @@
##             master    #1522      +/-   ##
============================================
+ Coverage     73.80%   73.82%   +0.01%
- Complexity     8077     8108      +31
============================================
  Files           565      568       +3
  Lines         44276    44414     +138
  Branches       5597     5601       +4
============================================
+ Hits          32680    32789     +109
- Misses         9962     9987      +25
- Partials       1634     1638       +4

Impacted Files
Coverage Δ
Complexity Δ

...ub/ambry/clustermap/HelixClusterChangeHandler.java
100.00% <ø> (ø)
3.00 <0.00> (ø)

...lustermap/InstanceConfigToServerConfigAdapter.java
87.50% <87.50%> (ø)
11.00 <11.00> (?)

...java/com/github/ambry/clustermap/ServerConfig.java
92.68% <92.68%> (ø)
12.00 <12.00> (?)

.../com/github/ambry/frontend/StitchRequestSerDe.java
100.00% <100.00%> (ø)
3.00 <0.00> (ø)

...github/ambry/clustermap/DatacenterInitializer.java
97.26% <100.00%> (+0.03%)
16.00 <0.00> (ø)

.../ambry/clustermap/DynamicClusterChangeHandler.java
91.66% <100.00%> (+0.61%)
58.00 <2.00> (-4.00)
:arrow_up:

...b/ambry/clustermap/SimpleClusterChangeHandler.java
94.27% <100.00%> (+2.44%)
50.00 <8.00> (-1.00)
:arrow_up:

.../github/ambry/messageformat/CompositeBlobInfo.java
87.87% <100.00%> (-0.36%)
16.00 <1.00> (ø)

...ls/src/main/java/com/github/ambry/utils/Utils.java
77.77% <100.00%> (ø)
123.00 <4.00> (+2.00)

...ub/ambry/network/SocketRequestResponseChannel.java
85.93% <0.00%> (-9.38%)
10.00% <0.00%> (-2.00%)

... and 37 more

Continue to review full report at Codecov.

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


Not converting decimal location correctly comp 3

It is not able to convert the comp 3 decimal location. As a result it is only showing one row of data in table.
Where as we have 100 rows of data.
Any idea where I am going wrong?
Fir the S9(15)V9(2) COMP-3 Field!

Can you please post the full copy book you are using?  Also - is it an FB or VB file?

thank you for your replying
ASCIIofebcdic_test_file.txt
the copybook is below . it is nt converting the last column and it is only showning 1 row
test_ebcdic_159.txt

I have replied on github. Please help It is of fixed length. FB
Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Patrick Watts<EMAIL_ADDRESS>Date: 17/02/2017  02:29  (GMT+05:30) To: rbheemana/Cobol-to-Hive<EMAIL_ADDRESS>Cc: tejasbharambe<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [rbheemana/Cobol-to-Hive] Not converting decimal location correctly comp 3 (#28)
Can you please post the full copy book you are using?  Also - is it an FB or VB file?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/rbheemana/Cobol-to-Hive","title":"rbheemana/Cobol-to-Hive","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/rbheemana/Cobol-to-Hive"}},"updates":{"snippets":[{"icon":"PERSON","message":"@datawarlock in #28: Can you please post the full copy book you are using?  Also - is it an FB or VB file?"}],"action":{"name":"View Issue","url":"https://github.com/rbheemana/Cobol-to-Hive/issues/28#issuecomment-280458498"}}}

Would you be able to post the raw ebcdic data?

@datawarlock.  I have emailed you the raw ebcdic data

Raw ebcdic data is attached here :
ebcdic_test_file.txt

here is the screenshot after running the query;

It is not converting the decimal properly and it is only displaying one row.

It looks like CobolSerde doesn't correctly deduce a variable length for cobol copybook ending with COMP-3 variable.
After appending PIC X(3). variable to copybook and its binary value (b'\xc7\xc7\xc7' for example) to binary ebcdic data, SPrice seems to get correct values.
hive> select * from c2h_mod limit 20;
OK
 Grover                          23032014  Olympia                                              Ohio                                                17012016 17943 14940.82 GGG
 Warren                          05082015  Annapolis                                            New York                                            22092014 18140 38748.28 GGG
 Millard                         08082013  Indianapolis                                         California                                          21062015 14879 29366.57 GGG
 William                         20092015  Albany                                               Utah                                                15112015 20231 60097.81 GGG
 Millard                         02052013  Topeka                                               California                                          06022014 22534 17285.28 GGG
 Grover                          19032013  Annapolis                                            Oregon                                              23112014 7674 32356.41 GGG
 James                           18042014  Sacramento                                           Idaho                                               25072015 16532 53500.82 GGG
 Bill                            03122015  Denver                                               Maryland                                            22042014 11734 50482.58 GGG
 Woodrow                         31052015  Pierre                                               Florida                                             02122014 10618 31610.08 GGG
 Woodrow                         10042014  Madison                                              Tennessee                                           03082014 22276 6665.08 GGG
 William                         25042013  Lincoln                                              Arizona                                             10022014 18289 62958.86 GGG
 Thomas                          05112013  Dover                                                Iowa                                                15022015 8532 27927.43 GGG
 Chester                         23102015  Topeka                                               Indiana                                             29082014 16389 17528.41 GGG
 Rutherford                      09072015  Montpelier                                           Hawaii                                              08072014 18347 13844.57 GGG
 Lyndon                          25032015  Madison                                              Massachusetts                                       19032014 19076 59804.13 GGG
 Bill                            26102015  Austin                                               Arizona                                             18072015 18174 21841.38 GGG
 Dwight                          08072014  Boston                                               Utah                                                08072015 23269 52407.53 GGG
 Jimmy                           11072013  Columbia                                             Kentucky                                            05102015 8563 23780.61 GGG
 George                          19022014  Trenton                                              Kansas                                              12062015 17030 11216.41 GGG
 Herbert                         09052013  Little Rock                                          Colorado                                            05012015 17692 53954.65 GGG
20 rows selected (0.106 seconds)
hive> describe extended c2h_mod;
OK
customername varchar(30)  10 CustomerName PIC X(30)|0|30
purchasedate varchar(8)  10 PurchaseDate PIC X(8)|30|8
city varchar(50)  10 City PIC X(50)|38|50
state varchar(50)  10 State PIC X(50)|88|50
mdate varchar(8)  10 MDate PIC X(8)|138|8
mprice bigint  10 MPrice PIC S9(9) COMP-3|146|5
sprice decimal(16,2)  10 SPrice PIC S9(14)V9(2) COMP-3|151|8
eoc varchar(3)  10 EOC PIC X(3).|159|3

Thank you soo much @ankravch.
Could you please elaborate on why that is happening?.
Any idea where to correct that code?

How to append that binary value to the ebcdic data file?

i added the filler field with pic X(3) but still it is just displaying one row and in the filler column it is displaying the first 3 characters of next field .

i guess we need to append the binary data to the EBCDIC file as well

i tried appending the binary data to the binary file .
i also edited the copybook accordingly .
it is successfully converting the first row correctly, but it is not displaying all the rows . what might be the issue?

this is the output we are getting. why just one row?
@ankravch. could you brief us about how did you create the table.?
what are the steps you followed?

issue solved .
Thank you so much @datawarlock @ankravch @rbheemana for everything you did. It was a great help. This world needs more people like you all.

@tejasbharambe Is there something wrong with code? Is the issue genuine? If yes, How did you resolve it? Please post details.

Done the code is perfectly fine. Not an issue.
Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Ram Manohar Bheemana<EMAIL_ADDRESS>Date: 03/03/2017  20:07  (GMT+05:30) To: rbheemana/Cobol-to-Hive<EMAIL_ADDRESS>Cc: tejasbharambe<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [rbheemana/Cobol-to-Hive] Not converting decimal location correctly comp 3 (#28)
@tejasbharambe Is there something wrong with code? Is the issue genuine? If yes, How did you resolve it? Please post details.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/rbheemana/Cobol-to-Hive","title":"rbheemana/Cobol-to-Hive","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/rbheemana/Cobol-to-Hive"}},"updates":{"snippets":[{"icon":"PERSON","message":"@rbheemana in #28: @tejasbharambe Is there something wrong with code? Is the issue genuine? If yes, How did you resolve it? Please post details."}],"action":{"name":"View Issue","url":"https://github.com/rbheemana/Cobol-to-Hive/issues/28#issuecomment-283969206"}}}

Hello ram, I have been trying to decode this code but I have been facing some difficulties. If you don't mind and if u have time could you please explain me the flow of the code in short. Use of each class atleast. Thanks in advance.
Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Ram Manohar Bheemana<EMAIL_ADDRESS>Date: 03/03/2017  20:07  (GMT+05:30) To: rbheemana/Cobol-to-Hive<EMAIL_ADDRESS>Cc: tejasbharambe<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [rbheemana/Cobol-to-Hive] Not converting decimal location correctly comp 3 (#28)
@tejasbharambe Is there something wrong with code? Is the issue genuine? If yes, How did you resolve it? Please post details.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/rbheemana/Cobol-to-Hive","title":"rbheemana/Cobol-to-Hive","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/rbheemana/Cobol-to-Hive"}},"updates":{"snippets":[{"icon":"PERSON","message":"@rbheemana in #28: @tejasbharambe Is there something wrong with code? Is the issue genuine? If yes, How did you resolve it? Please post details."}],"action":{"name":"View Issue","url":"https://github.com/rbheemana/Cobol-to-Hive/issues/28#issuecomment-283969206"}}}


Add more options to navigation drawer

Following have to added to the navigation drawer:

Developer Info
Privacy Policy

About
Privacy Policy
Settings
Logout
?

About
Privacy Policy
Settings
Logout
?


What is the best practice for adding 'grant_type' parameter in getAuthorizationUrl() ?

I actually did this (directly in my controller):
            // Fetch the authorization URL from the provider; this returns the
            // urlAuthorize option and generates and applies any necessary parameters
            // (e.g. state).
            $authorizationUrl = $provider->getAuthorizationUrl([
                'grant_type' => 'authorization_code',
            ]);

Is that OK or is there a better way?

That's completely fine.

Thank you very much.


Amplify CLI is not behaving as in the docs; push, codegen don't work

** Which Category is your question related to? **
Graphql API
** What AWS Services are you utilizing? **
AWS Appsync
** Provide additional details e.g. code snippets **
Amplify CLI is not behaving as expected from the docs.
Platform: Windows 10
Simply doing amplify push after initializing gives this, and no Appsync API or DynamoDB tables are being generated in the admin console:
| Category | Resource name | Operation | Provider plugin |
| -------- | ------------- | --------- | --------------- |
? Are you sure you want to continue? true
- Updating resources in the cloud. This may take a few minutes...
GraphQL schema compiled successfully. Edit your schema at ...

Also, if I change the schema.graphql file in amplify/backend/api/YOUR-API-NAME/schema.graphql file to the following, amplify push again doesn't recognize the changes, and again shows the same blank diff output as pasted above:
type Blog @model {
  id: ID!
  name: String!
  owner: User! @connection(name: "UserBlogs")
  posts: [Post] @connection(name: "BlogPosts")
}
type Post @model {
  id: ID!
  title: String!
  blog: Blog @connection(name: "BlogPosts")
  comments: [Comment] @connection(name: "PostComments")
}
type Comment @model {
  id: ID!
  content: String
  post: Post @connection(name: "PostComments")
}
# added User type model
type User @model {
  id: ID!
  name: String!
  blogs: [Blog!]! @connection(name: "UserBlogs")
}

Doing amplify push after this:
| Category | Resource name | Operation | Provider plugin |
| -------- | ------------- | --------- | --------------- |
? Are you sure you want to continue? true
- Updating resources in the cloud. This may take a few minutes...
GraphQL schema compiled successfully. Edit your schema at...

Lastly, amplify codegen add gives this, and no output, or further information:
[[LOGO]]
amplify codegen <subcommand>

  generate    Generate API code or type annotations based on a GraphQL schema and query documents.
              If you want to download schema before generating code pass --download flag
  add         Generate API code or type annotations based on a GraphQL schema and query documents
  configure   Change/Update codegen configuration

QUESTION: What am I doing wrong here, or plainly missing in the docs?

@devautor Are you using windows OS?

@kaustavghosh06 Yes, should have mentioned that (updated)!

@devautor Please use Windows Linux System to run the CLI on windows OS as recommended in the main Readme of the repo.

@kaustavghosh06 Sorry for missing that; in retrospect I had read and forgotten that!
Have no prior experience with it, is this it: https://docs.microsoft.com/en-us/windows/wsl/install-win10. Help is really really appreciated :)

@devautor Yes, you’ve got the right link.

Thank you so much for helping in so swiftly. I hope it will work, and i will update the comment as such to mention it! Thanks :)

@kaustavghosh06 Now that I am using amplify-cli from linux subsystem bash, I am getting this error on doing wsl amplify status:
| Category | Resource name | Operation | Provider plugin   |
| -------- | ------------- | --------- | ----------------- |
| Api      | webreact      | Create    | awscloudformation |
/usr/lib/node_modules/@aws-amplify/cli/node_modules/gluegun/build/index.js:13
    throw up;
    ^

Error: Cannot find module 'C:\Users\gaurav\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\amplify-provider-awscloudformation'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.keys.forEach (/usr/lib/node_modules/@aws-amplify/cli/src/extensions/amplify-helpers/show-helpful-provider-links.js:13:26)
    at Array.forEach (<anonymous>)
    at Object.showHelpfulProviderLinks (/usr/lib/node_modules/@aws-amplify/cli/src/extensions/amplify-helpers/show-helpful-provider-links.js:12:26)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at Function.Module.runMain (module.js:695:11)

In Windows file explorer, I can confirm that this directory C:\Users\gaurav\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules exists.
I have tried reinstalling amplify-cli on bash, it doesn't help.
Note that I am using bash from an amplify project directory that was already created using Windows CLI.  And yes, we’ll  be adding more documentation for windows. Thanks for the feeedback.


CLS-Compliance

Hello,

1. Thanks for this great library.
2. Can you please add the CLS-Compliant attribute to it.

I've done it for myself, but if you would update the library, I'd have to
rebuild the code and so on... :)

Big thanks in advance.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 11 Feb 2009 at 3:04

Fixed in r6.

Original comment by allon.guralnek on 25 Sep 2009 at 4:52

Changed state: Fixed
Added labels: Priority-Low
Removed labels: Priority-Medium


SameSite flag is not set when cookie is set in browser using javascript

Hello team,
I used the given JS snippet to set a cookie with SameSite=None;
document.cookie = 'cross-site-cookie=bar; SameSite=None; Secure';

But I do not see "None" value in SameSite column in Chrome Dev Toolbar -> Application -> Cookies. Is it the desired behavior?
I can see "None" value in SameSite column in Chrome Dev Toolbar -> Application -> Cookies when I try to set a cookie from http-header in a response from a server.

Hello @rowan-m ,
Can you help me understand?

Moreover,
Following two snippets work fine.
document.cookie = 'cross-site-cookie=bar; SameSite=Lax';

document.cookie = 'cross-site-cookie=bar; SameSite=Strict';

I tried this as well but it does not work,
document.cookie = 'cross-site-cookie=bar; SameSite=None';

Hello @rowan-m ,
Can you help?

@pm-harshad-mane I think the issue here may be that you are using an earlier version of Chrome. You need at least Chrome 76 for the None attribute to be registered. Earlier versions of Chrome will set the cookie, but  ignore the None value as they don't understand it. This is the intended behaviour as SameSite=None is the equivalent of the default at the moment. I've added a note to the README to hopefully make this clearer.
I would also ensure that you are setting both SameSite=None and Secure together as this will be the default behaviour later.
Let me know if that makes sense!

Thanks for the feedback @rowan-m ,
I think I am using Chrome 76, let me check again.
Makes sense to add secure flag as well, do you know from which version secure flag will become mandatory?

I've linked this from the README, both features are planned for Chrome 80.

https://www.chromestatus.com/feature/5088147346030592
https://chromestatus.com/feature/5633521622188032

Let me know if you're still having issues!

Where would i add the SameSite attribute into my html code? Can you maybe help?

The reason I need to add the SameSite attribute is because i have a payment gateway on my site, and it is not allowing any users to make payment, i even tried this myself

The reason I need to add the SameSite attribute is because i have a payment gateway on my site, and it is not allowing any users to make payment, i even tried this myself

Hello, I am facing exactly the same issue. Did you find the solution for this. Can you please share me the solution. Thank you

i'm stuck on that too. I have an iframe in a legacy application that stopped working in chrome.

Hey all, this is an old, closed issue. For problems that are specific to your particular site, it's best to raise a question under the SameSite tag on StackOverflow. Please include as much information as you can about your environment and the cookies you are using.
https://stackoverflow.com/questions/tagged/samesite


ISPN-11826 topic for deleting caches via CLI

https://issues.redhat.com/browse/ISPN-11826
Needs backport to 10.1.x

integrated! thanks @oraNod !


DisplayMemberPath not working if using App.xaml style in Android

I'm submitting a...

Bug report (I searched for similar issues and did not find one)

Current behavior

If using a combobox with a style defined in App.xaml the DisplayMemberPath property is not used.  Works if no style is set.
Expected behavior

DisplayMemberPath should work in Android as on UWP
Minimal reproduction of the problem with instructions

App9.zip
Build attached project and test on Android to see issue.  Note that removing the style from the combox resolves the problem.
Environment

Nuget Package:
Uno.UI
Package Version(s):
1.45.0-dev.1524
Affected platform(s):
- [ ] iOS
- [x] Android
- [ ] WebAssembly
- [ ] Windows
- [ ] Build tasks

Visual Studio
- [ ] 2017 (version: )
- [x] 2019 (version: )
- [ ] for Mac (version: )

Relevant plugins
- [ ] Resharper (version: )

Initial investigations:

This problem still present in last version of Uno.UI: 1.45.0-dev.1860.
This problem is not related to the style placed in App.xaml: same behavior when the <style>
is placed in the MainPage.xaml.
This problem is not Android-only: same behavior observed on Wasm and iOS.
Work-around: If you add the following lines in your style, it's working:<ContentPresenter x:Name="ContentPresenter"
  [...]
ContentTemplate="{TemplateBinding ItemTemplate}"
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
  [...]
</ContentPresenter>

source: https://github.com/nventive/Uno/blob/76d75099d93c6924313bdc35280584a42d322bb4/src/Uno.UI/UI/Xaml/Style/Generic/Generic.xaml#L713-L714

I will rename this issue to reflect the real problem.


there is no server.go in adnl package

To implement the ADNL protocol, there may have the corresponding server.go to hand with client.go in adnl package ?

Really i found a problem. Current package adnl doesn't implement ADNL. Naming problem. That's just liteserver trnsport protocol with key genertation from adnl. But ADNL really have different schema.


S3 integration tests not cleaning up after themselves

We have a ton of S3 buckets under our account. They don't contain much data, but they eat up our quota (we're unable to create more than a certain number). We should work out why the tests are leaving these buckets in place as opposed to removing them after test completion.

Oh dear. Which bucket / account is that? I'll check the S3 bill.

AWS bill is still minimal, no problem there :+1:

Yeah, we pay for the volume of storage, not the number of buckets, so it's not a big deal cost-wise. Just a PITA.


Intraconv shouldn't convert links to primitives

Not sure how hard this is to implement - maybe not so bad since the HTML file has primitive in the name?
/home/joshua/src/rust/rust-clippy/clippy_lints/src/empty_enum.rs
================================================================

   16:  "    /// For further information visit [never type documentation](https://doc.rust-lang.org/std/primitive.never.html)"
        "    /// For further information visit [never type documentation](std::never)"

I guess this could also be seen as a bug in rustdoc (https://github.com/rust-lang/rust/issues/63351). But I don't think I'd expect std::primitive to work even if https://github.com/rust-lang/rust/issues/63351 were fixed.


Update sbt-scoverage to 2.0.9

About this PR
📦 Updates org.scoverage:sbt-scoverage from 2.0.8 to 2.0.9
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scoverage", artifactId = "sbt-scoverage" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scoverage", artifactId = "sbt-scoverage" }
}]

labels: sbt-plugin-update, early-semver-patch, semver-spec-patch, commit-count:1

Codecov Report
Patch and project coverage have no change.

Comparison is base (756847b) 87.22% compared to head (73eb40f) 87.22%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #787   +/-   ##
=======================================
  Coverage   87.22%   87.22%
=======================================
  Files         141      141
  Lines        1527     1527
  Branches      254      254
=======================================
  Hits         1332     1332
  Misses        195      195

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Ubuntu] move source scripts earlier

Description
We need to source helper scripts earlier as we now source os.sh in apt-configure.sh
Related issue: n/a
Check list

[ ] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

/azp run ubuntu2004, ubuntu2204


Issue 147/multi doc pathways

Summary of Changes
mr to get feedback as part of https://github.com/lyft/amundsen/issues/147
Currently blocked by amundsen-common being merged and getting feedback.
Here is current screenshot. You can see the added sections in bottom left.

Current features:

supports 0 to n separate programmatic sections
supports markdown
does not support editing
does not currently support search, but very easy to add that
supports configurable display names for the sections as well as order

Tests
Updated python api tests for configuring the order of the sections
Updated the javascript tests to the best of my ability, but I believe more tests could be used here.
Documentation
Updated some documentation on how to configure these sections
CheckList
Make sure you have checked all steps below to ensure a timely review.

[x] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"

In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

[x] PR includes a summary of changes, including screenshots of any UI changes.
[x] PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
[x] In case of new functionality, my PR adds documentation that describes how to use it.

All the public python functions and the classes in the PR contain docstrings that explain what it does

[x] PR passes all tests documented in the developer guide

Codecov Report

Merging #381 into master will decrease coverage by 2.3%.
The diff coverage is 70%.

@@            Coverage Diff             @@
##           master     #381      +/-   ##
==========================================
- Coverage   75.32%   73.02%   -2.31%
==========================================
  Files         168       28     -140
  Lines        4199     1279    -2920
  Branches      522      121     -401
==========================================
- Hits         3163      934    -2229
+ Misses       1000      311     -689
+ Partials       36       34       -2

Impacted Files
Coverage Δ

amundsen_application/config.py
100% <100%> (ø)
:arrow_up:

amundsen_application/api/utils/metadata_utils.py
72.13% <68.96%> (-3.63%)
:arrow_down:

...ication/static/js/components/common/Tabs/index.tsx

...ndsen_application/static/js/ducks/search/api/v0.ts

...ion/static/js/components/PreferencesPage/index.tsx

...tic/js/components/common/EditableText/constants.ts

...ication/static/js/components/common/Flag/index.tsx

...ts/common/ResourceListItem/TableListItem/index.tsx

...sen_application/static/js/ducks/allTags/reducer.ts

...tatic/js/components/common/ScrollTracker/index.tsx

... and 129 more

Continue to review full report at Codecov.

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

ok @ttannis this is ready for you to review!

Would be good to mention PROGRAMMATIC_DISPLAY config in https://github.com/lyft/amundsenfrontendlibrary/pull/381/files#diff-da4c534f10ac33888daef3b30ba35474 In the Flask config documentation: https://github.com/lyft/amundsenfrontendlibrary/blob/master/docs/flask_config.md
Also, maybe worth showcasing the demo screenshots above in the same document? I’d prefer that over keeping adding optional customization screenshots to the main README (otherwise it’s just getting longer and longer)
Finally maybe also worth to point to how to ingest data as introduced in databuilder https://github.com/lyft/amundsendatabuilder/pull/187?

ok @jornh documentation for frontend added. I will go back and add in some documentation to databuilder too.

Hey @samshuster below is a screenshot for what our designer would like to see, and what you have is basically almost there. The design concepts we want to maintain are:

The programmatic descriptions will be in their own section which will live at the bottom left hand panel. The reason is that since this information can be any number of descriptions, we would not want them to push down all other metadata, especially things related to quality features.
This programmatic description section will have header as seen the mocks to make it clear the the information is read only and auto-generated.
Since we do not know what the data in these descriptions will be, each description will take up the full width of the panel.
Maintain existing section header styles, more specifically here the fact that we use "Title Case", which means s3 crawler header should be rendered as S3 Crawler

hey @ttannis thanks for the great feedback!
Will be going over this later today and tomorrow

Ok @ttannis thank you so much for your feedback, learning a lot!
At this point I believe I am ready for another review. I have also made the design changes per the recommendations. Please find a screenshot of what it looks like now:

Per our long conversation about optional configuration. I have include the Flag convertText function by default.

ok @ttannis it is ready for you to take another look at it.


automatic testing sometimes failed due to timing

The current CI environment, which automatically runs a test after sending a pull request, sometimes failed even if the committed code has no error.
I'd like to solve this problem because I also ran into this problem.
At first, I checked build history, and I found several such cases.
https://travis-ci.org/node-red/node-red/builds

delay node
https://travis-ci.org/node-red/node-red/jobs/210357256
how to fix: Change the delta in approximately function from 50 to about 200.
(Date.now() - t).should.be.approximately(500,50);

trigger node
https://travis-ci.org/node-red/node-red/jobs/208285345
how to fix: Widen a range.

tail node
https://travis-ci.org/node-red/node-red/jobs/199751989
https://travis-ci.org/node-red/node-red/jobs/189677875
how to fix: Add a delay just after a flow has been loaded.

LocalFileSystem
https://travis-ci.org/node-red/node-red/jobs/213023060
how to fix: Add a delay between writing and reading.

Do you have any better idea about how to fix?  Or may I fix the problems following the above idea?

Yes, these tests do occasionally fail and it would be good to stop them doing that.
Please go ahead and make the changes you think we resolve them; just make sure the tests remain valid :)
Thanks!


ASP.NET 4.8 container does not have an access to Internet

Information
I'm using latest mcr.microsoft.com/dotnet/framework/aspnet:4.8 image. And containers launched from it does not have an access to Internet.
Actual behavior:
HTTP GET requests to any remote servers return the following error:
Unable to connect to the remote server

Expected behavior:
Applications hosted in ASP.NET 4.8 containers should be able to send HTTP requests to remote servers.
PS C:\> Invoke-WebRequest -Uri http://<IP_ADDRESS>

StatusCode        : 200
StatusDescription : OK
Content           : <!doctype html><html ...

Steps to reproduce

Run new container instance>

docker run -d mcr.microsoft.com/dotnet/framework/aspnet:4.8

Ping server by IP (to make sure that the server is accessible):

PS C:\> ping <IP_ADDRESS>

Pinging <IP_ADDRESS> with 32 bytes of data:
Reply from <IP_ADDRESS>: bytes=32 time=38ms TTL=54
Reply from <IP_ADDRESS>: bytes=32 time=39ms TTL=54
Reply from <IP_ADDRESS>: bytes=32 time=38ms TTL=54
Reply from <IP_ADDRESS>: bytes=32 time=39ms TTL=54

Ping statistics for <IP_ADDRESS>:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 38ms, Maximum = 39ms, Average = 38ms

Send HTTP GET request to the same server:

PS C:\> Invoke-WebRequest -Uri http://<IP_ADDRESS>
Invoke-WebRequest : Unable to connect to the remote server
At line:1 char:1
+ Invoke-WebRequest -Uri http://<IP_ADDRESS>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

After long investigation I've found that it's not an issue of Docker ASP.NET images, it's an issue in Docker for Windows itself.
When I run ASP.NET 4.8 containers attached to the default Docker network they do not have an access to remote servers. But if I run containers attached to "transparent" network (which I've created manually) then everything works fine.
So I'm closing this issue.


Not enough appreciation for your website

Your website did exactly what I wanted: gave me the size of a repo before cloning. Thank you!

Hi @MatthewForrester, Thank you for your kind words ❤. I don't usually get these messages, So, This really means a lot.


Keyboard focus is moving to the last list item in navigation views and items repeater.

Describe the bug
When tab'ing through an items repeater, or a navigation view (which uses one): after the tab focus returns to the items repeater (upwards or back tab direction), the focus will go to the last element of an items repeater.
Steps to reproduce the bug

Tab through an items repeater
Tab to the next element that's not an items repeater
Shift + Tab. Notice how that will focus the last element of the items repeater (vs the first)

Expected behavior
Step 3. Should focus the first element
Screenshots

Version Info

NuGet package version:
Microsoft.UI.Xaml 2.4.2
Additional context
Internal bug

A ListView, in comparison, will always focus the first element of the list, independent of whether it's forward or back tab navigation.

I think this is by design... Panels that have TabNavigation set to Once (like repeater) by default put focus on the first child they find in the tab direction you are searching from. So shift tabbing gets you this behavior.  If you want to change that behavior I think you need to use the GettingFocus handler to direct focus to the appropriate target.  @Austin-Lamb will know for sure though.

@msftedad with panels containing elements, tab lands focus on the first element and shift tab will land focus on the last element. In certain controls like ListView/ItemsView that support selection and selection follows focus, focus will land on the last selected item. The repro shows a bug where tab stops at the last element (Text after Settings) in the NavigationView again before going out. That has been fixed already and I dont see that happening in the latest WinUI3 gallery.


not support unix socks

I have a piece of test code：
package main

import (
	"fmt"
	"net"
	"strings"
)

func main() {
	var tcp net.Conn = &net.TCPConn{}
	_, ok := tcp.(net.PacketConn)
	fmt.Println("tcp", ok)

	var unix net.Conn = &net.UnixConn{}
	_, ok = unix.(net.PacketConn)
	fmt.Println("unix", ok)

	var udp net.Conn = &net.UDPConn{}
	_, ok = udp.(net.PacketConn)
	fmt.Println("udp", ok)
}

result：
tcp false
unix true
udp true
I want TCP and UNIX results to be consistent，But the end result is that UDP and UNIX are consistent，The problem code is as follows
// ReadMsgHeader reads a DNS message, parses and populates hdr (when hdr is not nil).
// Returns message as a byte slice to be parsed with Msg.Unpack later on.
// Note that error handling on the message body is not possible as only the header is parsed.
func (co *Conn) ReadMsgHeader(hdr *Header) ([]byte, error) {
	var (
		p   []byte
		n   int
		err error
	)

// FIXME   The problem code is as follows
	if _, ok := co.Conn.(net.PacketConn); ok {
		if co.UDPSize > MinMsgSize {
			p = make([]byte, co.UDPSize)
		} else {
			p = make([]byte, MinMsgSize)
		}
		n, err = co.Read(p)
	} else {
		var length uint16
		if err := binary.Read(co.Conn, binary.BigEndian, &length); err != nil {
			return nil, err
		}

		p = make([]byte, length)
		n, err = io.ReadFull(co.Conn, p)
	}

	if err != nil {
		return nil, err
	} else if n < headerSize {
		return nil, ErrShortRead
	}

	p = p[:n]
	if hdr != nil {
		dh, _, err := unpackMsgHdr(p, 0)
		if err != nil {
			return nil, err
		}
		*hdr = dh
	}
	return p, err
}

// Write implements the net.Conn Write method.
func (co *Conn) Write(p []byte) (int, error) {
	if len(p) > MaxMsgSize {
		return 0, &Error{err: "message too large"}
	}

//   FIXME  The problem code is as follows
	if _, ok := co.Conn.(net.PacketConn); ok {
		return co.Conn.Write(p)
	}

	msg := make([]byte, 2+len(p))
	binary.BigEndian.PutUint16(msg, uint16(len(p)))
	copy(msg[2:], p)
	return co.Conn.Write(msg)
}

At present, I use the following methods in my project
conn, err = c.Dial(addr)
if _, ok := conn.(*net.UnixConn); ok {
	conn = &mc{c: conn}   //  Here are my changes
}

type mc struct{ c net.Conn }
func (c *mc) Read(b []byte) (n int, err error)   { return c.c.Read(b) }
func (c *mc) Write(b []byte) (n int, err error)  { return c.c.Write(b) }
func (c *mc) Close() error                       { return c.c.Close() }
func (c *mc) LocalAddr() net.Addr                { return c.c.LocalAddr() }
func (c *mc) RemoteAddr() net.Addr               { return c.c.RemoteAddr() }
func (c *mc) SetDeadline(t time.Time) error      { return c.c.SetDeadline(t) }
func (c *mc) SetReadDeadline(t time.Time) error  { return c.c.SetReadDeadline(t) }
func (c *mc) SetWriteDeadline(t time.Time) error { return c.c.SetWriteDeadline(t) }

[ Quoting @.***> in "[miekg/dns] not support unix socks ..." ]

I want TCP and UNIX results to be consistent，But the end result is that UDP
and UNIX are consistent，The problem code is as follows
image

can't see

image

can't see

[ Quoting @.***> in "[miekg/dns] not support unix socks ..." ]
I want TCP and UNIX results to be consistent，But the end result is that UDP and UNIX are consistent，The problem code is as follows image
can't see
image
can't see

English is not good. I can only rely on translation software. I have changed the pictures into code fragments.

but what is your actual problem? You can't use a unix conn? What's the error? What are you trying to do?

I see what's going on here and have opened #1322 to fix it.

I have a dns proxy server based on unix socks.  And sending and receiving data is the same as tcp.  It doesn't work when I try to connect using unix sokcs.  So I found the above problem, but I already have my own solution. I came up to see if there is a better plan.   I see that go language supports these three interfaces net.TCPConn, net.UDPConn, net.UnixConn,
I think this https://github.com/miekg/dns project can be supported by the best.  Thank you so much for this awesome project.


SBOL Output as XML

I am having trouble as the same steps to create an sbol document won't necessarily output the same document literally, so I am not sure how to compare two documents and check they are the same. This might also be easier if output to json serilialisation rather than xml  serialisation of sbol was possible.

These are both issues that are addressed by the upgrade from SBOL2 to SBOL3. There is no JSON serialization defined for SBOL 2 --- it is only RDF/XML, and the non-guarantee of ordering is also inherent to the serialization.  The only way to reliably test for semantic equality between two SBOL documents is to load them into member as SBOL objects and compare those objects.
If you are able to shift from SBOL2 to SBOL3, then there is both a JSON serialization (although this cannot guarantee ordering) and a guaranteed order serialization in the form of sorted N-triples.

Hi @JMante1 , as @jakebeal points out, there isn't a way to do what you're asking directly. SBOL2 has no JSON serialization and RDF-XML has no inherent ordering or canonicalization. The pySBOL2 unit tests work around this in the round trip testing by loading the files into rdflib (not SBOL) and comparing the resulting graphs. If the graphs are the same then the files are considered the same even though there might be textual differences between the files.
See https://github.com/SynBioDex/pySBOL2/blob/master/test/test_roundtrip.py#L53-L71 for the comparison of two different files using rdflib's ability to compare graphs.
SBOL3 allows serialization in any RDF format. pySBOL3 defines an ordered ntriples format so that SBOL3 documents can be serialized in an ordered way and thus compared textually. This is the only RDF serialization format that would allow textual comparison that I am aware of.

Hi @tcmitchell, thank yo the rdflib code was very helpful. I didn't need an exact text match just a graph match. Do you know when the pySBOL3 will be at a point that I could substitute that into my project? Will pySBOL3 also maintain the ability to output pySBOL2 if/as needed?

Do you know when the pySBOL3 will be at a point that I could substitute that into my project?

It depends on what features you need. Several projects (sbol_factory, opil, paml, and intent parser) have been using pySBOL3 for several months and have helped to shake out bugs. It is worth trying it out and letting us know if you have problems or if features you need are not yet implemented.

Will pySBOL3 also maintain the ability to output pySBOL2 if/as needed?

This is the first issue we opened on the pySBOL3 repository. We'd like to use a shared resource to do the translation so that the various SBOL3 libraries can share a single common implementation if they don't want to reinvent the wheel. The JavaScript library has a nascent capability but development ebbs and flows so we don't know when or if that path will lead to a shared translator. If this is a requirement of your project it might make a good area for contributions to an SBOL3 library of your choosing or for cajoling the JavaScript implementation along by taking it for a test drive. @udp had suggested at one point that the JavaScript implementation could theoretically be set up as a web service for translating between SBOL2 and SBOL3.

@JMante1 have you had a chance to give pySBOL3 with your project? Is there anything we can do to help with that?

@JMante1 It's been two weeks since we've heard from you on this. I'm going to assume that you are doing well with your work. If you need additional help, feel free to reopen this issue or to open new issues at pySBOL3.


Regression in Reference field

In ng-admin-demo, user dropwdown is displayed but not clickable anymore

Superseded by https://github.com/marmelab/ng-admin-demo/issues/18


Level 2 only knit 2.8

@vjolahoxhaj @LAMaglan
the error messages I get from 2.1--2.7 are pretty much the same. here I copy the one for 2.1:

Quitting from lines 32-36 (Report_2_1.Rmd)
Error in which(apply(1:ncol(tmp.d.DATES), FUN = function(j) class(tmp.d.DATES[[j]]) ==
argument to 'which' is not logical

@vjolahoxhaj @LAMaglan
Luigi has fixed this.


Pass WebView cookie to Safari

Dear all,
I have a few PDF files on my website, which should be opened in the browser. In WebView these files should not be opened in WebView directly (as they will get stuck and there is no way to navigate back) but by Safari externally. The tricky thing is that I need to send cookies to Safari so that authentification can be done - otherwise the files won't be accessed. My question is: is that possible?
I tried the following with React Native Cookies which does not work:
<WebView
            source={{
              url,
              headers: {
                Cookie: `authToken=${this.state.cookie}`, // cookie is read from React Native Cookies manager
              }
            }}
            sharedCookiesEnabled
/>

When Safari opens the link - the cookie info is not passed along.

Hi Ryan, I am also facing the same issue for ios. Please help me if you have found any solution for your problem.


fix: Ensure Flight schema includes parent metadata

Which issue does this PR close?
Closes #3779
Rationale for this change
Ensures that schema-level metadata is included when encoding the schema for a Flight response.
What changes are included in this PR?
The prepare_schema_for_flight function in the encode module of the arrow-flight crate was amended to include the schema from the parent.
Are there any user-facing changes?
No

@stuartcarnie  this PR is failing the 'cargo fmt' CI check: https://github.com/apache/arrow-rs/actions/runs/4351021747/jobs/7602273280

@alamb thank you for the review and your PR, which I merged into this one.


add StartSpanWithContext, remove TraceContext.NewChild, s/TraceTag/TraceAttribute/

See #20

(There will be some minor merge conflicts with #22 but I wanted to keep the PRs separate)

LGTM


DOC-4868 dedicated log export

Addresses: DOC-4868

Adds new Private Preview instructions for Dedicated's new log export feature to AWS CloudWatch.
Renames and uses CMEK's private preview include
Places new instructions under Reference > Logs.

QUESTIONS

Is this the desired location in the sidebar (Manage > Logging)
Where else in the corpus should we link to this? Or, as private preview, is less more?
Several questions inline, please.

TODO / CONSIDERATIONS

Additional instructions arrived today that differ from the original set, which now need to be considered. These are:

Alter IAM creation steps to more closely mirror CMEK intro.
Consider if we also doc log group creation in CloudWatch
Multi-region differences, example: "use identical log group name in all AWS regions if CC:D MR"

export-logs.md

This change is

TYFR Tommy, updated per your comments.

TYFRs all.


EasyHook causes SQLite to have IO errors

Dear EasyHook team
I'm honored to use EasyHook, which makes some of my work easier. But in the process of using it, we found a fatal problem
To borrow the example of FILEMON (C #) in EasyHook, if the hook contains SQLite related behaviors (creation, reading and writing) process, it will cause SQLite IO error. The specific prompt is as follows:
code = IoErr (10), message = System.Data.SQLite.SQLiteException (0x800007FF): disk I/O error
However, this is not an example of our project. When we try to use FILEMON (C #) to hook other processes with SQLite related behaviors, we will give the same error, such as DB browser (SQLite)
disk I/O error (RELEASE "RESTOREPOINT");
And cannot execute SQL statement normally.
We have repeatedly tested the above problems, which are absolutely clear. We look forward to the relevant solutions from EasyHook team. Thank you very much for your hard work.

These errors seem to be caused by hook's createfilew and write functions, but the FILEMON code does not perform other operations on the original functions except for recording.

@SiyerBOBO what operations are you performing within the hook? Can you test what happens if you do nothing in the hook but call and return the result of the original call?
My very naive guess is that something is taking too long within the hook handler, or an unhandled error is occuring.
You should definitely avoid any processing tasks within your hook handler (especially network access or other slow resources) - a common pattern is to only add the information logged in the hook to a queue and process within your own worker thread later.

I'm just using the FileMon(C#) example provided by the EasyHook team, where, you know, the delegate function doesn't do anything with the arguments. But once the program monitors the SQLite program (which contains all programs that execute SQL statements), it will cause IO errors.
I even suspected that speed was to blame, but it might not be that simple

`
using System;
using System.Data.SQLite;
using System.Threading;
namespace Test
{
class Program
{
static void Main(string[] args)
{
using(SQLiteConnection _sql_conn = new SQLiteConnection())
{
_sql_conn.ConnectionString += "data source = test.db;";
_sql_conn.ConnectionString += "version = 3;";
try
{
_sql_conn.Open();
using(SQLiteCommand _sql_cmd = _sql_conn.CreateCommand())
{
_sql_cmd.CommandText = "create table if not exists "tab" ("tmsp" text);";
_sql_cmd.ExecuteNonQuery();
					while (true)
					{
						Thread.Sleep(1000);
						_sql_cmd.CommandText = "insert into tab values(@tmsp);";
						_sql_cmd.Parameters.AddWithValue("@tmsp", DateTime.Now.ToString());
						_sql_cmd.ExecuteNonQuery();
						Console.WriteLine("Success!");
					}
				}
			}
			catch(Exception e)
			{
				Console.WriteLine(e.ToString());
			}
		}
	}
}

}
`

https://github.com/SiyerBOBO/Test
This is a small program for testing. You can use FileMon to inject DLL into it and observe how it performs.
SQL failure immediately after injection: disk IO error

using System;
using System.Data.SQLite;
using System.Threading;

namespace Test
{
	class Program
	{
		static void Main(string[] args)
		{
			using(SQLiteConnection _sql_conn = new SQLiteConnection())
			{
				_sql_conn.ConnectionString += "data source = test.db;";
				_sql_conn.ConnectionString += "version = 3;";
				try
				{
					_sql_conn.Open();
					using(SQLiteCommand _sql_cmd = _sql_conn.CreateCommand())
					{
						_sql_cmd.CommandText = "create table if not exists \"tab\" (\"tmsp\" text);";
						_sql_cmd.ExecuteNonQuery();

						while (true)
						{
							Thread.Sleep(1000);
							_sql_cmd.CommandText = "insert into tab values(@tmsp);";
							_sql_cmd.Parameters.AddWithValue("@tmsp", DateTime.Now.ToString());
							_sql_cmd.ExecuteNonQuery();
							Console.WriteLine("Success!");
						}
					}
				}
				catch(Exception e)
				{
					Console.WriteLine(e.ToString());
				}
			}
		}
	}
}

i'm testing for fun your C#-sqlite code with the hook and it display "Success!" loop
my hook is based on EasyHoot RemoteFileMon (it use an old EasyHook version), i only add some slow operation (many many seconds)
anyway easyhook with read/write hook get Firefox crash, by reading the hook log usually heppening close to a sqlite operation

The hook does succeed. Does your QSL actually execute successfully in the hook state? My symptom was not that the hooks failed, but that I could not execute any SQL statements after installing the hooks.   QAQ

Oh, I didn't see what you said later. It turns out that you have been testing and modifying this issue. Thank you very much. I will be keeping an eye on this issue and will be sharing the relevant tests for this issue dynamically here.

yes, it works

|  () |    |  /  |           () |
| | | | | .  . | ___  _ __  | | ___  _ __
|  | | | |/ _ \ |/| |/ _ | ' | | / _ | '|
| |   | | |  __/ |  | | () | | | | | || () | |
_|   |||__|  |_/_/|| |||____/|_|
monitor file operations in the target process

Usage: FileMonitor ProcessID
or: FileMonitor PathToExecutable
e.g. : FileMonitor 1234
to monitor an existing process with PID 1234
or : FileMonitor "C:\Windows\Notepad.exe"
create new notepad.exe process using RemoteHooking.CreateAndInject
Enter a process Id or path to executable

C:\Users\Giancarlo\source\repos\TEST\TEST\bin\Debug\TEST.exe

Attempting to create and inject into C:\Users\Giancarlo\source\repos\TEST\TEST\bin\Debug\TEST.exe                                                                                <Press any key to exit>
FileMonitor has injected FileMonitorHook into process 16764.


Mutiple Table and CSV

I would like to ask how to populate multiple tables with every csv.
For example
$this->table = 'table_1';
$this->filename = base_path().'/database/seeds/csvs/table1.csv';
$this->table = 'table_2';
$this->filename = base_path().'/database/seeds/csvs/table2.csv';

$tables = ['table1', 'table2', 'table3'];

foreach ($tables as $table) {
    $seeder = new \Flynsarmy\CsvSeeder\CsvSeeder;
    $seeder->table = $table;
    $seeder->filename = __DIR__."/csvs/$table.csv";
    $seeder->run();
}


topic view  Newest filter and Oldest filter are upside-down

Issue submitter TODO list

[X] I've looked up my issue in FAQ
[X] I've searched for an already existing issues here
[X] I've tried running main-labeled docker image and the issue still persists there
[X] I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)
In topic view, choose Oldest button get the Newest messages,  and vice-versa

Expected behavior
No response
Your installation details
kafbat/kafka-ui:v1.0.0
confluentinc/cp-kafka:6.2.1
Steps to reproduce
go to any topic view, click messages button, then choose Newest filter
Screenshots
No response
Logs
No response
Additional context
No response

Hey, this has been fixed within #249. Feel free to pull master image :)


add feature : scan command

Hello, can you add scan command ?
regards,
Nicolas

@limbo127, I've added the SCAN interface as detailed below and released it along with the example server in version 1.4.3.

GenericCommandHandler::Scan - Here, we've defined the interface for handling the SCAN command.
go-redis/examples/go-redisd/server/generic.go - This example demonstrates how the SCAN interface is utilized in practice.

Please take a moment to check it out :-)


Only stop processes belong to the current user

What changes are proposed in this pull request?
Only stop processes belong to the current user while running ./bin/alluxio process start or ./bin/alluxio process stop
Why are the changes needed?
Without this PR, it will try to stop all processes match the class name even they are not started by the current user. Like the below case
$ ./bin/alluxio process stop local
WARN[2023-09-21T14:57:31+08:00] No process to stop because could not find running process matching alluxio.worker.AlluxioWorker
INFO[2023-09-21T14:57:31+08:00] Found 1 running process(es) matching alluxio.master.AlluxioMaster
INFO[2023-09-21T14:57:31+08:00] Successfully killed 0 process(es)
ERRO[2023-09-21T14:57:31+08:00] Failed to kill 1 process(es):
ERRO[2023-09-21T14:57:31+08:00] Failed to kill process: error sending TERM signal to process for alluxio.master.AlluxioMaster with pid 17055
 --- at /tmp/alluxio1717887242/cli/src/alluxio.org/cli/env/process.go:175 (BaseProcess.Stop.func1) ---
Caused by: operation not permitted

Does this PR introduce any user facing changes?
NO

alluxio-bot, merge this please


fix: typo

This PR solves #47, only adds 2 s, on each cargo toml this way fixing the typo on the website.

Incredible, I had not noticed, thank you very much for the collaboration


Trouble in Next js

Check that this is really a bug

[X] I confirm

Reproduction link
https://github.com/jquense/react-big-calendar/blob/master/stories/demos/exampleCode/basic.js
Bug description
I have added react-big-calender  library inside my app it is displaying the calendar but i cannot navigate to the different options, I have mirrored one of the the documentation example but still having the same issue
Expected Behavior
Expected to be able to navigate within the tabs option
Actual Behavior
Unable to navigate within the tabs
react-big-calendar version
1.13.1
React version
18
Platform/Target and Browser Versions
All
Validations

[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a react-big-calendar issue and not an implementation issue

Would you like to open a PR for this bug?

[X] I'm willing to open a PR

same issue. +1

Hi @levis-creator I faced the issue also. This code works well for me. Do check it out

@Shanmugavadivelu7 this just results in a blank page. The DashboardCalendar isn't even being used. How did this work well for you? Do you have a full working example?

@levis-creator is this still a issue, if not please close the issue

@hak33m16 create a new page in next js. Copy paste the code and navigate to your route in browser.

One can make it work by providing date, view, onNavigate and onView explicitly:
const [view, setView] = useState<View>(Views.MONTH)
const [date, setDate] = useState<Date>(new Date())

return (
  <Calendar
    // ...
    view={view}
    onView={setView}
    date={date}
    onNavigate={setDate}
  />
)

Thanks for the tips, I ran into this issue as well (on<EMAIL_ADDRESS>and react-big-calendar@1.15.0). Here's the full working component:
"use client"

import { Calendar, luxonLocalizer, Views } from 'react-big-calendar'
import { DateTime } from 'luxon'
const localizer = luxonLocalizer(DateTime, { firstDayOfWeek: 7 })
import { useState } from 'react'
import "react-big-calendar/lib/css/react-big-calendar.css"

const CalendarView = ({ events }) => {
  const [view, setView] = useState(Views.MONTH)
  const [date, setDate] = useState(new Date())

  const handleNavigate = (newDate) => {setDate(newDate)}
  const handleViewChange = (newView) => {setView(newView)}

  return (
    <div id="calendar-view">
        <Calendar
          localizer={localizer}
          events={events}
          startAccessor="start"
          endAccessor="end"
          allDayAccessor="all_day"
          view={view}
          onView={handleViewChange}
          date={date}
          onNavigate={handleNavigate}
        />
    </div>
  )
}

export default CalendarView


Extract Debian license data from copyright text

This PR does following,

It proposed a license extraction logic based
on pkg_format.
It proposed a change in base.yml file to extract
copyright file location instead of copyright text.
It adds pkg_licenses property in Package
class to record multiple liceses in a package.
It updates default report generator to
print multiple licenses of a packge.
It updates default generator to address
'to many brances' build error.

Work towards: #499
Signed-off-by: mukultaneja<EMAIL_ADDRESS>

@mukultaneja There might be some minor cleaning up needed. Would you mind if I submit this commit for you with the clean-up changes on top of it?

@mukultaneja There might be some minor cleaning up needed. Would you mind if I submit this commit for you with the clean-up changes on top of it?

@nishakm, thanks for reviewing the changes. If it's easy to define the cleanup changes I would like to take them and finish the PR but if they are hard to define then I guess you can better take the decision :)

Thanks for all your work on this @mukultaneja. Closing this PR as https://github.com/tern-tools/tern/pull/694 replaces it.


binaryage/devtools compiled to min code

core.cljs has some devtools code , min compile file size 580kb
I comment out devtools related code ,  min compile file size 340kb
(ns re-frame-app.core
    (:require [reagent.core :as reagent]
              [re-frame.core :as re-frame]
              ;; [devtools.core :as devtools]
              [re-frame-app.handlers]
              [re-frame-app.subs]
              [re-frame-app.views :as views]
              [re-frame-app.config :as config]))

;; (defn dev-setup []
;;   (when config/debug?
;;     (enable-console-print!)
;;     (println "dev mode")
;;     (devtools/install!)))

(defn mount-root []
  (reagent/render [views/main-panel]
                  (.getElementById js/document "app")))

(defn ^:export init []
  (re-frame/dispatch-sync [:initialize-db])
  ;; (dev-setup)
  (mount-root))

a better way to include devtools would be:
{:id           "dev"
     :source-paths ["src/cljs"]
     :figwheel     {:on-jsload "re-frame-app.core/mount-root"}
     :compiler     {:main                 re-frame-app.core
                    :preloads             [devtools.preload]
                    :external-config      {:devtools/config {:features-to-install :all}}
                    :output-to            "resources/public/js/compiled/app.js"
                    :output-dir           "resources/public/js/compiled/out"
                    :asset-path           "js/compiled/out"
                    :source-map-timestamp true}}

@WeweTom Thanks!! I hadn't seen this before. I looked back at the cljs-devtools README and I guess it is what is recommended there :grin: Will try to get this update in this week.

@WeweTom Thanks again! Just pushed out a fix for this using your gist :)


Documentation when?

when on earth will there be a tutorial on how to get a CrittersBox server up and running?!?!?!??!?!?!?!?!??!?!?!?!?!?!?!?!?!??!?!?!

I REALLY DON'T KNOW!!!!
I CANT SET IT UP EITHER!!

Hello, I will write documentation soon.
Sorry for not responding sooner, I have been busy.

@Sxip many people are confused on how to use it...
There was no instructions with the bundle.
Maybe add a instructions.txt?? or a yt link..
Thanks,
TechnoByte (BoxCritters)


How to re connect Zeebe with hazelcast through configuration? When Zeebe resumes the connection, the version of hazelcast is 4.2.2

How to reconnect Zeebe with hazelcast through configuration? When Zeebe resumes the connection, the version of hazelcast is 4.2.2

You could configure the connection timeout for Hazelcast. By default, it is 30 seconds.
Otherwise, there is no option to reconnect to Hazelcast at the moment. Feel free to contribute :rocket:

I'm closing this issue because of inactivity. Feel free to reopen if the issue is still relevant.


docs/help: how to run with uvicorn alongside FastAPI

The docs should be enough for me to figure this out, but I haven't managed.
The side-by-side with web frameworks section in the docs shows how to set up a lifespan event with FastAPI. Good, fine.
Then listening without blocking shows how to combine an async listener with a another generic async task. Also good.
I'm not really sure how to combine these in the context of FastAPI + uvicorn, where uvicorn wants to run the FastAPI app itself and handle the async loop internally.
# main.py
from fastapi import FastAPI
from contextlib import asynccontextmanager

mqtt_client = None

@asynccontextmanager
async def lifespan(app: FastAPI):
    global mqtt_client
    async with aiomqtt.Client('host') as client:
        mqtt_client = client
        yield

app = FastAPI(
    lifespan=lifespan,
)

then with the uvicorn CLI or:
# run.py

from main import app

if __name__ == "__main__":
	uvicorn.run(app)

Awaiting listen() (from "listening without blocking") like this doesn't seem to work at all (just blocks on server.serve())
# run.py also
import uvicorn
import asyncio
from main import app, mqtt_client

async def main():
    config = uvicorn.Config(app)
        server = uvicorn.Server(config)
        await server.serve()
        await listen(mqtt_client)

if __name__ == "__main__":
    asyncio.run(main())

It's late and I'll take another crack at this tomorrow, but perhaps someone has a simple pattern that will make this sensible to me. Thanks!

I've updated the documentation with the more detailed example. If anybody comes up with a better solution to this, or if there are any questions remaining, please let me know 😊

Hey guys thanks so much! I'll follow up here with a simple version of my final solution

Great! If you're stuck, let us know. Or post a minimal example of what doesn't work, always helps to know what people are struggling with to improve the docs 😋


⚠ Bofrost.at has degraded performance

In 058c26a, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2646 ms

Resolved: Bofrost.at performance has improved in 43c04c9 after 23 minutes.


Sample for getting data from HUE bridge

I managed to control lamps and schedules via java script.
e.g.     user.setSchedule(sched, { status: "disabled" }, function(data) { /* ... */ });
But how can I get information from the bridge?
Tried this, but it didn't work:   user.getSchedule(sched, function(data) { st = data[0].status; });
Thank you very much!
Peter

That doesn't work because the response data from that API command is not an array. It would be:
user.getSchedule(sched, function(data) { st = data.status });

Please read the API documentation here, and experiment with the debugger, in order to understand the data structures that should be sent and received.


Recently updated node

and now I get
connections property is deprecated. Use getConnections() method

Whenever I use db.query, any idea? :P Seems odd..

Hi @McFarts , I don't think we use that in our code anywhere, but to be sure, please run your node executable with the switch --trace-deprecation and post back what the stack trace is for that deprecation.

i.e. node --trace-deprecation my_script.js

Wow.

My bad, lol.  Sorrry about that!  Had leftover code floating around


How about search some txt and replaced with nothing

I found Calcpad dose not support this.

Hmm... Did you try with the latest version? I tried it and it works on my side:

Probably there is something else that prevents the operation, some settings maybe?

Hmm... Did you try with the latest version? I tried it and it worked on my side:

Probably there is something else that prevents the operation, some settings maybe?

Cool, let try it on version 5.9.4

Hmm... Did you try with the latest version? I tried it and it worked on my side:

Probably there is something else that prevents the operation, some settings maybe?

Hey,Ned.I surely tried and find it works. However ,with some condition,i.e. you have to input a space then backspace to trigger this then it could function.
I did not figure out why.


MySQL extension install issues on self-hosted

Describe the bug
I get warnings and mysql extension is not activated when I add this in workflow yaml
with:
  uses: shivammathur/setup-php@v2
  extensions: ..., pdo_sqlite, mysql

PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so'
 (tried: /usr/lib/php/20190902/pdo_mysql.so
 (/usr/lib/php/20190902/pdo_mysql.so: undefined symbol: pdo_parse_params),
 /usr/lib/php/20190902/pdo_mysql.so.so
 (/usr/lib/php/20190902/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

To Reproduce

self-hosted Dockerfile
My workflow.yml

Expected behavior
It should install and activate the mysql extension without warnings.
Screenshots
https://imgur.com/lqPHUg1
Additional context
I was able to fix the problem by executing in container apt install php7.4-mysql and removing pdo_sqlite, mysql from workflow yaml
Log examples (the warnings are multiplied on every new run)

logs_52.zip
logs_53.zip
logs_54.zip

Fixed in 0158fe2. Please test in a new container.
If the issue is still there please provide logs by testing using shivammathur/setup-php@verbose.

It works. Thank you!


Correctly call super.transferableTokens in VestedToken

Fix #307

Coverage remained the same at 81.038% when pulling ae11cc117c23e86da0d9163de7e4364ca32175ca on adamdossa:fix/vested_token_transfer into 81297fac88007831ca5437e30a6fb53c92588391 on OpenZeppelin:master.

Thanks for catching and fixing this, @adamdossa. 😄
I'm merging this now but keep in mind the plan is to replace VestedToken by a simpler design akin to TokenTimelock, see #274.


Refactored Rubble to use ECS

This pull request refactors rubble to use the Entity Component System architecture. Currently, only rubble spawned from the test  asteroid at spawn will be created using ECS, as that asteroid is the only entity with the CreatesRubbleOnDestruction component.
Outstanding Issues
There are some issues concerning the physics of the rubble, as it seems there is not a way to add angular velocity with the velocity component yet. The textures also appears to be offset slightly from the collision mesh.

 Finish out Rubble PR

Tested this out real quick, after a trivial conflict fix. Can confirm rubble comes out of the golden asteroid, but ... the rubble is invincible? 😅 I can tell I'm hitting it, physics shape seems alright but since so small it is hard to be sure.
Also, should the golden asteroid break into incrementally smaller pieces, rather than go to the tiniest size immediately, or is that outside the scope of this PR? Since that asteroid is a test piece anyway.

Oh, and the invincible rubble seems to be pre-existing specific to the stuff the golden asteroid pops out.
Conflict resolution was just accepting all from this PR then adjusting three "shard" to "rubble"

Merged this after resolving the conflict locally. Submitted #617 for follow-up fixes. Since it is a test asteroid it doesn't exactly have to be perfect - yet 👍


Tooltip title with custom font not rendering properly at first

I have a line chart and I want to set a custom font to it (of every part of the chart, from ticks to tooltip).
But I'm having issues with the tooltip title: the first time I hover a point in the chart, the tooltip title is showing the default font, and then in all the other attempts shows the correct one. Same thing happens every time I refresh my page: first attempt renders the title with the default font.
First time I hover a point after page refresh:

All other hover attempts:

However, notice the ticks and tooltip content already show the proper font the first time, the issue is happening only with the tooltip title!
This is how I'm setting the font, in the options object of the line chart:
const lineChartOptions = {
  responsive: true,
  defaultFontFamily: Chart.defaults.global.defaultFontFamily = 'fabriga',
  ...
}

I also tried setting specifically the tooltip title font, before defining my chart component:
import { defaults } from 'react-chartjs-2'
defaults.global.tooltips.titleFontFamily = 'fabriga'

And also tried to set it in the options object that gets passed to the chart:
const lineChartOptions = {
  ...
  tooltips: { titleFontFamily: 'fabriga' }
  ...
}

But the behavior is the same.
Anyone know the reason of this? What am I doing wrong?

I was able to set the default font for everything like so:
import { Doughnut, defaults } from 'react-chartjs-2';
defaults.global.defaultFontFamily = 'Architects Daughter';

I too noticed strange font flicker artifacts but only while dev tools are open and causing cached fonts to be reloaded. With dev tools closed robbieyng's strategy does the trick.

I'm going to try it out later, and will come back to tell if that worked for me, thanks!

Unfortunately robbieyng strategy yields the same result for me: every font in my chart's canvas is correct, but when I hover a point for the first time, the tooltip title of this point renders the default font, and after that, all the other hover attempts renders the correct font.
Maybe this is happening because I'm using a custom font? But if that's the case, why all the other parts of the chart are loading the font properly?

Hey all!
I had the same problem, but solved it for now by using the FontFaceSet.onloadingdone event handler (see https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet) to re-render the chart after all fonts are there and using fontfaceobserver (https://www.npmjs.com/package/fontfaceobserver) as a fallback for IE. I set a default font using the Chart.default.[...] settings. This seems to solve the problem in all environments I could test for now...

Closing for now. Please supply a sandbox or code example with the latest versions of both libraries. If the problem persists, feel free to open a new issue.


RFE: git-checkout cherry-picks support filtering

I've seen this need twice in the past two days.
Once with squid https://github.com/wolfi-dev/os/pull/25778 and once https://github.com/wolfi-dev/os/pull/25652/files
An upstream commit may have unrelated changes that don't apply.
In the squid case, the changes that went into the same commit as the desired chagnes were for .github/workflows.
We'd like to have some prettier way to do this.
The solution employed in both the above PRs was:
  - runs: |
      git fetch origin master:master
      # Fix failure to build from source against new libxml2, without
      # nanohttp support.
      git show <COMMIT> -- FILE1 [FILE2 ...] > partial-cherry-pick.patch
      git apply partial-cherry-pick.patch

@xnox fyi

Also seen https://github.com/wolfi-dev/os/pull/26609


ROX-17019: Reduce node-scanning container memory limit to 500 Mi

Description
As in the title
Checklist

[ ] Investigated and inspected CI test results

N/A

[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed

[ ] Manual deployment on a cluster and manual check for OOM
[ ] CI

/test ocp-4-10-operator-e2e-tests ocp-4-10-qa-e2e-tests


Fix cupy.concatenate typecheck for out with different dtype

Close #4483.

pfnCI, test this please.

pfnCI, test this please.

Jenkins CI test (for commit 843a630090b832688aaa3d984eb843c06d027c35, target branch master) succeeded!

Jenkins CI test (for commit 843a630090b832688aaa3d984eb843c06d027c35, target branch master) succeeded!

Note: Tests with axis=None would require NumPy >= 1.20.

Note: Tests with axis=None would require NumPy >= 1.20.


Testing, please ignore. (rwhncc)

This is a bug bounty test - please ignore.. Please DO NOT APPROVE THIS! (rwhncc)

Interesting, interesting. I'd be interested to know what you're looking for here? The preinstall step should only really affect the Vercel build preview URLs.

Closing if this is only for test purposes.


[Compass] Re-think API

Given a mixture of feedback from Phil R. and Mark on #298 I propose the following Compass API:
Public initializer:
Compass(rotation: Double?, mapViewProxy: MapViewProxy)

Internal initializer:
Compass(heading: Double, mapViewProxy: MapViewProxy? = nil)

In the public initializer the proxy isn't nullable as the majority of users will want animation. In the internal initializer, the proxy is nullable to keep the compass testable.

Thoughts appreciated from @rolson, @philium
Additional note:

Because heading is no longer a binding, when shouldHide was accessed from .onChange(of: heading) and the change was triggered by snap-to-north, heading would still have the pre-snap value causing shouldHide to compute incorrectly. For this reason, shouldHide became func shouldHide(forHeading:) so that .onChange(of: heading) could pass its new value.

I don't think we need or should have Compass.init(viewpoint:mapViewProxy:). The only thing the viewpoint is used for now is to get the value of the rotation property. In other words, a call to viewpoint.rotation is the only different between Compass.init(viewpoint:mapViewProxy:) and Compass.init(viewpointRotation:mapViewProxy:). Therefore Compass.init(viewpoint:mapViewProxy:) isn't really pulling its own weight and I would suggest that we remove it.

Per my Slack comment, sorry that I didn't see this PR earlier. The main problem I have with this change is the loss of SceneView usage. If you provide a public Compass(heading: Double, mapViewProxy: MapViewProxy? = nil) then I can use it with SceneView but I have no easy way to implement the tap-to-North functionality. The 2 solutions that come to mind are:

Bring back the binding rotation
With a mapViewProxy = nil, remove your onTapGesture so that I can implement my own tap handler and function to set the SceneView to North.

I realize that the difference between the MapView and SceneView makes it difficult for you to meet all needs, and that MapView is much more common, so allowing for me to implement SceneView functionality while using your Compass is my preference (#2).

Thanks @laurenwinter for bringing this up.  We will add back in the support you need.


Magnum: deepcopy template before modifying it

This change is

Review scrub: please review

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable


Add Divider widget

The props are taken from Flutter's Divider
We find out the parent's width during the paint phase since Divider doesn't have children so that it is more versatile.
That is, it can be laid out in infinite constraints and will still be as wide as the parent.
I have not found a way to make Divider "smart" so that it knows if it should be vertical or horizontal based on the layout. That might not make sense anyway.
Part of #75

@kanerogers you'd probably be interested in this widget since you ran into constraint sizing issues in Clipper

Sweet! Will give this a try when I get back home


Minor cleanups after https://github.com/apple/swift/pull/29703

directly get the SILBuilderContext from SILBuilder for tryOptimizeApplyOfPartialApply

rename needUpdateStackNesting (and similar) -> invalidatedStackNesting

(as suggested by @gottesmm)

@swift-ci smoke test