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: group roles assumption, refactor group types #4576

Merged
merged 8 commits into from
Sep 5, 2023

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Aug 25, 2023

Does what it says on the tin, should help with cleaning up #4512 and respective schema changes.

@vercel
Copy link

vercel bot commented Aug 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2023 4:59pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 5, 2023 4:59pm

cy.get("td span:contains('2 roles')").should('have.length', 1);
});
// TODO: This works locally but not on GH actions, I assume because of the way we (don't) handle feature flagging for Cypress tests in GH actions.
// This should be uncommented again once we remove the multipleRoles flag or if we find a better solution in the meantime.
Copy link
Member Author

Choose a reason for hiding this comment

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

FYI

Copy link
Contributor

Choose a reason for hiding this comment

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

I can reproduce the error locally, but unsure why it's happening. I'm receiving users without roles

Copy link
Member

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

Nice

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

When you're around let's check this test that you commented out

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

LG!

@nunogois nunogois force-pushed the refactor-group-id-required branch from c4c404b to 6b46924 Compare September 5, 2023 16:58
@nunogois nunogois merged commit c3216ac into main Sep 5, 2023
13 checks passed
@nunogois nunogois deleted the refactor-group-id-required branch September 5, 2023 19:30
: access?.roles.find(
({ id }) => id === row.entity.roleId
)?.name
: 'No Roles!',
Copy link
Member Author

Choose a reason for hiding this comment

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

@gastonfournier I think this changed slipped by me and I'm curious: What was the reason for it? Do we expect any reason why roles can be falsy?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I think this was accidental when trying to figure out why the tests were failing, I added this to try to see if this was the issue in cypress

sjaanus added a commit that referenced this pull request Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants