-
Notifications
You must be signed in to change notification settings - Fork 451
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(core): add permission limitation for create release #8623
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
No changes to documentation |
⚡️ Editor Performance ReportUpdated Fri, 14 Feb 2025 14:22:12 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
Component Testing Report Updated Feb 14, 2025 2:23 PM (UTC) ❌ Failed Tests (2) -- expand for details
|
d92104b
to
11ac33c
Compare
9f05dcc
to
037cf66
Compare
fix(core): add permission limitation for create release in releases overview
97ea691
to
17676f1
Compare
b186a3a
to
3524672
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good @RitaDias - just added in a couple of comments. Would be interested to know what you think on managing the permission state inside useReleasePermissions
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx
Show resolved
Hide resolved
packages/sanity/src/core/releases/components/documentHeader/contextMenu/VersionContextMenu.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
...useActiveReleasesMockReturn, | ||
data: [activeASAPRelease, activeScheduledRelease, activeUndecidedRelease], | ||
}) | ||
mockUseReleasePermissions.mockReturnValue({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh nice!
Description
Prevent create release
Discard version discard
What to review
Anything could be improved?
Testing
The existing test should be enough.
Can manually test by following the screenshots
Notes for release
Discard version and create releases action menus and buttons for releases now respect permissions.