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

feat(sanity): use Actions API when restoring drafts #6671

Merged
merged 3 commits into from
May 23, 2024
Merged

feat(sanity): use Actions API when restoring drafts #6671

merged 3 commits into from
May 23, 2024

Conversation

juice49
Copy link
Contributor

@juice49 juice49 commented May 15, 2024

Description

This branch adopts the Actions API for restoring revisions. This was made possible by the introduction of the sanity.action.document.replaceDraft action.

What to review

Does everything look correct when restoring a previous revision of a document?

Testing

Added an E2E test for revision restoration in test/e2e/tests/document-actions/restore.spec.ts.

Copy link

vercel bot commented May 15, 2024

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

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2024 9:42am
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2024 9:42am
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2024 9:42am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview May 22, 2024 9:42am

@juice49 juice49 changed the title Sdx 1168 feat(sanity): use actions API when restoring revision May 15, 2024
Copy link
Contributor

No changes to documentation

@juice49 juice49 changed the title feat(sanity): use actions API when restoring revision feat(sanity): use Actions API when restoring drafts May 15, 2024
Copy link
Contributor

github-actions bot commented May 15, 2024

Component Testing Report Updated May 22, 2024 9:47 AM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 36s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 7s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 26s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 31s 11 7 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 14s 6 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 37s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 17s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 5s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 7s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 21s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 15s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 30s 12 0 0

Copy link

socket-security bot commented May 16, 2024

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

@juice49 juice49 force-pushed the sdx-1168 branch 2 times, most recently from 49e72d0 to 13d731b Compare May 16, 2024 11:23
@juice49 juice49 marked this pull request as ready for review May 16, 2024 16:00
@juice49 juice49 requested a review from a team as a code owner May 16, 2024 16:00
@juice49 juice49 marked this pull request as draft May 21, 2024 13:14
@juice49 juice49 marked this pull request as ready for review May 21, 2024 20:17
Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

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

Looks great!

@juice49 juice49 merged commit e9b967f into next May 23, 2024
39 checks passed
@juice49 juice49 deleted the sdx-1168 branch May 23, 2024 13:14
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.

None yet

2 participants