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

fix(#6549): [StaticRootPlugin] Remap non-empty root namespaces and non-root namespaces correctly #6583

Merged
merged 10 commits into from
Apr 14, 2023

Conversation

ozyx
Copy link
Member

@ozyx ozyx commented Apr 12, 2023

Closes #6549 #6584

Describe your changes:

  • Fixes an issue where the StaticRootPlugin would incorrectly overwrite identifiers with non-root namespaces in composition (such as those from a telemetry dictionary), creating malformed identifiers and breaking imported objects.
  • Fixes an issue where the StaticRootPlugin could not map identifiers properly if the exported object had a non-empty namespace (any namespace that's not "").
  • Adds a suite of unit tests for StaticRoot remapping with non-empty namespaces

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this change backwards compatible? For example, developers won't need to change how they are calling the API or how they've extended core plugins such as Tables or Plots.

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Command line build passes?
  • Has this been smoke tested?
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?
  • Has associated issue been labelled unverified? (only applicable if this PR closes the issue)
  • Has associated issue been labelled bug? (only applicable if this PR is for a bug fix)

- Fixes the issue of the Static Root provider overriding existing namespaces, such as those from a telemetry dictionary
- Fixes the issue of keys of child objects NOT present in the idMapping (such as those from a telemetry dictionary) being overwritten as undefined
- TODO: This will not work for objects exported from an environment that has the "MyItems" namespace defined to anything other than an empty string. Need to figure out how to handle this.
@deploysentinel
Copy link

deploysentinel bot commented Apr 12, 2023

Current Playwright Test Results Summary

✅ 12 Passing - ⚠️ 3 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 04/14/2023 11:09:49pm UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: 6ba8aa0

Started: 04/14/2023 11:08:17pm UTC

⚠️ Flakes

📄   functional/couchdb.e2e.spec.js • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
CouchDB Status Indicator with mocked responses @couchdb Shows red if not connected
Retry 1Initial Attempt
0% (0) 0 / 16 runs
failed over last 7 days
56.25% (9) 9 / 16 runs
flaked over last 7 days
CouchDB Status Indicator with mocked responses @couchdb Shows unknown if it receives an unexpected response code
Retry 1Initial Attempt
0% (0) 0 / 16 runs
failed over last 7 days
37.50% (6) 6 / 16 runs
flaked over last 7 days

📄   functional/forms.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Persistence operations @couchdb Can create an object after a conflict error @couchdb @2p
Retry 1Initial Attempt
0% (0) 0 / 13 runs
failed over last 7 days
76.92% (10) 10 / 13 runs
flaked over last 7 days

View Detailed Build Results


@ozyx ozyx changed the title Mct6549 fix(#6549): [StaticRootPlugin] Remap non-empty root namespaces and non-root namespaces correctly Apr 12, 2023
@ozyx ozyx added this to the Target: 2.2.2 milestone Apr 12, 2023
@ozyx ozyx marked this pull request as ready for review April 12, 2023 16:45
@ozyx ozyx requested review from khalidadil and akhenry April 12, 2023 18:04
@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Apr 13, 2023
Copy link
Contributor

@khalidadil khalidadil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@ozyx ozyx added pr:e2e:couchdb npm run test:e2e:couchdb and removed pr:e2e:couchdb npm run test:e2e:couchdb labels Apr 14, 2023
@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Merging #6583 (e42ce7f) into master (a9a9838) will increase coverage by 2.61%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #6583      +/-   ##
==========================================
+ Coverage   52.38%   54.99%   +2.61%     
==========================================
  Files         626      626              
  Lines       26460    26469       +9     
  Branches     2422     2422              
==========================================
+ Hits        13861    14557     +696     
+ Misses      11932    11245     -687     
  Partials      667      667              
Flag Coverage Δ *Carryforward flag
e2e-full 51.15% <ø> (+0.07%) ⬆️ Carriedforward from a9a9838
e2e-stable 55.43% <0.00%> (?)
unit 49.00% <100.00%> (-0.01%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...rc/plugins/staticRootPlugin/StaticModelProvider.js 98.33% <100.00%> (+2.03%) ⬆️

... and 92 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@khalidadil khalidadil merged commit dbdc9bb into master Apr 14, 2023
10 of 13 checks passed
@khalidadil khalidadil deleted the mct6549 branch April 14, 2023 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:e2e:couchdb npm run test:e2e:couchdb
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Static Root Plugin does not work with overlay plots
2 participants