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

NAS-130333 / 24.10 / Adds roles for app related api endpoint access elements #10417

Merged
merged 8 commits into from
Aug 10, 2024

Conversation

RehanY147
Copy link
Contributor

Changes:

Adds roles for app related api endpoint access elements

Testing:

Test from API docs that api related endpoints are not missed. Calls that are allowed for READ_ONLY_ADMIN role are skipped as they are always allowed.

@RehanY147 RehanY147 requested a review from a team as a code owner August 9, 2024 01:42
@RehanY147 RehanY147 requested review from undsoft and removed request for a team August 9, 2024 01:42
@bugclerk bugclerk changed the title Adds roles for app related api endpoint access elements NAS-130333 / 24.10 / Adds roles for app related api endpoint access elements Aug 9, 2024
@bugclerk
Copy link
Contributor

bugclerk commented Aug 9, 2024

Copy link
Collaborator

@undsoft undsoft left a comment

Choose a reason for hiding this comment

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

There are console errors on Installed apps page:
Can't bind to 'ixRequiredRoles' since it isn't a known property of 'button'

@@ -32,6 +34,7 @@
{{ 'Manage Container Images' | translate }}
</button> -->
<button
*ixRequiredRoles="manageCatalogRequiredRoles"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This can be allowed, because there is no other way for user to see what trains are currently selected.
Related: #10408

@RehanY147 RehanY147 requested a review from undsoft August 10, 2024 02:03
@RehanY147 RehanY147 enabled auto-merge (squash) August 10, 2024 02:10
Copy link
Collaborator

@undsoft undsoft left a comment

Choose a reason for hiding this comment

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

Looks good, thanks.

Copy link

codecov bot commented Aug 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.93%. Comparing base (fd8fe90) to head (0bdc1a6).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10417      +/-   ##
==========================================
+ Coverage   76.92%   76.93%   +0.01%     
==========================================
  Files        1622     1622              
  Lines       55126    55135       +9     
  Branches     6471     6471              
==========================================
+ Hits        42407    42420      +13     
+ Misses      12719    12715       -4     

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

@RehanY147 RehanY147 merged commit 5807570 into master Aug 10, 2024
9 checks passed
@RehanY147 RehanY147 deleted the NAS-130333 branch August 10, 2024 08:50
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Aug 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants