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

Require version on ModDefinition.metadata #9264

Merged
merged 5 commits into from
Oct 10, 2024
Merged

Conversation

twschiller
Copy link
Contributor

@twschiller twschiller commented Oct 10, 2024

What does this PR do?

  • Strengthen types on ModDefinition.metadata and ModMetadata to require version
  • In practice, version is always defined (b/c it must be defined to save the mod). It's just not required on the base Metadata type due to JS-defined bricks having their version determined at runtime

Future

For more information on our expectations for the PR process, see the
code review principles doc

Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.09%. Comparing base (8318d74) to head (5697465).
Report is 357 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9264      +/-   ##
==========================================
+ Coverage   74.24%   75.09%   +0.84%     
==========================================
  Files        1332     1369      +37     
  Lines       40817    42267    +1450     
  Branches     7634     7882     +248     
==========================================
+ Hits        30306    31740    +1434     
- Misses      10511    10527      +16     

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

Copy link

github-actions bot commented Oct 10, 2024

Playwright test results

passed  134 passed
flaky  4 flaky
skipped  4 skipped

Details

report  Open report ↗︎
stats  142 tests across 46 suites
duration  13 minutes, 40 seconds
commit  5697465
info  For more information on how to debug and view this report, see our readme

Flaky tests

chrome › tests/modLifecycle.spec.ts › create, run, package, and update mod
chrome › tests/pageEditor/addStarterBrick.spec.ts › Add starter brick to mod
msedge › tests/pageEditor/addStarterBrick.spec.ts › Add starter brick to mod
chrome › tests/regressions/hideModalsOnPageEditorRefresh.spec.ts › should hide add brick modal when Page Editor refreshes

Skipped tests

chrome › tests/regressions/doNotCloseSidebarOnPageEditorSave.spec.ts › #8104: Do not automatically close the sidebar when saving in the Page Editor
msedge › tests/regressions/doNotCloseSidebarOnPageEditorSave.spec.ts › #8104: Do not automatically close the sidebar when saving in the Page Editor
chrome › tests/runtime/googleSheetsIntegration.spec.ts › can activate a google spreadsheet mod with config options
msedge › tests/runtime/googleSheetsIntegration.spec.ts › can activate a google spreadsheet mod with config options

@twschiller twschiller changed the title Require version on mod metadata Require version on ModDefinition.metadata Oct 10, 2024
@fungairino
Copy link
Collaborator

I like the incremental approach of just tackling ModDefinition.metadata first. Nice job!

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 merged commit 75ca114 into main Oct 10, 2024
23 checks passed
@twschiller twschiller deleted the feature/require-version branch October 10, 2024 17:14
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.

2 participants