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

fix(admin): added RBAC tab display condition #989

Conversation

ciiay
Copy link
Contributor

@ciiay ciiay commented Feb 21, 2024

Description

Guest users get empty RBAC content while permission not exists.

Which issue(s) does this PR fix

  • Fixes RHIDP-1333: RBAC tab is shown even for the guest users who don't have permission

PR acceptance criteria

Please make sure that the following steps are complete:

  • GitHub Actions are completed and successful
  • Unit Tests are updated and passing
  • E2E Tests are updated and passing
  • Documentation is updated if necessary (requirement for new features)
  • Add a screenshot if the change is UX/UI related

*Unit test and e2e test will be handled in a separate PR.

How to test changes / Special notes to the reviewer

Login with both guest and GitHub users and observe RBAC tab for GitHub users.

Screen video

add_condition_to_display_rbac_tab.mov

Copy link
Contributor

The image is available at: quay.io/janus-idp/backstage-showcase:pr-989!

@invincibleJai
Copy link
Contributor

/cc @gashcrumb

@openshift-ci openshift-ci bot requested a review from gashcrumb February 21, 2024 06:20
@ciiay ciiay changed the title [WIP]fix(admin): added RBAC tab display condition fix(admin): added RBAC tab display condition Feb 21, 2024
@ciiay
Copy link
Contributor Author

ciiay commented Feb 21, 2024

Tests for this change will be handled in a separate PR.

Copy link
Contributor

The image is available at: quay.io/janus-idp/backstage-showcase:pr-989!

Copy link
Member

@gashcrumb gashcrumb left a comment

Choose a reason for hiding this comment

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

Tested locally, this works great! Thanks @ciiay!

Copy link
Contributor

janus-idp bot commented Feb 21, 2024

backstage-showcase Tests on commit e586c12 finished with errors.
View test log

@openshift-ci openshift-ci bot removed the lgtm label Feb 21, 2024
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

The image is available at: quay.io/janus-idp/backstage-showcase:pr-989!

@nickboldt
Copy link
Member

/cherry-pick 1.1.x

@openshift-cherrypick-robot
Copy link
Contributor

@nickboldt: only janus-idp org members may request cherry picks. If you are already part of the org, make sure to change your membership to public. Otherwise you can still do the cherry-pick manually.

In response to this:

/cherry-pick 1.1.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nickboldt nickboldt added the cherry-pick-1.1.x This PR should be cherrypicked to the 1.1.x branch label Feb 22, 2024
@openshift-ci openshift-ci bot added the lgtm label Feb 22, 2024
@invincibleJai
Copy link
Contributor

invincibleJai commented Feb 22, 2024

Thanks @ciiay, verified the changes work as expected.

did you missed to update yarn.lock?

Signed-off-by: Yi Cai <[email protected]>
@openshift-ci openshift-ci bot removed the lgtm label Feb 22, 2024
Copy link
Contributor

@invincibleJai invincibleJai left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

openshift-ci bot commented Feb 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gashcrumb, invincibleJai

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

The image is available at: quay.io/janus-idp/backstage-showcase:pr-989!

@openshift-merge-bot openshift-merge-bot bot merged commit b23f324 into redhat-developer:main Feb 22, 2024
6 checks passed
@nickboldt
Copy link
Member

/cherry-pick 1.1.x

@openshift-cherrypick-robot
Copy link
Contributor

@nickboldt: new pull request created: #1018

In response to this:

/cherry-pick 1.1.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

nickboldt pushed a commit that referenced this pull request Feb 27, 2024
* fix(admin): added RBAC tab display condition

Signed-off-by: Yi Cai <[email protected]>

* Updates for comments

Signed-off-by: Yi Cai <[email protected]>

* Added yarn.lock

Signed-off-by: Yi Cai <[email protected]>

---------

Signed-off-by: Yi Cai <[email protected]>
nickboldt added a commit that referenced this pull request Feb 27, 2024
…ps): update to backstage 1.23.3; chore(deps): RHIDP-1435 update to sanitize-html @ 2.12.1 (#1019)

* chore(deps): RHIDP-1435 update to sanitize-html @ 2.12.1

Signed-off-by: Nick Boldt <[email protected]>

* chore(deps): update to backstage 1.23.3 (#1014)

Signed-off-by: Paul Schultz <[email protected]>

* fix(admin): added RBAC tab display condition (#989)

* fix(admin): added RBAC tab display condition

Signed-off-by: Yi Cai <[email protected]>

* Updates for comments

Signed-off-by: Yi Cai <[email protected]>

* Added yarn.lock

Signed-off-by: Yi Cai <[email protected]>

---------

Signed-off-by: Yi Cai <[email protected]>

* Update packages/app/src/build-metadata.json

---------

Signed-off-by: Nick Boldt <[email protected]>
Signed-off-by: Paul Schultz <[email protected]>
Signed-off-by: Yi Cai <[email protected]>
Co-authored-by: Paul Schultz <[email protected]>
Co-authored-by: Yi Cai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved cherry-pick-1.1.x This PR should be cherrypicked to the 1.1.x branch lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants