Filtering orders with payment status cause database timeout (graphql COUNT operation)

What I'm trying to achieve
Filter orders with payment method
Right now when running filter on orders query, graphql makes COUNT to all order objects + payment objects. With 500k+ orders it's almost killing database
Steps to reproduce the problem

Filter orders with payment status

What I expected to happen
…
Screenshots

System information
Operating system:
Linux AWS ec2 + RDS

@classmethod
    def resolve_connection(cls, connection, default_manager, args, iterable):
        if iterable is None:
            iterable = default_manager
        iterable = maybe_queryset(iterable)
        if isinstance(iterable, QuerySet):
            if iterable.model.objects is not default_manager:
                default_queryset = maybe_queryset(default_manager)
                iterable = cls.merge_querysets(default_queryset, iterable)
            _len = iterable.count()
        else:
            _len = len(iterable)
        connection = connection_from_list_slice(
            iterable,
            args,
            slice_start=0,
            list_length=_len,
            list_slice_length=_len,
            connection_type=connection,
            edge_type=connection.Edge,
            pageinfo_type=PageInfo,
        )
        connection.iterable = iterable
        connection.length = _len
        return connection

graphene_django/fields.py
class DjangoConnectionField

Will be fixed by https://github.com/mirumee/saleor/pull/5149

@NyanKiyoshi  great, closing issue then.


Predicted boxes or scores contain Inf/NaN. Training has diverged

When trying to run the training code, I encountered the following error:

In the previous process, my steps were:

Refer to the readme, install torch, detectron and other environment dependencies based on conda

Data preparation: vocdata in readme is used

Modify operating errors：
1、in the run_*.sh ,change into

2、as the picture shows（Refer to：https://giters.com/fanq15/FewX/issues/40?amp=1）

Intercept part of the training code and try to start training

then i meet the error：Predicted boxes or scores contain Inf/NaN. Training has diverged。I got the same error when I tried on two different servers (cuda10.2, cuda11.1    both torch1.8)
I tried to modify the learning rate-related settings（to different value , vary from 0.00005 to 0.95） in the configuration file, but no effect

using detectron0.3，the default version is 0.5

How to install  detectron0.3 when i use the server with cuda11.1

使用Detectron0.3，默认版本为0.5

当我使用带cuda11.1的服务器时如何安装Detectron0.3
我也遇到这个问题！请问您是怎么解决的呢


Virtual Memory - Initial Draft

Motivation and Context (Why the change? What's the scenario?)
Enable a local-only option for development
High level description (Approach, Design)
Port a basic volatile memory option based on SK framework

I pushed to main the simple vector DB I wrote last year (see Microsoft.SemanticMemory.MemoryStorage.DevTools.SimpleVectorDb), which allows to store vectors on disk, without running any service.
If you need a version that stores data in volatile memory, I would add an option to SimpleVectorDbConfig and implement a version of ISimpleStorage that holds data in RAM. This way you won't have to write another implementation of ISemanticMemoryVectorDb, just provide a different underlying data store for SimpleVectorDb.


fix(bmr): submit transaction to pool failed (#760)

Closes #760
Checklist:

[x] I have performed a self-review of my own code
[x] I have documented my code in accordance with the documentation guidelines
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have run the unit tests
[x] I only have one commit (if not, squash them into one commit).
[x] I have a descriptive commit message that adheres to the commit message guidelines

Please review the CONTRIBUTING.md file for detailed contributing guidelines.

The workaround includes

Increase retry limit to a larger value. It should cause the relay to wait approx 15 minutes for a single transaction. This avoids any doubt that the relay did not wait long enough for a transaction to complete.
Use a larger gas price. Current gas price returned by ethclient.SuggestGasPrice() is low (8 units only). Though there are plenty of transactions which have successfully been processed with the low value (8 units), using a larger value would ensure that chain will not discard current txn based on gas price alone especially during high network activity. However, as a side note, transaction prioritization scheme could be dependent on the node's preferred scheme as well.

Details to about the issue is mentioned on the linked git issue.

Randomness to gas price has been introduced so that even if the relay needs to resubmit a transaction, there can be at least one parameter that's different from the one already submiited.
This will bring difference in transaction hash, which is essential to avoid PoolBanned error.


PanOS upgrade from 8.0.13 to 8.1.15 fail (SoftwareUpdater(device).upgrade_to_version(version, False))

Hello, team
Describe the bug
Using "SoftwareUpdater(device).upgrade_to_version(version, False)" to upgrade PanOS from different levels to 8.1.15.
for versions 8.1.x it works, but when trying to upgrade 8.0.x (or earlier) it fails
Expected behavior
expecting function to do consequent upgrades to desired version with installation of base images
Current behavior
Traceback (most recent call last):
File "panos_upgrade.py", line 50, in
SoftwareUpdater(device).upgrade_to_version(version, False)
File "/usr/local/lib/python3.6/site-packages/pandevice/updater.py", line 207, in upgrade_to_version
self.download_install_reboot(next_version, sync=True)
File "/usr/local/lib/python3.6/site-packages/pandevice/updater.py", line 126, in download_install_reboot
self.download_install(version, load_config, sync=True)
File "/usr/local/lib/python3.6/site-packages/pandevice/updater.py", line 118, in download_install
self.download(target_version, sync=True)
File "/usr/local/lib/python3.6/site-packages/pandevice/updater.py", line 64, in download
(self.pandevice.id, version, result['messages']))
pandevice.errors.PanDeviceError: Device xxxxxxx attempt to download version 8.1.15-h3 failed: ['Successfully 'Preloading into software manager', "The required '8.1.0' base image must be loaded before this image can be loadet have to install or run the base image, only download it.  Once the base is loaded, re-download your target image to load into software manager. Please retry.', 'Post processing failed. Please retry.']
Possible cause
when upgrading from 8.0.x to 8.1.15 , process excpected as download of 8.1.0 image, download of 8.1.15 image, then install 8.1.15. But according device's log, image 8.1.0 not downloaded, and isntall of 8.1.15 fails because of that.
Steps to reproduce
upgrade from v.8.0.13 to 8.1.15-h3
Your Environment
using hardware model PA-220

Thanks for the bug report. We fixed an issue recently in the upgrader, but the fix hasn't been released yet.
https://github.com/PaloAltoNetworks/pandevice/pull/216
I recommend to try using the 'develop' branch and check if it fixes your issue. We're trying to release this fix ASAP, but we're also changing our release process, so it's taking a while. Sorry for the delay.


feature: create one big file with all of the snippets within for easier access

I will see how we can do this so it's easy to maintain


[Feature] Shopify v2022-07 -> v2023-04 API Update Schema Change Considerations

Is there an existing feature request for this?

[X] I have searched the existing issues

Describe the Feature
Shopify is upgrading from their v2022-07 to v2023-04 API. This is resulting in a number of deprecations and new field additions. For this package (and likely the downstream dbt_shopify package), the following changes will need to be made to reflect the connector changes:

OrderLine Resource (ORDER_LINE Table)

origin_location (deprecated)
destination_location (deprecated)
fulfillment_service (deprecated)

Order Resource

total_price_usd (deprecated)
processing_method (2023-04) (unsupported)

ProductVariant Resource (PRODUCT_VARIANT Table)

title (deprecated)

Describe alternatives you've considered
This will still likely work following the API upgrade, but it would be best to upgrade to ensure our package is using the latest fields provided by the API and connector.
Are you interested in contributing this feature?

[ ] Yes.
[ ] Yes, but I will need assistance and will schedule time during your office hours for guidance.
[ ] No.

Anything else?
No response

Notes from the duplicate Issue from the source package are included below
In June 2023, the connector was migrated to a new Shopify API version, in which the following relevant columns were deprecated
order_line.fulfillment_service
order_line.destination_location_* fields
order_line.origin_location_* fields
order.total_price_usd
order. processing_method
customer.lifetime_duration
we should mark them as deprecated in the src yml file and remove them from staging models

The latest release incorporates these changes.


Extension Removal

Hi, we've been renaming some extensions and I'll like to remove the old named extensions from haxelib.
The extensions I need to remove are:

openfl-admob
openfl-gps-lib
openfl-share
openfl-gpg
openfl-locale
openfl-webview
openfl-nativedialog

The new extensions (in case you can forward extensions names) are:

extension-admob (replaces openfl-admob)
extension-googleplayservices-lib (replaces openfl-gps-lib)
extension-share (replaces openfl-share)
extension-googleplaygames (replaces openfl-gpg)
extension-locale (replaces openfl-locale)
extension-webview (replaces openfl-webview)
extension-nativedialog (replaces openfl-nativedialog)

Thanks!!!

Why go for a general name like this for something that's OpenFL-specific?

+1

OpenFL community decided to name extensions this way.
Anyway, those are not openfl-specific (they also works with NME and may work with other engines using HXCPP / supporting JNI with little changes).

So, what's the process here? Who takes this kind of decisions? I think we have to come up with some policy regarding that and document it.

I don't think there's actually someone taking this kind of decisions (it was just a quick chat inside a group and someone came up with the idea of adding the word extension- as a prefix, for OpenFL/NME and Lime extensions, and we all agreed on that without much discussion).
Anyway, I think it's a good idea to put some rules into haxelib (not only for naming, but maybe also for quality). It'll also be nice to have some trusting mechanism that can let people know which libraries are trustworthy and which ones are not.
On my case I'm open to adapt my libraries to any standard proposed by the HaxeFoundation :+1:
In the meantime: What should I do with my deprecated extensions? (for the time being, I just uploaded new empty versions that raises an error telling people that those are deprecated, but I think it'll be nice to remove them to keep haxelib clean). Just an idea.

I think @nadako meant who takes the decision for haxelib, who choose what to remove, rename ...

Yup I meant haxelib policy.

Oh, in that case I don't know... I just asked Nicolas how to remove libs from haxelib and he told me to open an issue here since Andy Li will soon take over haxelib maintenance.

ping @andyli

See https://github.com/HaxeFoundation/haxelib/issues/168#issuecomment-240850368.
Since the old libs are deprecated properly already, I will close this issue.


disable ssl warnings in job logs

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


PR: Add homepage to all plugins

People should have one Landing page with all project description. I think http://askd.github.io/animakit is a good start point.
So we should set it as home page to:

GitHub repos
package.json

Here it is https://animakit.github.io/ ;)


Support/document how Vite can work with 103 Early Hints

Description
So Chrome recently removed HTTP2 server push in favor of preloading and 103 Early Hints. It is unclear how they could improve Vite, but I think that at least it should be documented what is best practice regarding Vite and 103 Early Hints.
Suggested solution
I suggest that we document which resources could server put into link preload header for use with 103 Early Hints. Is that just top-level index and css? Or also modules themselves?
Alternative
It is possible that there is not much advantage of using 103 Early Hints with Vite, but I think it would also be useful to document that as well.
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

I think we can use ssr-manifest or manifest like we do with preload directives.
https://vitejs.dev/guide/ssr.html#generating-preload-directives

@sapphi-red  👍🏻 that is a way how to generate early hints based on the ssr-manifest. Sample


LinkedList endless loop

The following code produce an infinite loop:
https://bin.wurstlang.org/qotolanune.wurst
For some reason adding an element to a new list after removing it from its original list affects the latter in a buggy way.
EDIT:
Here is the output of the first code:

The following code will result in a slightly different infinite loop:
https://bin.wurstlang.org/fuberuduko.wurst

EDIT2:
Adding to the second list and then removing from the first will not produce this issue.

You are removing an object from the list while iterating. In Java this would throw a concurrent modification exception. It is not allowed in a regular for loop. If you want to remove elements while iterating you need to while/from loop through the iterator and call remove on it, not the list.

I was thinking you could do both with Wurst.
It should be noted that the HashList iterator's .remove() does nothing.

It should be noted that the HashList iterator's .remove() does nothing.

Wanna implement it :D ?


Shlex dropping quotes

This mostly isn't an issue as, for the most part, commands don't need proper formatting, but for text-type arguments (!comment, etc) quotes will be dropped.  See if there's a workaround to keep mismatched quotes

Maybe it would be worth reconfiguring the shlex object to only consider double quotes. It would also be worth scanning input for an even number of quote characters, and switch to legacy parsing otherwise or at least displaying the parsing error to the user


Peerconnection startRecorder not working

Recording not working
i tried below code to start recording
peerConnection.startRecorder(RtpTransceiver.RtpTransceiverDirection.RECV_ONLY.ordinal(), "/{path}/example.mp4")
and called to stop it
peerConnection.stopRecorder(RtpTransceiver.RtpTransceiverDirection.RECV_ONLY.ordinal())
but there is no file recorded

Its resolve actually it only record .mkv as StartRecorder in call.cc mentuoned
if (path.rfind(".mkv") == std::string::npos) {
    RTC_LOG(LS_INFO) << "Call::std::string::npos returned";
    return -1;
  }


Lost ability to export without base?

I just noticed a new push was made and now I cannot export without the base. That was by far one of the best features. I hate Heroforge bases and it leaves no room to be able to better scale the model.
Why was this functionality removed????

Hi,
HeroForge changed their internal API, and I needed to adapt the saver to that. Unfortunately my previous attempt to export the miniature without the base does not work anymore :(.
I don't think I need to change much to adapt to their new API, but right now it is unfortunately broken.

You can remove the base in the program, just click the base that's selected to clear it.

You can remove the base in the program, just click the base that's selected to clear it.

 Is that a new feature? I never noticed! This solves the problem. thanks.


Problem on testing (Laravel - PhpUnit) element Select on Form.

Laravel Version: 5.0
PHP Version: 5.6
Database Driver & Version: Mysql

Description:
I have a Select wich sends automatically this form with the function onChange=(this.form.submit()),
when I try to test the functionallity doesn't work.
How can I test a submit form without "submit" button?
Steps To Reproduce:
On Tests:
$this->visit('projects)
        ->select('Bloggs & Co. Ltd', 'localization_account')
        ->click ('Bloggs & Co. Ltd')
        ->seePageIs('projects')
        ->('Current User: Bloggs & Co. Ltd')

On Blade:
<select id="localization_account" class="form-control select-organization" onchange="this.form.submit()" name="localization_account">
    <option value="0">--Choose account--</option>
    <option value="1">Bloggs & Co. Ltd</option>
</select>

This repo is for bug tracking. Use the forums or slack channel for solving your issue

Thank you so much!
2017-07-26 11:39 GMT+02:00 Ian Torres<EMAIL_ADDRESS>
Agree with @Dylan-DPC https://github.com/dylan-dpc, but just for
help... Use Laravel Dusk https://laravel.com/docs/5.4/dusk.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/laravel/framework/issues/20256#issuecomment-318003397,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQzdm3_ww5axNmtoC8Gz8p_BEIevF1gjks5sRwlbgaJpZM4Ois3z
.


Task 7 issue

When running the last exercise solution at the end of the notebook, the temperature doesn't change

changing mat to mat1 in the 1D section fixes it


Only check PSGallery when required

it seems that if you specify a dependency specifying a version like so:
@{
    psake = @{
        Version = '1.2.3'
    }
}

then running Invoke-PSDepend -Test will query PSGallery for each module BEFORE checking if it is installed locally which is quite slow. Could we not instead just check the required module exists at that version locally and if it does move on to the next without having to wait for a response from PSGallery?
Obviously when using 'latest' you will want to query PSGallery every time but for me personally I like to strictly define my expected modules.
I appreciate speed probably isn't the main driver here but its always nice as long as it doesn't affect outcome. Your thoughts?

Hiyo!  Yeah, that's certainly unintentional, unless there was some weird reason requiring it - thanks for the heads up, will poke around!

I don't even... Yeah : )  Will change that, hopefully this weekend - thanks again for the heads up!

Weird!  Do you see it go out and check the gallery?  Will have to test this out, but logic wise, it seems like it should be skipping before calling Find-Module per this - The Find-Module call is in a scriptblock that isn't invoked until later on (the &)
Cheers!

You are indeed correct. apologies i assumed it was checking psgallery each time due to the verbose out put:
VERBOSE: Getting dependency [psake] from PowerShell repository [GrPsGet]
VERBOSE: Populating RepositorySourceLocation property for module psake.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\psake\4.6.0\psake.psm1'.
VERBOSE: Found existing module [psake]
VERBOSE: You have the requested version [4.6.0] of [psake]

Juts had a poke around and its actually Get-PSDependType thats taking up the time. This is called a few times it seems during the process here and here
i wrapped these calls in measure-command to quantify and its about 10 seconds each call which is why i thought it was speaking to the gallery. here is the full output:
PS C:\Program Files\WindowsPowerShell\Modules\psdepend\0.2.1> Invoke-PSDepend -Path D:\Code\DSCDemo -verbose -force
VERBOSE: Running Invoke-PSDepend with ParameterSetName 'installimport-file', PSDependAction Install, and params:
Key     Value
---     -----
Path    {D:\Code\DSCDemo}
Verbose True
Force   True

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 10
Milliseconds      : 17
Ticks             : 100175520
TotalDays         : 0.000115943888888889
TotalHours        : 0.00278265333333333
TotalMinutes      : 0.1669592
TotalSeconds      : 10.017552
TotalMilliseconds : 10017.552

VERBOSE: done1
VERBOSE: Working with [1] dependency files from [D:\Code\DSCDemo]:
D:\Code\DSCDemo\requirements.psd1

VERBOSE: Running Invoke-DependencyScript with ParameterSetName 'Map' and params:
Key              Value
---              -----
PSDependAction   {Install}
PSDependTypePath C:\Program Files\WindowsPowerShell\Modules\PSDepend\0.2.1\PSDependMap.psd1
Dependency       @{DependencyFile=D:\Code\DSCDemo\requirements.psd1; DependencyName=psake; DependencyType=PSGalleryModule; Name=; Version=4.6.0; Parameters=System.Collections.Hashtable; Source=; Target=; AddToPath=; Tags=; DependsOn=; PreScripts=; PostScripts=; PSDependOptions=; Raw=System.Collecti...

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 9
Milliseconds      : 819
Ticks             : 98196420
TotalDays         : 0.000113653263888889
TotalHours        : 0.00272767833333333
TotalMinutes      : 0.1636607
TotalSeconds      : 9.819642
TotalMilliseconds : 9819.642

VERBOSE: done
VERBOSE: Dependencies:

DependencyFile  : D:\Code\DSCDemo\requirements.psd1
DependencyName  : psake
DependencyType  : PSGalleryModule
Name            :
Version         : 4.6.0
Parameters      : {Repository}
Source          :
Target          :
AddToPath       :
Tags            :
DependsOn       :
PreScripts      :
PostScripts     :
PSDependOptions :
Raw             : {Version, Parameters}

VERBOSE: Searching for C:\Program Files\WindowsPowerShell\Modules\PSDepend\0.2.1\PSDependScripts\PSGalleryModule.ps1
VERBOSE: Searching for PSGalleryModule.ps1
VERBOSE: Get-Parameters for C:\Program Files\WindowsPowerShell\Modules\PSDepend\0.2.1\PSDependScripts\PSGalleryModule.ps1\PSGalleryModule.ps1
VERBOSE: Found parameters [AllowClobber Dependency Import PSDependAction Repository SkipPublisherCheck]
VERBOSE: Invoking 'C:\Program Files\WindowsPowerShell\Modules\PSDepend\0.2.1\PSDependScripts\PSGalleryModule.ps1' with parameters
Name                           Value
----                           -----
PSDependAction                 {Install}
Dependency                     @{DependencyFile=D:\Code\DSCDemo\requirements.psd1; DependencyName=psake; DependencyType=PSGalleryModule; Name=; Version=4.6.0; Parameters=System.Collections.Hashtable; Source=; Target=; AddToPath=; Tags=; DependsOn=; PreScripts=; PostScripts=; PSDependOptions=; Raw=S...
Repository                     GrPsGet

VERBOSE: Getting dependency [psake] from PowerShell repository [GrPsGet]
VERBOSE: Populating RepositorySourceLocation property for module psake.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\psake\4.6.0\psake.psm1'.
VERBOSE: Found existing module [psake]
VERBOSE: You have the requested version [4.6.0] of [psake]

I will try this at home today and see if i get the same on my laptop. it might be something odd in my work environment. wouldn't be the first time.

Hmm.  Maybe I should add timestamps and other data to help diagnose performance issues.  Speed isn't the goal, but is certainly  a factor!
At least on my system, it's not terrible:
PS /Users/wframe/sc/PSDepend> Measure-Command {get-psdependtype} | select totalseconds

TotalSeconds
------------
    0.145524

That said, might not be the case here, but I've seen AV slow down tasks that hit the filesystem significantly (e.g. modules that dot sourced individual function files took a few seconds per file)
Cheers!

Managed to take another look and it was the Get-Help call that was taking the time. typical that I couldn't replicate the 10 second wait anymore but now its ~2 seconds. I've fixed it my end by parametizing the help
Makes it more zippy:
PS D:\Code\dscdemo> Measure-Command {Get-PSDependType}

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 2
Milliseconds      : 473
Ticks             : 24732520
TotalDays         : 2.86256018518519E-05
TotalHours        : 0.000687014444444444
TotalMinutes      : 0.0412208666666667
TotalSeconds      : 2.473252
TotalMilliseconds : 2473.252

PS D:\Code\dscdemo> Measure-Command {Get-PSDependType -SkipHelp}

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 0
Milliseconds      : 16
Ticks             : 169921
TotalDays         : 1.96667824074074E-07
TotalHours        : 4.72002777777778E-06
TotalMinutes      : 0.000283201666666667
TotalSeconds      : 0.0169921
TotalMilliseconds : 16.9921

However I kinda of realize I'm doing things wrong anyway. As you say speed isn't the goal and the reason it was an issue for me was because I was running invoke-PSDepend every time I build. I've stopped that now and just do it once when i start a change and let CI do it each time instead. Kinda like "If you keep getting stung try not walking through nettles".
Im happy to close this unless you think that commit is worth a pull? Thanks for the feedback.

Hiyo!  Completely forgot to reply - good catch!  And sure, would absolutely merge that : D
Cheers!


Huggingface cannot be opened

Hi，
I have tried many times recently but the huggingface website cannot be accessed. Is it possible to upload the pre-trained model to other websites? This will effectively help me use this pre-trained model.

It seems that the huggingface repo is still on, have you tried VPN if you are visiting from mainland?

Hi @Zhao-yan056 , have you successfully accessed the RemoteCLIP weights? If you still have trouble downloading it from Huggingface, we can provide a Baidu Netdisk alternative.


Are you sure macOS x86-64 binaries in GitHub releases are x86-64?

I forked pkgx (the cli) so that I can provide my own pkgx binaries with some fixes/improvements I need.
When doing so, I also refactored cd.yaml to not rely on self-hosted ARM64 runners.
I am mentioning this for two reasons:

Maybe you guys want to reuse the same idea to drop the dependency on self-hosted runners as well:

https://github.com/felipecrs/pkgx/blob/4ba6b22c67bac8e12ca1a90c5e7ca7ae375e5181/.github/workflows/cd.yml
https://github.com/felipecrs/pkgx/blob/4ba6b22c67bac8e12ca1a90c5e7ca7ae375e5181/scripts/build-binaries.sh

Note that the scripts are as ugly as possible, my only intention was to get it done however I could ASAP.

See this section:

https://github.com/pkgxdev/pkgx/blob/ba219daa68404f4dc6206ffce43f37d5ca25386f/.github/workflows/cd.yml#L61-L62
There's a problem. macos-latest is currently M1 (ARM64). I am wondering if the binary in the GitHub release is in fact a ARM64 binary named as if it was x86-64.

Oh, probably not (answering question 2). The latest pkgx release is from January, and I believe GitHub changed this after that.
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-private-repositories

Oh, another note:

I have absolutely no intention to keep maintaining such pkgx fork. I created it solely for my own needs. I hope the fixes gets merged in the main repo and I can get rid of my fork.

@dosubot you went far this time 🤣🤣🤣

@jhheider I believe the os: key is not relevant here right?
On the topic of making your own binaries for pkgx to consume, we'd like a flexible way to support that at some point for sure.

This was because GitHub changed the macros-latest runners to arm64. Was addressed in brewkit.

Should be ok now. If it wasn’t x64 then pantry builds would be failing.


abbreviate journal post on projects/show

Currently the most recent whole post is show. Set a reasonable length and trim with a "read more" link.

Addressed in https://github.com/inaturalist/inaturalist/commit/37184e3f26786e5518bedb8900883cfd6ade8229


New Gatsby Starter

Let's bring back the elements-starter-gatsby repository, redone for elements v7.
Acceptance Criteria

Update https://github.com/stoplightio/elements-starter-gatsby repo for elements v7
Update docs: docs/getting-started/2-integrations/gatsby.md

cc @audieleon

Repo for elements is here: https://github.com/stoplightio/gatsby-starter-elements

Repo for elements dev portal is here: https://github.com/stoplightio/gatsby-starter-elements-dev-portal


Feat/add reassure tests

Details

It is the first part of the PR  ->  https://github.com/Expensify/react-native-onyx/pull/525
We need to split it by two:

Add reassure and example tests
Add gh workflows to compare results on feature and main branch

We need to split it, because in the workflow we switch to main branch and run the reassure test there, so it is required to have at least one test in place on the main branch.
Related Issues

https://github.com/Expensify/App/issues/39164
Automated Tests

Manual Tests

Author Checklist

[x] I linked the correct issue in the ### Related Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] If we are not using the full Onyx data that we loaded, I've added the proper selector in order to ensure the component only re-renders when the data it is using changes
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

MacOS: Desktop

@mountiny @tylerkaraszewski It is the separated part of the PR -> https://github.com/Expensify/react-native-onyx/pull/525

I am not sure what happened here, I have merged the other PR you have linked but github seems to have merged this one too, how were they linked together?


Adding docs for Twilio az funcs v2 binding

Adding new code snippets that will function with Twilio API used in v2. Modifying existing docs to be in line with v2 functionality.

@maiqbal11 : Thanks for your contribution! The author, @ggailey777, has been notified to review your proposed change.

@ggailey777
Hi Glenn,
Could we get a review on this? Anyone following the Microsoft docs for Twilio output binding will not be able to use v2 currently. Thanks!

@maiqbal11 : Thanks for your contribution! The author, @ggailey777, has been notified to review your proposed change.

@maiqbal11 and @tysonn 👍

@GitHubber17 I didn't realize that 👍 (:+1) was equivalent to #sign-off, and I wasn't ready for this to get merged. I was just trying to acknowledge @tysonn. 😦
I guess I'll just take a look at it then in the private repo after the merge-down.


Remove disjoint_sets (merged into graph)

This pull request depends on committing https://github.com/boostorg/graph/pull/169.  The closer they occur to each-other, the better.

disjoint_sets was moved into boostorg/graph.  Please merge this PR to remove disjoint_sets from the superproject, assuming I did it right...

Removed in https://github.com/boostorg/boost/commit/f189e003906c764833bc616bf4aae7470dc924be.


support pass fuse fd to mount pod

CSI serve fuse_fd_csi_comm.sock after create mount pod:

waiting mount pod for sending fuse fd.
provide fuse fd to the mount pod after it restarts.

CSI set JFS_SUPER_COMM as env in mount pod.
When CSI restarted, parse fuse fds of all mount pods  in /tmp/<volumeId>.
Stop fuse_fd_csi_comm.sock after deleting mount pod.
Only do the above things if image tag > v1.2.1 for ce and > 5.1.0 for ee.
Do not set umount in preStop if this feature opens.

Codecov Report
Attention: Patch coverage is 67.64706% with 33 lines in your changes missing coverage. Please review.

Project coverage is 28.32%. Comparing base (b6b2aaa) to head (8429ec0).
Report is 36 commits behind head on master.

Files
Patch %
Lines

pkg/util/util.go
72.34%
11 Missing and 2 partials :warning:

pkg/controller/pod_driver.go
46.66%
5 Missing and 3 partials :warning:

pkg/juicefs/mount/builder/container.go
0.00%
6 Missing :warning:

pkg/juicefs/mount/pod_mount.go
0.00%
3 Missing and 2 partials :warning:

pkg/juicefs/mount/builder/common.go
0.00%
0 Missing and 1 partial :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1029      +/-   ##
==========================================
- Coverage   29.06%   28.32%   -0.75%
==========================================
  Files          47       49       +2
  Lines        6155     6497     +342
==========================================
+ Hits         1789     1840      +51
- Misses       4175     4455     +280
- Partials      191      202      +11

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


chore: Bump expo constants version to latest

Expo constants bumped to latest to upgrade expo config version due to eas android build failure. Expo manifests was also added as it is not included in the latest version of expo config.

Thanks for this, could you resolve the conflicts?  I have remove the dist folder from the repo.


Doesn't seem possible to iteratate over results

I'm pretty new to Rust. I've googled a few pages on this and either they're all wrong or it's changed. I'm using Rust 1.47.0 on Ubuntu. I have a config file in yaml.
println!("Config junk_file: {:?}", &doc["junk_file"]); ->
Config junk_file: Array([Hash({String("junk.txt"): String("24b5235d525a954ab98798cdbf5b3663")}), Hash({String("more_junk.exe"): String("d5a5d8421b2bd35ea6ab81f9d77efb3f")})])

I would like to do this (non-working code):
for (key, val) in doc["junk_file"].iter() {
    println!("{} / {}", key, val);
}

A lot of examples use iter_mut() or something like that. I want to read the values, not change them.

Is there a better way to read in a yaml file as a hashmap so I could use .iter(), contains_key(), get()? The println() shows have a Hash, which I believe should be a Hashmap, but it seems gimped. Would using serde::yaml give me a hashmap with these traits?

This works great:
   let mut junk = std::collections::HashMap::new();

   junk.insert("junk.txt", "24b5235d525a954ab98798cdbf5b3663");
   junk.insert("more_junk.exe", "d5a5d8421b2bd35ea6ab81f9d77efb3f");

   println!("junk hashmap: {:?}", junk);
   if junk.contains_key("junk.txt") {
     println!("Match, hash is: {}", junk.get("junk.txt").unwrap());
   }

junk hashmap: {"more_junk.exe": "d5a5d8421b2bd35ea6ab81f9d77efb3f", "junk.txt": "24b5235d525a954ab98798cdbf5b3663"}
Match, hash is: 24b5235d525a954ab98798cdbf5b3663

I'm not sure what's wrong with this crate but it seems like a much better solution is to just read the file in and use a regular expression to grab the values and insert into a hashmap. I'm not using any anchors or aliases in my yaml files so I think this this will be a much cleaner, robust, and working solution.

I was able use the serde-yaml crate (which uses this). I guess there's a reason for the serde middle-ware.


Fix bug import custom EVM Rpc

Describe the bug

Cannot import EVM Rpc that does not has net.isNetlistening method.

Version test : http://<IP_ADDRESS>:8900/s/x7zRQtJtgAkMCRb

[ ] The network is disconnected but balance is still displayed

Version test : http://<IP_ADDRESS>:8900/s/HamJEfQGeXmyk6t
Validation passed in case :

Install/Update version


Starting a new query from a BelongsToMany relation does not maintain pivot columns

It mantains pivot columns but there is no way to remove them from the result


Adding commentary and tests re heterogenous behavior

Follow up to https://github.com/pydantic/pydantic-ai/pull/505, addressing https://github.com/pydantic/pydantic-ai/pull/505#pullrequestreview-2517907593.
I'm not quite understanding how to enforce a final response here in a testing context.
I can open an issue requesting that we do some test restructuring, as I think there's more end to end testing in models/... than we might want - for example, this heterogenous response test that once resided in test_gemini.py...

thank you.


Include G.729 codec

Since the Codec G.729 is royalty free now, it would be great if NAudio would provide a codec for it, just like the G722Codec.
Is it possible to include it?

I've got no plans to implement it myself, but would happily accept a PR. Obviously if it was a port from C code, it would have to have a compatible license (i.e. no GPL)


Simple Canonicalization

Support for simple canonicalization.  This should be reviewed and merged after the as_fixes branch is in.  Or you can just look explicitly at the most recent commit.

All of the requested format changes have been made.  Note, this diff should be reviewed & merged after the AS_fixes patch

Obsoleted by other PRs.


[Config] Plugin names should not be normalized.

Hi,
The Symfony Config component normalizes plugin names, leading to 404 errors.
Given I have a plugin named 'my-plugin'
And the following configuration:
# app/config.yml
ivory_ck_editor:
    plugins:
        my-plugin:
            path: /assets/cke/plugins/my-plugin/
            filename: plugin.js
    configs:
        my_config:
            extraPlugins: 'my-plugin'

The ckeditor config output will be:
CKEDITOR.plugins.addExternal('my_plugin', '/assets/cke/plugins/my-plugin/', 'plugin.js');

Notice the difference ?

The normalization process is used to remove some of the differences that result from different configuration formats, mainly the differences between YAML and XML.
The separator used in keys is typically _ in YAML and - in XML. For example, auto_connect in YAML and auto-connect in XML. The normalization would make both of these auto_connect.

The target key will not be altered if it's mixed like foo-bar_moo or if it already exists.

So I guess a good move would be to add a "name" key for the plugin config that can be safely used to reference the plugin in javascript.
// IvoryCKEditorBundle/DependencyInjection/Configuration.php
/**
 * Creates the plugins node.
 *
 * @return \Symfony\Component\Config\Definition\Builder\NodeDefinition The plugins node.
 */
private function createPluginsNode()
{
    return $this->createNode('plugins')
        ->useAttributeAsKey('id')
        ->prototype('array')
            ->children()
                ->scalarNode('name')->end()
                ->scalarNode('path')->end()
                ->scalarNode('filename')->end()
            ->end()
        ->end();
}

Thanks for reporting! The issue has been fixed in 39fd4b84c8521f3dc8cccccf0a502e1c7bbd318e


fix: useSetupSugar blocks order error (#378)

Adjusted the code block insertion order generated by useSetupSugar. Now the block like <script setup> is below the <script>

Merge to consistent with document, but blocks order should not throw error, please report the problem to upstream, thanks.
Close #378


Flow coverage doesn't work with imported types

➜  flow-test git:(master) ✗ flow coverage --color app/components/Events/index.js

Here the same file /w the Event type directly defined in the same file.

I published a test repo where you can try it yourself: https://github.com/nikgraf/flow-test
I'm using flow 28.

You forgot to annotate the // @flow in the beginning of your imported file :-)

waaaaaaaaaahhhhh, thx @ryyppy


Policy for 'extras_require' dependencies

What is conda-forge's policy on conda dependencies that are listed under a package's extras_require in the setup.py file? Pyresample has a 'quicklook' extra that needs matplotlib, basemap, and pillow. The first two are rather large dependencies that a user is forced to install when they are only really used for debugging. Would it be possible to remove these dependencies from the conda-forge package?

We don't have a clear policy but we try to do what is most convenient for the users. If you want to remove those I am OK with it.


Common code to support read and write RPC.

Code to create ShareSnapshot type records.
Update PersisterStateManager main handler.
Add lifecycle methods in ShareCoordinator.
Create timelinehashmaps in ShareCoordinatorShard to store soft state.

LGTM


NestedScrollView  Looking up a deactivated widget's ancestor is unsafe.

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

run the demo code
drag down on loading screen
when future is completed , error will throw.

Expected results
no error
Actual results
error throw
Code sample
Code sample
 import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: RefreshList(),
  ));
}

class RefreshList extends StatefulWidget {
  @override
  State<RefreshList> createState() => _RefreshListState();
}

class _RefreshListState extends State<RefreshList> {
  bool _isLoading = true;
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    Future<void>.delayed(Duration(seconds: 2)).whenComplete(() {
      setState(() {
        _isLoading = false;
      });
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('RefreshList'),
      ),
      // AppBar
      body: NestedScrollView(
          headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
            return [
              const SliverToBoxAdapter(
                child: SizedBox(
                  height: 90.0,
                ),
              ),
            ];
          },
          body: _isLoading
              ? CustomScrollView(
                  physics: AlwaysScrollableScrollPhysics(),
                  slivers: <Widget>[
                    SliverFillRemaining(
                      child: Center(
                          child: Row(
                        mainAxisAlignment: MainAxisAlignment.center,
                        crossAxisAlignment: CrossAxisAlignment.center,
                        children: <Widget>[
                          Container(
                            margin: const EdgeInsets.only(right: 0.0),
                            height: 30.0,
                            width: 30.0,
                            child: getIndicator(context),
                          ),
                          Text('loading...')
                        ],
                      )),
                    ),
                  ],
                )
              : ListView.builder(itemBuilder: (b, index) {
                  return Container(
                    child: Text('$index'),
                  );
                })),
    );
  }

  Widget getIndicator(BuildContext context) {
    final ThemeData theme = Theme.of(context);
    return theme.platform == TargetPlatform.iOS
        ? const CupertinoActivityIndicator(
            animating: true,
            radius: 16.0,
          )
        : CircularProgressIndicator(
            strokeWidth: 2.0,
            valueColor: AlwaysStoppedAnimation<Color>(theme.primaryColor),
          );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]
https://github.com/flutter/flutter/assets/16477333/39017bf4-baee-4c90-b6f0-7955d115b479

Logs
Logs
════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building PrimaryScrollController(no controller):
Looking up a deactivated widget's ancestor is unsafe.

At this point the state of the widget's element tree is no longer stable.

To safely refer to a widget's ancestor in its dispose() method, save a reference to the ancestor by calling dependOnInheritedWidgetOfExactType() in the widget's didChangeDependencies() method.

The relevant error-causing widget was
ListView
main.dart:67
When the exception was thrown, this was the stack
#0      Element._debugCheckStateIsActiveForAncestorLookup.<anonymous closure>
framework.dart:4347
#1      Element._debugCheckStateIsActiveForAncestorLookup
framework.dart:4361
#2      Element.getElementForInheritedWidgetOfExactType
framework.dart:4396
#3      InheritedModel._findModels
inherited_model.dart:143
#4      InheritedModel.inheritFrom
inherited_model.dart:191
#5      MediaQuery._maybeOf
media_query.dart:1058
#6      MediaQuery.maybeDevicePixelRatioOf
media_query.dart:1101
#7      ScrollPosition.devicePixelRatio
scroll_position.dart:244
#8      ScrollMetrics.copyWith
scroll_metrics.dart:57
#9      ScrollPosition.didUpdateScrollDirection
scroll_position.dart:922
#10     _NestedScrollCoordinator.updateUserScrollDirection
nested_scroll_view.dart:634
#11     _NestedScrollPosition.goIdle
nested_scroll_view.dart:1344
#12     new _NestedScrollPosition
nested_scroll_view.dart:1184
#13     _NestedScrollController.createScrollPosition
nested_scroll_view.dart:1119
#14     ScrollableState._updatePosition
scrollable.dart:522
#15     ScrollableState.didChangeDependencies
scrollable.dart:556
#16     StatefulElement._firstBuild
framework.dart:5237
#17     ComponentElement.mount
framework.dart:5062
...     Normal element mounting (13 frames)

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.10.0, on macOS 12.6 21G115 darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.10.0 on channel stable at /Users/zmtzawqlp/Documents/flutter/3.10.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (3 months ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/zmtzawqlp/Library/Android/sdk
    • Platform android-33, build-tools 30.0.3
    • ANDROID_HOME = /Users/zmtzawqlp/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.80.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.70.0

[✓] Connected device (4 available)
    • MI 6 (mobile)              • 5a4b233b                             • android-arm64  • Android 9 (API 28)
    • iPhone 14 Pro Max (mobile) • 12E31781-40FE-4E3D-8D33-40C1A1E49BAD • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 12.6 21G115 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 115.0.5790.114

There is no error on v3.3.9, but it happens afer 3.10.0

@zmtzawqlp
I tried the code sample using latest stable (3.10.6) running on Android emulator through Android Studio with which I didn't observe the reported error. The list scrolls properly without throwing the error and I get below in the console while scrolling.
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app-debug.apk...
Debug service listening on ws://<IP_ADDRESS>:64314/YcL_p03BrB0=/ws
Syncing files to device sdk gphone x86 64...
I/ple.new_project(19868): Compiler allocated 4533KB to compile void android.view.ViewRootImpl.performTraversals()
W/Parcel  (19868): Expecting binder but got null!

If you could provide more details around it, will be good to properly address the issue.

@zmtzawqlp I tried the code sample using latest stable (3.10.6) running on Android emulator through Android Studio with which I didn't observe the reported error. The list scrolls properly without throwing the error and I get below in the console while scrolling.
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app-debug.apk...
Debug service listening on ws://<IP_ADDRESS>:64314/YcL_p03BrB0=/ws
Syncing files to device sdk gphone x86 64...
I/ple.new_project(19868): Compiler allocated 4533KB to compile void android.view.ViewRootImpl.performTraversals()
W/Parcel  (19868): Expecting binder but got null!

If you could provide more details around it, will be good to properly address the issue.

may be this issue is only on ios, list is apply for BouncingScrollPhysics, which can be drag down

demo is update, please try again. i change to the physics of CustomScrollView to BouncingScrollPhysics . and i can reproduce it on android device

@zmtzawqlp
See https://github.com/flutter/flutter/issues/98104#issuecomment-1034312069 and check if it helps in your case or not.

@zmtzawqlp See #98104 (comment) and check if it helps in your case or not.

It looks not the same issue. if the customer is await for the loading page and drag down list, this error will occur，i don't think there is any problem in my code. and Note: This issue did not occur on 3.3.9

Thanks for the update @zmtzawqlp
From the video you shared, it seems you were trying to refresh the list even before it was laid properly. Because in that case, the app wouldn't be ready as elements aren't there yet on screen and the tree was still being built. The refresh action would try to schedule a new frame to rebuild the widget tree and hence the error since the UI itself isn't built at first place. If the app elements are rendered and then you try to refresh, does it throw the same error ?
When I tried the same, it gave me below error:
======== Exception caught by foundation library ====================================================
The following assertion was thrown while dispatching notifications for _StretchController:
Build scheduled during frame.

While the widget tree was being built, laid out, and painted, a new frame was scheduled to rebuild the widget tree.

This might be because setState() was called from a layout or paint callback. If a change is needed to the widget tree, it should be applied as the tree is being built. Scheduling a change for the subsequent frame instead results in an interface that lags behind by one frame. If this was done to make your build dependent on a size measured at layout time, consider using a LayoutBuilder, CustomSingleChildLayout, or CustomMultiChildLayout. If, on the other hand, the one frame delay is the desired effect, for example because this is an animation, consider scheduling the frame in a post-frame callback using SchedulerBinding.addPostFrameCallback or using an AnimationController to trigger the animation.

When the exception was thrown, this was the stack:
#0      WidgetsBinding._handleBuildScheduled.<anonymous closure> (package:flutter/src/widgets/binding.dart:822:9)
#1      WidgetsBinding._handleBuildScheduled (package:flutter/src/widgets/binding.dart:845:6)
#2      BuildOwner.scheduleBuildFor (package:flutter/src/widgets/framework.dart:2707:24)
#3      Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:5036:12)
#4      State.setState (package:flutter/src/widgets/framework.dart:1223:15)
#5      _AnimatedState._handleChange (package:flutter/src/widgets/transitions.dart:129:5)
#6      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:403:24)
#7      AnimationLocalListenersMixin.notifyListeners (package:flutter/src/animation/listener_helpers.dart:161:19)
#8      AnimationController.value= (package:flutter/src/animation/animation_controller.dart:363:5)
#9      AnimationController.forward (package:flutter/src/animation/animation_controller.dart:459:7)
#10     _StretchController._recede (package:flutter/src/widgets/overscroll_indicator.dart:938:24)
#11     _StretchController.scrollEnd (package:flutter/src/widgets/overscroll_indicator.dart:911:7)
#12     _StretchingOverscrollIndicatorState._handleScrollNotification (package:flutter/src/widgets/overscroll_indicator.dart:740:26)
#13     _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130:38)
#14     _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3297:18)
#15     _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3300:13)
#16     Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4919:24)
#17     Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60:13)
#18     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102:63)
#19     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1008:15)
#20     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:974:9)
#21     _NestedInnerBallisticScrollActivity.applyNewDimensions (package:flutter/src/widgets/nested_scroll_view.dart:1521:14)
#22     ScrollPosition.applyNewDimensions (package:flutter/src/widgets/scroll_position.dart:706:15)
#23     _NestedScrollPosition.applyNewDimensions (package:flutter/src/widgets/nested_scroll_view.dart:1468:11)
#24     ScrollPosition.applyContentDimensions (package:flutter/src/widgets/scroll_position.dart:635:7)
#25     RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1425:20)
#26     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#27     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#28     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#29     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#30     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#31     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#32     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#33     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#34     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#35     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#36     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#37     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#38     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#39     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#40     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#41     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#42     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#43     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#44     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#45     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#46     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#47     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#48     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#49     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#50     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1444:11)
#51     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#52     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#53     RenderSliverFillRemainingWithScrollable.performLayout (package:flutter/src/rendering/sliver_fill.dart:89:14)
#54     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#55     RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:534:13)
#56     RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1512:12)
#57     RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1421:20)
#58     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2387:7)
#59     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1027:18)
#60     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1040:15)
#61     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:591:23)
#62     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:959:13)
#63     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:457:5)
#64     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1325:15)
#65     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1255:9)
#66     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1113:5)
#67     _invoke (dart:ui/hooks.dart:170:13)
#68     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:410:5)
#69     _drawFrame (dart:ui/hooks.dart:140:31)
The _StretchController sending notification was: _StretchController()
====================================================================================================

So see if below message helps to fix the error or not in your code:
This might be because setState() was called from a layout or paint callback. If a change is needed to the widget tree, it should be applied as the tree is being built. Scheduling a change for the subsequent frame instead results in an interface that lags behind by one frame. If this was done to make your build dependent on a size measured at layout time, consider using a LayoutBuilder, CustomSingleChildLayout, or CustomMultiChildLayout. If, on the other hand, the one frame delay is the desired effect, for example because this is an animation, consider scheduling the frame in a post-frame callback using SchedulerBinding.addPostFrameCallback or using an AnimationController to trigger the animation.

Thanks for the update @zmtzawqlp From the video you shared, it seems you were trying to refresh the list even before it was laid properly. Because in that case, the app wouldn't be ready as elements aren't there yet on screen and the tree was still being built. The refresh action would try to schedule a new frame to rebuild the widget tree and hence the error since the UI itself isn't built at first place. If the app elements are rendered and then you try to refresh, does it throw the same error ?
When I tried the same, it gave me below error:
======== Exception caught by foundation library ====================================================
The following assertion was thrown while dispatching notifications for _StretchController:
Build scheduled during frame.

While the widget tree was being built, laid out, and painted, a new frame was scheduled to rebuild the widget tree.

This might be because setState() was called from a layout or paint callback. If a change is needed to the widget tree, it should be applied as the tree is being built. Scheduling a change for the subsequent frame instead results in an interface that lags behind by one frame. If this was done to make your build dependent on a size measured at layout time, consider using a LayoutBuilder, CustomSingleChildLayout, or CustomMultiChildLayout. If, on the other hand, the one frame delay is the desired effect, for example because this is an animation, consider scheduling the frame in a post-frame callback using SchedulerBinding.addPostFrameCallback or using an AnimationController to trigger the animation.

When the exception was thrown, this was the stack:
#0      WidgetsBinding._handleBuildScheduled.<anonymous closure> (package:flutter/src/widgets/binding.dart:822:9)
#1      WidgetsBinding._handleBuildScheduled (package:flutter/src/widgets/binding.dart:845:6)
#2      BuildOwner.scheduleBuildFor (package:flutter/src/widgets/framework.dart:2707:24)
#3      Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:5036:12)
#4      State.setState (package:flutter/src/widgets/framework.dart:1223:15)
#5      _AnimatedState._handleChange (package:flutter/src/widgets/transitions.dart:129:5)
#6      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:403:24)
#7      AnimationLocalListenersMixin.notifyListeners (package:flutter/src/animation/listener_helpers.dart:161:19)
#8      AnimationController.value= (package:flutter/src/animation/animation_controller.dart:363:5)
#9      AnimationController.forward (package:flutter/src/animation/animation_controller.dart:459:7)
#10     _StretchController._recede (package:flutter/src/widgets/overscroll_indicator.dart:938:24)
#11     _StretchController.scrollEnd (package:flutter/src/widgets/overscroll_indicator.dart:911:7)
#12     _StretchingOverscrollIndicatorState._handleScrollNotification (package:flutter/src/widgets/overscroll_indicator.dart:740:26)
#13     _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130:38)
#14     _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3297:18)
#15     _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3300:13)
#16     Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4919:24)
#17     Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60:13)
#18     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102:63)
#19     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1008:15)
#20     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:974:9)
#21     _NestedInnerBallisticScrollActivity.applyNewDimensions (package:flutter/src/widgets/nested_scroll_view.dart:1521:14)
#22     ScrollPosition.applyNewDimensions (package:flutter/src/widgets/scroll_position.dart:706:15)
#23     _NestedScrollPosition.applyNewDimensions (package:flutter/src/widgets/nested_scroll_view.dart:1468:11)
#24     ScrollPosition.applyContentDimensions (package:flutter/src/widgets/scroll_position.dart:635:7)
#25     RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1425:20)
#26     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#27     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#28     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#29     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#30     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#31     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#32     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#33     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#34     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#35     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#36     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#37     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#38     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#39     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#40     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#41     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#42     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#43     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#44     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#45     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#46     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#47     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#48     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#49     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:104:21)
#50     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1444:11)
#51     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#52     RenderBox.layout (package:flutter/src/rendering/box.dart:2391:11)
#53     RenderSliverFillRemainingWithScrollable.performLayout (package:flutter/src/rendering/sliver_fill.dart:89:14)
#54     RenderObject.layout (package:flutter/src/rendering/object.dart:2548:7)
#55     RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:534:13)
#56     RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1512:12)
#57     RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1421:20)
#58     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2387:7)
#59     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1027:18)
#60     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1040:15)
#61     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:591:23)
#62     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:959:13)
#63     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:457:5)
#64     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1325:15)
#65     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1255:9)
#66     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1113:5)
#67     _invoke (dart:ui/hooks.dart:170:13)
#68     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:410:5)
#69     _drawFrame (dart:ui/hooks.dart:140:31)
The _StretchController sending notification was: _StretchController()
====================================================================================================

So see if below message helps to fix the error or not in your code:
This might be because setState() was called from a layout or paint callback. If a change is needed to the widget tree, it should be applied as the tree is being built. Scheduling a change for the subsequent frame instead results in an interface that lags behind by one frame. If this was done to make your build dependent on a size measured at layout time, consider using a LayoutBuilder, CustomSingleChildLayout, or CustomMultiChildLayout. If, on the other hand, the one frame delay is the desired effect, for example because this is an animation, consider scheduling the frame in a post-frame callback using SchedulerBinding.addPostFrameCallback or using an AnimationController to trigger the animation.

i didn't meet the error which you meantion. you can try to drag down and hold it before _isLoading is true, and after 2 seconds, you will see the error.
setState in next frame is not helpful for my issue.

  bool _isLoading = true;
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    Future<void>.delayed(Duration(seconds: 2)).whenComplete(() {
      WidgetsBinding.instance.addPostFrameCallback((t) {
        setState(() {
          _isLoading = false;
        });
      });
    });
  }

Thanks for the update. I am unable to replicate the exact error reported in this issue, but based on it and discussion above, keeping it open for team's attention and tracking.

cc @Piinks

I am unable to replicate the exact error reported in this issue

Looks like this was fixed in #126535 which was first reported in #126454  🎉
The fix should be in the next stable release, but is also currently available on the beta channel.


RC1 plan

[x] Test PCG and Xoshiro
[x] Test exceptions, including fixing #2
[x] Port tests from the PHP ext
[x] Test serialization in Mt19937Known
[x] Test 32 bit
[x] Increase coverage
[x] Wait for PHP 8.2.0 RC1

RC1 released


chore(deps): update actions/github-script action to v7

This PR contains the following updates:

Package
Type
Update
Change

actions/github-script
action
major
v6 -> v7

Release Notes

actions/github-script (actions/github-script)
v7
Compare Source

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

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

This PR has been generated by Renovate Bot.

 You will not get PRs for any future 7.x releases. But if you manually upgrade to 7.x then Renovate will re-enable minor and patch updates automatically.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.


[BUG] Cannot copy content into clipboard inside web browser

Whether Ctrl+C or Ctrl+Shift+C is unavilable inside browser

sshx's terminal does not support copy and paste at all, can it be supported?

Thanks, if anyone else wants to chime in feel free! So far it sounds the keyboard shortcut is working on macOS but not on Linux.

Thanks, if anyone else wants to chime in feel free! So far it sounds the keyboard shortcut is working on macOS but not on Linux.

When will it be resolved?

I test it on windows, I can paste commands into the web terminal, but can not copy contents in the web terminal and paste it into other place

Hi @xiebruce, what is your Windows version and browser version?

Hi @xiebruce, what is your Windows version and browser version?

Actually I'm using macOS and it works fine, I can paste contents into the web terminal or copy contents out from the web terminal.
And the Windows(x86_64) is installed in parallels desktop on my Mac(Intel cpu), here is the version:

Version: Windows 10 Professional
Version Number: 22H2
OS Internal Version: 19045.4291

Just tested on Windows, Ctrl+C sends a SIGINT and Ctrl+Shift+C opens up inspect element.
Version: Windows 10 Home
Version Number: 22H2
Chrome: Version 122.0.6261.69 (64-bit)

Hi @xiebruce, what is your Windows version and browser version?

Actually I'm using macOS and it works fine, I can paste contents into the web terminal or copy contents out from the web terminal.
And the Windows(x86_64) is installed in parallels desktop on my Mac(Intel cpu), here is the version:

Version: Windows 10 Professional
Version Number: 22H2
OS Internal Version: 19045.4291

Oh, the browser that I use on Windows is: Edge 124.0.2478.67 (64bit)

Based on normal windows terminal behavior, this seems about the same. Only difference is Ctrl+V allows pasting which doesn't seem to work in sshx.

Hi @xiebruce, what is your Windows version and browser version?

Actually I'm using macOS and it works fine, I can paste contents into the web terminal or copy contents out from the web terminal.
And the Windows(x86_64) is installed in parallels desktop on my Mac(Intel cpu), here is the version:

Version: Windows 10 Professional
Version Number: 22H2
OS Internal Version: 19045.4291

Oh, the browser that I use on Windows is: Edge 124.0.2478.67 (64bit)

Oh, sorry, I forgot to tell you that I run the sshx on macOS(not windows), and then visit the link on Windows and test it.

Control-shift-c does not work at all
Control-shift-v works great
Right click, no option to copy or paste text
Version 124.0.6367.91 (Official Build) (64-bit)
noah@zn210:~/bin$ cat /proc/version
Linux version 6.5.0-28-generic (buildd@lcy02-amd64-001) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.41) #29-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 28 23:46:48 UTC 2024
Same with Debian Bookworm.
I do not see any way to copy in my environment with the mouse, so I revert to vi commands for copy.

On Fedora 40 with Brave browser Control-shift-v works perfectly all the time for pasting. Control-shift-c opens the command panel instead. Trying to copy with right click thinks the text is an image. Firefox works better, there at least the right click option works.

Firefox works fine for copy & paste on
inux version 6.5.0-28-generic (buildd@lcy02-amd64-001) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.41) https://github.com/ekzhang/sshx/pull/29-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 28 23:46:48 UTC 2024

On Firefox for me this extension works: https://addons.mozilla.org/en-US/firefox/addon/ctrl-shift-c-should-copy/


Flaky TestMismatchedBuildContextID test

https://github.com/TBD54566975/ftl/actions/runs/11624202043/job/32372447807?pr=3296

False alarm, it was just a bug in the test


Add akash goel to Contirbuor list

@akashgoel1197, I'm quite elated about your PR. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a PR and learned that I merged it?


Getting Started Guide for Angular users

Have at it all - feel free to suggest ideas and let's get something going.

As a start for this discussion, I'll share with you what I needed to learn on my first journey using RxJs with Angular:

Using Http Module I needed to know how to issue an Http request and bind the result to the UI without using Promise pattern.
How to merge the results of two requests: for example getting an id from a request then use this id in another request to get the data to be shown in the UI
How to use a Subject correctly to share a state change between several angular components
What to choose, behaviorSubject or subject
Managing UI events using RxJs
Design patterns related to these problems
That is what I can recall right now. I'll add more if I remember anything else in this regard

@mustafamg all these sound lovely. i'm sure @btroncone and @benlesh may have comments on this, but please feel free to get started! all sounds awesome so far.

Okay, I'll create issues for these suggestions and start working on them :)

Lovely!

Thanks @mustafamg, this is a great start! I would probably touch on observable forms and routing API's as well since they are so commonly used.
Can't wait to see what you come up with! 👍

@mustafamg - This is amazing !
@mustafamg @btroncone - There is an issue #55 to create real world examples. Just want to make sure how do we separate getting started and real world examples or just go with getting started guide and add a section within the getting started guide as real world examples.

I think having a section for an angular full example is a good idea. I only want to add that the guidance is similar to a getting started section of any new tool. It does not get depth in describing how to do the same thing using different methods. I think it should just provide a simple introduction to how to use Reactive related concept or operator to achieve that very specific goal such as "declaratively use HttpModule to define requests and showing the results on the UI".  It should not include how to use it through stateless service for example. A reference to a blog post can be used for further readings.

@mustafamg I think we should target AngularCLI for starting & also an article without the CLI for those without it, But all examples in the CLI should work in other angular environments. But I think the CLI is easier to get started with. I'd definitely like to collaborate with you. Preferably tackling low hanging fruit of this task.

@lordKnighton our target is not to make a tutorial of how to use angular. Our aim is a guidance of using RxJs concepts while developing an angular application.
So in scope: How to return observable to the UI instead of converting to promises
Out of scope: How to start a new angular application


The way of calculating a hand's best form may be wrong.

in src/evaluator.ts, there is
protected showdown(holeCardPairs: CardSet[], board: CardSet): Matchup {
    const players: Pick<Matchup["players"][0], "cards" | "hand">[] = [];
    const wonPlayerIndexes = new Set<number>();
    let strongestPowerIndex = Number.MAX_SAFE_INTEGER;

    for (const [i, holeCardPair] of holeCardPairs.entries()) {
      const madeHand = MadeHand.findBestFrom(holeCardPair.added(board));
...

notice MadeHand.findBestFrom(holeCardPair.added(board));
We all know that each player can only pick up three cards from the board, but here cards from deck are mixed with player's cards, so there might be situations where five cards from the deck are the best and are then picked up.

My bad. I didn't understand the rule correctly.


Infra deploy

created cfn dir w/ infra launch and set workflow to build if files are updated
application deploy is not included at this time

Looks like there are a bunch of duplicate files in here that shouldn't get merged? E.g. admin 2.py, test 2.py? Duplicate bad test files are causing the CI to fail. Do you have precommit set up? If you don't that's likely why the lint tests are failing as well.


⚠ Bofrost.com has degraded performance

In f0adb4d, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 1712 ms

Resolved: Bofrost.com performance has improved in 37ea90b after 6 minutes.


How to extract values from SHAP force plot or _waterfall.waterfall_legacy

The plots produced by shap.plots.force and shap.plots._waterfall.waterfall_legacy are very interesting as they allow me to see the impact of each feature on an individual prediction. However, I would like to be able to extract these numbers and make my own graphs. For example, I get the following plots:

I would like to be able to not only print out these htmls with these graphs but to extract the numbers, into a dataframe or something of the sort, where it shows me feature 0 had an impact of -0.08, feature 14 an impact of -0.04, etc...
I tried going through the documentation of the plot for force plots but couldn't figure out how the numbers are calculated.
Is it possible to help me with this?

@theflyingali The values in the plots are all coming from the Explanation object (output of shap.explainer(model)(X)) or the shap values numpy array (output of shap.explainer(model).shap_values(X)).
For the former case, you want to inspect the values and base_values attributes.


plot3d scene fix and minor improvement

This PR:

fixes an issue in rendering/picking of none square 2D images (due to using not reversed shape),
allows to toggle keep aspect ratio on/off for Orthographic (i.e., parallel) projection.

Added fix of indentation


Can't exit in-game options menu (some times)

Seems to be caused by forcing the resolution. The save gets corrupted with no pickable resolutions, and user needs to pick a new resolution to fix it.

I experience this after changing any graphics setting. Nothing I do allows me to exit.
NomaiVR 0.35.1, game version <IP_ADDRESS>0 on Epic, Vive Pro.

Closing as this doesn't seem to happen anymore. Not sure why.


Submit to polyfill.io

Hi @JamesMGreene,
have you considered to submit this Polyfill to https://github.com/Financial-Times/polyfill-service?
I'd love to see it available there!
Best,
Chris

There's a pending issue at https://github.com/Financial-Times/polyfill-service/issues/943

Will do, hopefully tonight.

PR to Polyfill. Thanks!


trim how we are using same help text over and over again

Please make sure the code is following contribution guidelines in CONTRIBUTING.md

[ ] : This PR has a corresponding issue open in the Repository.
[ ] : Approach is signed off on the issue.

There are couple of comments but approving since the changes do not need a review again.


(ClusterClient).ForEachNode does not cover all nodes

In a cluster with 3 masters (ports 7000-7002) and 3 slaves (ports 7003-7005) connected as:
c := redis.NewClusterClient(&redis.ClusterOptions{
	Addrs: []string{":7000", ":7001", ":7002"},
})

Using WrapProcess inside ForEachNode does not wrap each client, leaving gaps. ForEachNode uses a for loop to go through each master (state.masters) and slave (state.slaves), but omits some nodes (state.nodes.nodes).
In the above setup, the state field contains:
state.masters:
<IP_ADDRESS>:7002
<IP_ADDRESS>:7000
<IP_ADDRESS>:7001

state.slaves:
<IP_ADDRESS>:7005
<IP_ADDRESS>:7003
<IP_ADDRESS>:7004

state.nodes.nodes:
<IP_ADDRESS>:7002
<IP_ADDRESS>:7005
<IP_ADDRESS>:7000
<IP_ADDRESS>:7003
<IP_ADDRESS>:7004
:7000
:7001
:7002
<IP_ADDRESS>:7001

Even though ForEachNode goes as expected through each unique node, it does not offer the possibility to tap into every client. One possible fix could be:
diff --git a/cluster.go b/cluster.go
index a2c18b3..8761000 100644
--- a/cluster.go
+++ b/cluster.go
@@ -816,11 +816,7 @@ func (c *ClusterClient) ForEachNode(fn func(client *Client) error) error {
 		}
 	}

-	for _, node := range state.masters {
-		wg.Add(1)
-		go worker(node)
-	}
-	for _, node := range state.slaves {
+	for _, node := range state.nodes.nodes {
 		wg.Add(1)
 		go worker(node)
 	}

Would this change or a similar one make sense? Or am I doing something stupid?

Resolved in PR.


Allow setting the Dockerfile and the Docker build context when building

Hey there 👋
We're using a monorepo and gems get included in the apps via path (e.g. gem 'mygem', path: '../mygem'). As Docker limits everything to the context (default .), including gems outside of the context does not work. I'm no Docker expert, but setting the context to .. and specifying the Dockerfile with --file Dockerfile seems to do the trick.
This PR:

adds a context option to the builder config
adds a dockerfile option to the builder config
The default value for this is Dockerfile and it will always be appended to the build command. This is helpful if someone wants to use different Dockerfiles (e.g. Dockerfile.development). I'm not sure if this is feasible as a config option at all, but to support passing the context, the --file argument seems to be needed in the build command (and maybe is a little more explicit). Otherwise, Docker would look for the Dockerfile in the root of the context.

The build configuration would look as follows:
# Set context
builder:
  context: ".."

# Use different Dockerfile
builder:
  dockerfile: Dockerfile.xyz

# Set context and Dockerfile
builder:
  context: ".."
  dockerfile: "../Dockerfile.xyz" # Dockerfile is in the parent directory

It would also be possible to just allow configuring the context and making sure the --file Dockerfile argument always gets passed to the build command (without it being a configuration option).

Good stuff. Can you add docs too?

Thanks for merging! Sure, will open another PR 👍


KNOWN: Input type is not determined by preferences

Which input type is accepted as a control scheme is currently hard-coded in priority depending on a couple factors. However, the control system should simply use a settings screen instead to set which input type the user prefers. This preference would then be checked by the current input handling script instead of using hard-coded values.

Got around this issue by having various input types detected and handled "on the fly". Specifically:

If any accelerate button is selected, you accelerate

For Android, touching the screen at all accelerates constantly

If any brake button is selected, you brake

For Android, taking your finger off the screen brakes

For turning input, a priority system is used: the TiltFive controller, an Android touchscreen, then keyboard/gamepad input

For Android, you steer by moving your finger left or right while touching the screen

Currently this fix should handle keyboard, gamepad, Android touchscreen, and the TiltFive controller in "controller mode". The reason why "wand mode" isn't yet supported are detailed in issue #7 .


package.json tune-up

Part of ongoing effort to bring our dependencies up to date and optimize by removing unused libraries on combining them in cases where we are using more than one for the same purpose.
There are several cases where deps are not updated due to more extensive code refactoring required (these will require their own PRs).

Gonna leave this in staging for a bit and keep my eyes on sentries.


Missing UASZone.dataSource

USpace Zone::UASZone's optional member dataSource of type USpaceZone::Metadata from the current standard text is not defined in this repository.  (members: creationDateTime, updateDateTime, author)

This is not expected to be included in the GeoZone files. It is only part of the UML model and it is expected to be used only on the data provider side (State) for traceability purpose. It does not need to be added to the GeoJSON schema.


Notifications should time out when there's low connectivity

Describe the bug
Right now, the notifications screen will show an infinite loading wheel when there's low internet connectivity. This isn't great because it makes the user think notifications will eventually load.
To Reproduce
Steps to reproduce the behavior:

Start the app in a place with low internet connectivity (not fully offline)
Tap on Notifications icon
See infinite loading wheel

Expected behavior
We should add a timeout, similar to what we do in Suggestions. When the timeout is reached (5 seconds? 10 seconds?) a user should see the no internet screen, which lets them tap to retry.
Context (please complete the following information):

Device: iPhone
App version: 0.49.0

@albullington Please assign this to me

Done

@albullington I have unassigned myself from this issue as it requires testing with a logged-in user, and I currently do not have a account.


Update trainer.py: do not apply softmax inside train_and_valid and test functions

Doing action=np.exp(action)/np.sum(np.exp(action)) in valid and test transform the weights to a smaller interval than [0,1]. For example, with 3 stocks, each one will has weight in the interval [0.21, 0.58]. It's not necessary (in fact it's wrong) to make this assignment here since the softmax function is already applied inside step function.

Thanks for your advice.
However, making the agent have each portfolio weight from 0 to 1 will lead to longer convergence time and might not be suitable for beginners.
Hope this can help.

Thanks for your reply.
I understand and agree with your concerns about longer convergence time. However, I would like to emphasize that applying softmax in the way it is currently implemented may cause the weights to be more equally distributed during validation and testing periods, as compared to the training period. This could make it more challenging to achieve satisfactory results in out-of-sample periods.
In the case of a large dataset, it is expected that the distribution of values for each column of the weight vector should be relatively similar between training and validation periods. The current softmax application results in a significantly different distribution, which might hinder the effectiveness of the learned weights during the training phase when applied to validation and testing phases.
I hope this clarification helps.

I think you are right, thank you for the suggestion.


Naming files in Chinese, ZIPPacker and ZIPReader will generate Garbled code

Godot version
v4.0.3.stable.official [5222a99f5]
System information
win10 21H2,Vulkan API 1.2.0
Issue description
I'm for use "Beta: Use Unicode UTF-8 for worldwide language support"
The file name will display as normal, but ZIPReader.read_file() is still garbled
I tried using 7zip Packing files,
Disable "Beta: Use Unicode UTF-8 for worldwide language support"
Is still displayed normally, but ZIPReader.read_file()  is still garbled

Steps to reproduce
run node.tscn, look error reporting.
Minimal reproduction project
test_zip.zip

Bug is probably windows specific.

The instructions say that the bug happens when gdscript is ran and displays correctly.


Publish does not find generated deb alpha package

[*] I have read the contribution documentation for this project.
[*] I agree to follow the code of conduct that this project follows, as appropriate.
[*] I have searched the issue tracker for an issue that matches the one I want to file, without success.

I named my first version 0.1.0-alpha-1 and ran publish dry-run and then from-dry-run command, but electron-forge ended with a following error:
Attempted to resume a dry run but an artifact (/home/circleci/repo/dist/electron/out/make/radio-drama-soundboard_0.1.0-alpha-1_amd64.deb) could not be found

The problem is that such a version is renamed by the deb packager to this:
radio-drama-soundboard_0.1.0~alpha-1_amd64.deb
Notice the tilde separating major.minor.patch and metadata. The version name is valid from perspective of semver 2.0.
What command line arguments are you passing?
electron-forge publish --dry-run -p linux
electron-forge publish --from-dry-run -p linux

What does your config.forge data in package.json look like?
"forge": {
      "make_targets": {
        "win32": [
          "squirrel"
        ],
        "darwin": [
          "zip"
        ],
        "linux": [
          "deb",
          "rpm"
        ]
      },
      "electronPackagerConfig": {
        "packageManager": "npm",
        "asar": true
      },
      "electronWinstallerConfig": {
        "name": "radio_drama_soundboard"
      },
      "electronInstallerDebian": {},
      "electronInstallerRedhat": {},
      "github_repository": {
        "owner": "just-paja",
        "name": "radio-drama-soundboard"
      },
      "windowsStoreConfig": {
        "packageName": "",
        "name": "radiodramasoundboard"
      }
    }

I'm starting to fix this here: https://github.com/unindented/electron-installer-debian/pull/144

Oops, didn't mean to close this via electron-installer-debian.


Create Config and WeaponsDetect option in Immich ML Repository.

Added new config WeaponsDetect Config.

Defined required response and created a new interface and function to send requests to weapons detection model from immich-server.

Potential future task is to have video data sent as a stream since currently it sends it as a blob.


Avatars

avatars should be available at an IdP, but it will require additional cors setup. also owncloud already has an avatars andpoint that we need to implement it can look up the avatar url in the user metadata and either stream the content or eg fetch it from ldap. We might have to cache them in our service.
HTTP/1.1 200 OK
Content-Type: application/json

{
 "sub"         : "248289761001",
 "name"        : "Jane Doe"
 "given_name"  : "Jane",
 "family_name" : "Doe",
 "email"<EMAIL_ADDRESS> "picture"     : "http://example.com/janedoe/me.jpg"
}

The ocs service can fetch that picture url, cache it an serve it when a requests avatars, eg. when searching recipients.

bump. Should we schedule and categorize this one?

Will be handled on the roadmap as feature development. This ticket is stale


E2E test

test for rpc block height and indexed block height.

Hey @notTanveer, very good effort. I reckon we should be very particularly concerned with external APIs, that is , e2e test should act like a client making requests to the indexer and should assert a given response. The overaching goal is to treat the indexer as a black box.