Skip to content

ROX-11101: Remove deprecated resources from UI#3098

Merged
rhybrillou merged 5 commits intomasterfrom
yann/ROX-11101-ui_remove_old_resources
Sep 23, 2022
Merged

ROX-11101: Remove deprecated resources from UI#3098
rhybrillou merged 5 commits intomasterfrom
yann/ROX-11101-ui_remove_old_resources

Conversation

@rhybrillou
Copy link
Contributor

Description

The set resources used for access control is being simplified.
A number of resources has been deprecated.
The goal here is to get rid of the deprecated resources, both in the database and in the codebase (UI, QA, central, DB). This PR focuses on the UI codebase removal.

Checklist

  • Investigated and inspected CI test results
  • Unit test and regression tests added
    - [ ] Evaluated and added CHANGELOG entry if required
    - [ ] Determined and documented upgrade steps
    - [ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.

Testing Performed

CI is sufficient

@openshift-ci
Copy link

openshift-ci bot commented Sep 15, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@rhybrillou
Copy link
Contributor Author

/test all

@rhybrillou
Copy link
Contributor Author

/test all

"resourceToAccess": {
"Access": "NO_ACCESS",
"Administration": "NO_ACCESS",
"Administration": "READ_ACCESS",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is because of Config which has read access.
Now allowed by Administration are the services that used to be tied to the DebugLogs permission, and which could allow data leaks. Keeping NO_ACCESS here could also be a good idea.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for comment. UI team needs to review whether this fixture is or should be same as Analyst role.

@rhybrillou
Copy link
Contributor Author

/retest

@rhybrillou rhybrillou force-pushed the yann/ROX-11101-ui_remove_old_resources branch from 0d026e3 to f137334 Compare September 19, 2022 16:10
@rhybrillou rhybrillou marked this pull request as ready for review September 19, 2022 16:10
@rukletsov rukletsov requested a review from dhaus67 September 20, 2022 21:50
@rhybrillou
Copy link
Contributor Author

/retest

@ghost
Copy link

ghost commented Sep 21, 2022

Images are ready for the commit at 9311186.

To use with deploy scripts, first export MAIN_IMAGE_TAG=3.72.x-127-g93111867b6.

Copy link
Contributor

@pedrottimark pedrottimark left a comment

Choose a reason for hiding this comment

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

Thank you for careful work.

After you merge,UI team can follow up:

  • Remove useIntegrationPermissions which is no longer needed.
  • Refactor to avoid repeated replacedResourceMapping for remaining old resources.

@rhybrillou rhybrillou force-pushed the yann/ROX-11101-ui_remove_old_resources branch from 3e5ff8d to 9311186 Compare September 23, 2022 07:43
@rhybrillou rhybrillou merged commit 83d47cc into master Sep 23, 2022
@rhybrillou rhybrillou deleted the yann/ROX-11101-ui_remove_old_resources branch September 23, 2022 13:55
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.

2 participants