Skip to content

ROX-13326: Access control UUID support in the UI#3818

Merged
rhybrillou merged 3 commits intoyann/ROX-13326-role_ids_as_uuidsfrom
yann/ROX-13326-ui
Nov 17, 2022
Merged

ROX-13326: Access control UUID support in the UI#3818
rhybrillou merged 3 commits intoyann/ROX-13326-role_ids_as_uuidsfrom
yann/ROX-13326-ui

Conversation

@rhybrillou
Copy link
Contributor

@rhybrillou rhybrillou commented Nov 15, 2022

Description

The goal here (as started with PRs #3802 and #3725) is to rely on postgres built-in UUID types, which are more compact and can bring performance improvements in data lookups.

Manual testing highlighted a bug when opening the Unrestricted access scope page.
The goal here is to support the hardcoded UUID format too.

PR stack:
#3802 (server support code)
+- #3725 (data migration)
... +- #3818 (UI code)

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

Manual testing:

  • start central in postgres mode on a version containing the code of the two pull requests listed above and the one at hand here.
  • navigate to access control
  • open the access scope tab
  • open the Unrestricted access scope

The Unrestricted access scope has a special internal representation, which requires dedicated handling. The point of the change here is to ensure the dedicated handling also applies to the dedicated UUID identifier.

@openshift-ci
Copy link

openshift-ci bot commented Nov 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 rhybrillou marked this pull request as ready for review November 16, 2022 17:59
Copy link
Contributor

@vjwilson vjwilson left a comment

Choose a reason for hiding this comment

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

It may be nice to include a TODO comment above the constant object's definition, about when the non-Postgres versions could be removed from the code.

@rhybrillou rhybrillou merged commit a4c6ba5 into yann/ROX-13326-role_ids_as_uuids Nov 17, 2022
@rhybrillou rhybrillou deleted the yann/ROX-13326-ui branch November 17, 2022 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants