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

Create an administrator in new tenants #5048

Merged
merged 1 commit into from
Dec 29, 2022
Merged

Create an administrator in new tenants #5048

merged 1 commit into from
Dec 29, 2022

Conversation

taitus
Copy link
Member

@taitus taitus commented Dec 15, 2022

References

Related PR: #4030

Objectives

When an admin creates a new tenant, we automatically add him as admin of the newly created tenant. The admin that is created is already automatically confirmed as it is a copy of an existing user with the same password.

Visual Changes

create administrator in new tenant

Notes

Add this behaviour to the multitenancy documentation.

@javierm javierm added this to Reviewing in Consul Democracy Dec 15, 2022
@Senen Senen moved this from Reviewing to Doing in Consul Democracy Dec 15, 2022
@taitus taitus moved this from Doing to Reviewing in Consul Democracy Dec 16, 2022
Copy link
Member

@javierm javierm left a comment

Choose a reason for hiding this comment

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

Interesting approach. I've left some comments!

db/seeds.rb Outdated Show resolved Hide resolved
app/controllers/admin/tenants_controller.rb Outdated Show resolved Hide resolved
config/locales/en/admin.yml Outdated Show resolved Hide resolved
app/controllers/admin/tenants_controller.rb Outdated Show resolved Hide resolved
config/locales/es/admin.yml Outdated Show resolved Hide resolved
spec/system/admin/tenants_spec.rb Outdated Show resolved Hide resolved
spec/system/admin/tenants_spec.rb Outdated Show resolved Hide resolved
spec/system/admin/tenants_spec.rb Outdated Show resolved Hide resolved
app/controllers/admin/tenants_controller.rb Show resolved Hide resolved
@javierm javierm moved this from Reviewing to Doing in Consul Democracy Dec 19, 2022
@javierm javierm self-assigned this Dec 22, 2022
@Senen Senen moved this from Doing to Reviewing in Consul Democracy Dec 22, 2022
@Senen Senen self-assigned this Dec 22, 2022
Copy link
Member

@javierm javierm left a comment

Choose a reason for hiding this comment

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

Much better! 🎉 I've left a couple of minor comments.

app/controllers/admin/tenants_controller.rb Outdated Show resolved Hide resolved
spec/system/admin/tenants_spec.rb Outdated Show resolved Hide resolved
config/locales/en/admin.yml Outdated Show resolved Hide resolved
config/locales/es/admin.yml Outdated Show resolved Hide resolved
@javierm javierm moved this from Reviewing to Doing in Consul Democracy Dec 22, 2022
@Senen Senen force-pushed the tenant_administrator branch 2 times, most recently from 9fcd0c6 to 4e1bcf0 Compare December 22, 2022 19:19
@javierm javierm moved this from Doing to Reviewing in Consul Democracy Dec 22, 2022
@javierm
Copy link
Member

javierm commented Dec 22, 2022

Looks like we've got a couple of flaky tests, including the one we've added in this pull request 😌. Just a theory: maybe the second one failed because the first one failed and some data leaked between tests 🤔. No idea why the first one (which is the one we've added) failed, though. The screenshot seems to show that clicking the "sign in" link resulted in a request that took too long, but I don't see a reason why that would happen.

@javierm javierm moved this from Doing to Reviewing in Consul Democracy Dec 29, 2022
@javierm javierm moved this from Reviewing to Doing in Consul Democracy Dec 29, 2022
Consul Democracy automation moved this from Doing to Testing Dec 29, 2022
@Senen Senen merged commit f9ec038 into master Dec 29, 2022
Consul Democracy automation moved this from Testing to Release 2.0.0 Dec 29, 2022
@Senen Senen deleted the tenant_administrator branch December 29, 2022 15:31
@javierm javierm removed the 2.0 label Dec 29, 2022
@javierm javierm changed the title Create an administrator in new tenant Create an administrator in new tenants Jun 30, 2023
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.

None yet

3 participants