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

#8600: drop deprecated localStorage data binding for embedded forms #8631

Merged
merged 6 commits into from
Jun 17, 2024

Conversation

twschiller
Copy link
Contributor

@twschiller twschiller commented Jun 16, 2024

What does this PR do?

Discussion

  • The change is backward incompatible. The field had shown as Deprecated in the Page Editor for a long time
  • Will break the inline panel in test mod @pixies/linkedin/organization-demos which doesn't declare a storage type (that mod was hand-written in v1). We could switch that test mod to use mod variable, or just drop that part of the test. (I'd vote we just drop that part of the mod given we're not supporting that use case)

Customer Impact Checks for Backward Compatibility

✅ Query: $..*[?(@.type=="localStorage")]

No customer mods impacted

Future Work

  • There's some future improvements we'll need to make. Custom form doesn't use the Platform API for mod variables, it calls the content script messenger directly

Checklist

  • Add jest or playwright tests and/or storybook stories
  • Designate a primary reviewer: @fungairino

@twschiller twschiller requested review from grahamlangford, BLoe and fungairino and removed request for grahamlangford June 16, 2024 14:47
@twschiller twschiller changed the title #8600: drop deprecated localStorage data binding #8600: drop deprecated localStorage data binding for embedded forms Jun 16, 2024
Copy link

codecov bot commented Jun 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.69%. Comparing base (18c5348) to head (1c3b83b).
Report is 31 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8631      +/-   ##
==========================================
+ Coverage   73.63%   73.69%   +0.05%     
==========================================
  Files        1344     1344              
  Lines       41544    41564      +20     
  Branches     7767     7773       +6     
==========================================
+ Hits        30592    30630      +38     
+ Misses      10952    10934      -18     

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

Copy link

github-actions bot commented Jun 16, 2024

Playwright test results

passed  75 passed
skipped  2 skipped

Details

report  Open report ↗︎
stats  77 tests across 26 suites
duration  10 minutes, 46 seconds
commit  1c3b83b

Skipped tests

chrome › tests/runtime/googleSheetsIntegration.spec.ts › can activate a google spreadsheet mod with config options
edge › tests/runtime/googleSheetsIntegration.spec.ts › can activate a google spreadsheet mod with config options

@twschiller twschiller added this to the 2.0.3 milestone Jun 16, 2024
@fungairino
Copy link
Collaborator

fungairino commented Jun 17, 2024

Learning:

How did you make the query you mentioned in the description?
"$..*[?(@.type=="localStorage")]"

@twschiller
Copy link
Contributor Author

Learning:

How did you make the query you mentioned in the description? "$..*[?(@.type=="localStorage")]"

See https://app.pixiebrix.com/registry-query which has a linked Notion with examples. I had to use command line because the query was taking longer than 30s

Copy link

No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack.

Do not edit this comment manually.

@twschiller twschiller enabled auto-merge (squash) June 17, 2024 15:49
@twschiller twschiller merged commit 190d724 into main Jun 17, 2024
19 checks passed
@twschiller twschiller deleted the feature/8600-localstorage-data-binding branch June 17, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop deprecated data location from embedded form
3 participants