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

chore(releases): moving from bundles to releases directory #7500

Merged
merged 11 commits into from
Sep 20, 2024
Merged

Conversation

jordanl17
Copy link
Member

@jordanl17 jordanl17 commented Sep 12, 2024

Description

Migrating the core/bundles directories to core/bundles.

Note that the methods in these files haven't been changed, only the location of the files.

The directory that previously existed in core/releases/components included all the components for the releases plugin (since previously core/releases included only the code for the plugin). This directory has therefore been moved to core/releases/tool/components, which feels sensible given that the exports from these components are only used in the tool directory.

What to review

Testing

Tests mostly involved just updating the path for mocks.
However there were particular issues with ReleasesSummary and ReleasesReview - for inexplicable reasons, the SanityDefaultPreview component wasn't receiving it's correct imports, and despite considerable investigation, it seems that there is perhaps a cyclic dependency/mock somewhere which I couldn't track down. Therefore, instead a mock has been added to these 2 tests to cover the issues instead - the tests here are still valid, given that extraneous logic is being mocked and not the parts that are relevant to the testing scope.

Notes for release

N/A

Copy link

vercel bot commented Sep 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 15, 2024 10:01pm
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 15, 2024 10:01pm
test-compiled-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 15, 2024 10:01pm
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 15, 2024 10:01pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 15, 2024 10:01pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2024 10:01pm

Copy link
Contributor

No changes to documentation

Copy link
Contributor

github-actions bot commented Sep 12, 2024

Component Testing Report Updated Sep 15, 2024 10:05 PM (UTC)

✅ All Tests Passed -- expand for details
File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 45s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 8s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 31s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 37s 11 7 0
formBuilder/inputs/PortableText/copyPaste/CopyPasteFields.spec.tsx ✅ Passed (Inspect) 0s 0 12 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 18s 6 0 0
formBuilder/inputs/PortableText/DisableFocusAndUnset.spec.tsx ✅ Passed (Inspect) 10s 3 0 0
formBuilder/inputs/PortableText/DragAndDrop.spec.tsx ✅ Passed (Inspect) 3m 0s 0 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 44s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 46s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 16s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 9s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 26s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 18s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 36s 12 0 0
formBuilder/tree-editing/TreeEditing.spec.tsx ✅ Passed (Inspect) 0s 0 3 0
formBuilder/tree-editing/TreeEditingNestedObjects.spec.tsx ✅ Passed (Inspect) 0s 0 3 0

Copy link
Contributor

@RitaDias RitaDias left a comment

Choose a reason for hiding this comment

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

Great job Jordan, this makes sense to me :)

Copy link
Contributor

@pedrobonamin pedrobonamin left a comment

Choose a reason for hiding this comment

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

Thanks for this @jordanl17 !
Looks good to me, would like if we could spend some time debugging the mock issues in a follow up, specially before merging to next .

This will probably be fixed once we switch to vitest.

@RitaDias RitaDias merged commit ebf4bae into corel Sep 20, 2024
42 checks passed
@RitaDias RitaDias deleted the corel-168-2 branch September 20, 2024 11:04
RitaDias pushed a commit that referenced this pull request Oct 3, 2024
* chore(releases): moving releases/components to releases/tool/components

* chore(releases): moving bundles/components to releases/components

* chore(releases): moving bundles/hooks to releases/hooks

* chore(releases): moving rest of bundles to releases

* chore(releases): fixing various test imports

* chore(releases): fixing various test imports

* chore(releases): fixing various test imports

* chore(releases): further experimentation on SanityDocumentPreview test failures

* chore(releases): fixing ReleaseSummary and Review by mocking components

* chore(releases): reverting irrelevent changes
juice49 pushed a commit that referenced this pull request Oct 4, 2024
* chore(releases): moving releases/components to releases/tool/components

* chore(releases): moving bundles/components to releases/components

* chore(releases): moving bundles/hooks to releases/hooks

* chore(releases): moving rest of bundles to releases

* chore(releases): fixing various test imports

* chore(releases): fixing various test imports

* chore(releases): fixing various test imports

* chore(releases): further experimentation on SanityDocumentPreview test failures

* chore(releases): fixing ReleaseSummary and Review by mocking components

* chore(releases): reverting irrelevent changes
juice49 pushed a commit that referenced this pull request Oct 7, 2024
* chore(releases): moving releases/components to releases/tool/components

* chore(releases): moving bundles/components to releases/components

* chore(releases): moving bundles/hooks to releases/hooks

* chore(releases): moving rest of bundles to releases

* chore(releases): fixing various test imports

* chore(releases): fixing various test imports

* chore(releases): fixing various test imports

* chore(releases): further experimentation on SanityDocumentPreview test failures

* chore(releases): fixing ReleaseSummary and Review by mocking components

* chore(releases): reverting irrelevent changes
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.

3 participants