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

[Workspace] refactor: Remove permission validation in workspace form #9065

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

raintygao
Copy link
Contributor

Description

Remove permission validation in workspace form.

As collaborator section has been removed in workspace detail page, and permission value in workspace create page is fixed, we don't need this validation in workspace form any more.

Screenshot

image
Before you will see a permission error which would block workspace update in workspace detail page, now this will not exist.

Testing the changes

Go to workspace detail page and click edit, you won't see any form errors related to permission.

Changelog

  • refactor: Remove permission validation in workspace form

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.86%. Comparing base (9d21b81) to head (a76eee5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9065      +/-   ##
==========================================
- Coverage   60.87%   60.86%   -0.02%     
==========================================
  Files        3808     3808              
  Lines       91209    91159      -50     
  Branches    14410    14393      -17     
==========================================
- Hits        55528    55480      -48     
+ Misses      32140    32138       -2     
  Partials     3541     3541              
Flag Coverage Δ
Linux_1 28.99% <100.00%> (-0.06%) ⬇️
Linux_2 56.38% <ø> (ø)
Linux_3 37.93% <ø> (-0.01%) ⬇️
Linux_4 29.01% <ø> (ø)
Windows_1 29.00% <100.00%> (-0.06%) ⬇️
Windows_2 56.34% <ø> (ø)
Windows_3 37.93% <ø> (-0.01%) ⬇️
Windows_4 29.01% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Contributor

@yubonluo yubonluo left a comment

Choose a reason for hiding this comment

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

LGTM

@Hailong-am Hailong-am merged commit c61c7cd into opensearch-project:main Dec 19, 2024
70 of 71 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 19, 2024
…9065)

* refactor: remove permission verification in workspace form

Signed-off-by: tygao <[email protected]>

* Changeset file for PR #9065 created/updated

* remove extra import in test

Signed-off-by: tygao <[email protected]>

---------

Signed-off-by: tygao <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: Yulong Ruan <[email protected]>
(cherry picked from commit c61c7cd)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

4 participants