Skip to content

Commit

Permalink
Merge pull request #106 from aurora-is-near/fix-rbac-member-titles-de…
Browse files Browse the repository at this point in the history
…terministic

fix: ensure rbac member entity titles are more deterministic
  • Loading branch information
diegofigs committed Jun 7, 2024
2 parents e74be12 + 21b964b commit a029d9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wicked-shirts-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aurora-is-near/backstage-plugin-blockchainradar-backend': patch
---

fix: ensure rbac member entity titles are more deterministic
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export class ContractDeployment extends BlockchainAddress {

parts.push(this.humanFriendlyAddress());

if (!this.adapter.isHumanReadable) {
// TODO: abstract conditional into BlockchainAddress
// NOTE: `member` role check is done to avoid undeterministic titles from uncertain parent
// This is caused by addresses that are members of multiple rbac role groups
if (!this.adapter.isHumanReadable && this.role !== 'member') {
parts.push(this.parent.metadata.name);
}

Expand Down

0 comments on commit a029d9e

Please sign in to comment.