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

CSS-4792 Resolve controller jimm tag #1019

Merged

Conversation

alesstimec
Copy link
Collaborator

Description

This PR will allow us to refer to JIMM as controller-jimm when adding relations.

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

Test instructions

Notes for code reviewers

Now we can refer to JIMM as controller-jimm when adding relations.
@alesstimec alesstimec changed the base branch from main to feature-rebac July 31, 2023 13:24
@@ -1256,7 +1267,6 @@ func (s *accessControlSuite) TestCheckRelationControllerAdministratorFlow(c *gc.

func (s *accessControlSuite) TestResolveTupleObjectHandlesErrors(c *gc.C) {
Copy link
Member

@babakks babakks Aug 1, 2023

Choose a reason for hiding this comment

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

Since you're touching this file, can we also rename this and the following test functions to TestResolveTag... (i.e., Tag instead of Tuple)?

@@ -88,6 +97,9 @@ func (s *relationSuite) TestAddRelationSuperuser(c *gc.C) {
c.Assert(err, gc.IsNil)
resp, err := s.jimmSuite.JIMM.OpenFGAClient.ReadRelatedObjects(context.Background(), nil, 50, "")
c.Assert(err, gc.IsNil)
// NOTE: this is a bad test because it relies on the number of related objects. So all the
Copy link
Member

Choose a reason for hiding this comment

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

+1 for the comment.

Copy link
Contributor

@kian99 kian99 left a comment

Choose a reason for hiding this comment

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

One thing we're missing here is validation that new controllers added to JIMM are not called the same thing as jimmControllerName otherwise that controller will become inaccessible. It's a niche case so possible we could skip it but shouldn't be too much work to add.

@kian99 kian99 mentioned this pull request Aug 2, 2023
3 tasks
@alesstimec alesstimec merged commit a4e58e2 into canonical:feature-rebac Aug 2, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants