Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup InitRxUI to account for order of passed registration namespaces #3887

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Metadorius
Copy link

What kind of change does this PR introduce?

Bug fix?

What is the current behavior?

Originally the InitializeReactiveUI function didn't account for order of passed registration, because the allowed namespace dictionary was enumerated instead of the array (which is kind of backwards if you think about it).

What is the new behavior?

Order of the namespaces is preserved when registering.

What might this PR break?
Multi-platform projects that rely on current non-determinant order may break because of different order of registrations.

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:
Not sure on what kind of tests/docs are expected, so I am leaving it as draft for now, feel free to undraft if you feel this is OK.

@glennawatson
Copy link
Contributor

we'll discuss as a team if we want to keep this PR.

If we bring it across would you be okay just adding some simple unit tests for it?

@Metadorius
Copy link
Author

If we bring it across would you be okay just adding some simple unit tests for it?

Sure, I just was not sure what specifically needs to be tested here (or how, because the effect can vary in different setups), so would not mind an idea on what to write tests for.

Copy link

codecov bot commented Sep 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.82%. Comparing base (d75f999) to head (2880317).
Report is 124 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3887      +/-   ##
==========================================
+ Coverage   59.03%   67.82%   +8.78%     
==========================================
  Files         160      138      -22     
  Lines        5847     4805    -1042     
  Branches     1031      777     -254     
==========================================
- Hits         3452     3259     -193     
+ Misses       2007     1344     -663     
+ Partials      388      202     -186     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants