Skip to content

feat: manage groups from deployment settings for single-org deployments #14016

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

Merged
merged 8 commits into from
Jul 26, 2024

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Jul 25, 2024

Closes #13957

Screenshot 2024-07-25 at 12 30 46 PM

@aslilac aslilac changed the title feat: manage non-multi-org groups from deployment settings feat: manage groups from deployment settings for single-org deployments Jul 25, 2024
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Just to make sure I understand "single-org" in this context, that is with the multi-org experiment enabled but not licensed, right?

Should we redirect /groups to /deployment/groups (or /organizations/default/groups/ for multi-org?) similar to the users page? Probably not very important, but if someone has a bookmark or tries typing it manually maybe.

I think the create group page needs to take me to /deployment/groups/groupname rather than /organizations/default/groups/groupname with single-org since the latter gives me a blank sidebar (maybe a good place for another relative redirect).

Looks good so far!

@@ -50,7 +50,7 @@ import { isEveryoneGroup } from "utils/groups";
import { pageTitle } from "utils/page";

export const GroupPage: FC = () => {
const { organization, groupName } = useParams() as {
const { organization = "default", groupName } = useParams() as {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see the constant "default" used in multiple places. We should define it in a const.ts file for consistency. Makes sense?

Copy link
Member Author

Choose a reason for hiding this comment

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

personally, I really dread adding imports like that which end up being more typing that the thing you could just say directly

@BrunoQuaresma
Copy link
Collaborator

BrunoQuaresma commented Jul 26, 2024

Just to make sure I understand "single-org" in this context, that is with the multi-org experiment enabled but not licensed, right?

@code-asher I think it is also true when there is only one org created.

@BrunoQuaresma
Copy link
Collaborator

  1. When I go to Deployment > Organizations, the sidebar is hidden. It looks strange to me; I would prefer to see it open.
Screenshot 2024-07-26 at 10 09 55
  1. It is not related to this particular PR, but I've been finding it hard to determine the currently active menu in the sidebar due to the numerous options available. Maybe we could style the active option differently?
Screenshot 2024-07-26 at 10 11 26
  1. I have a license and multi-org enabled, but I can't create new orgs. Perhaps it's related to 1?
Screenshot 2024-07-26 at 10 13 40 Screenshot 2024-07-26 at 10 14 40 Screenshot 2024-07-26 at 10 13 49

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

I'm missing tests for the changes so we can be sure we are not introducing bugs while moving forward.

@aslilac
Copy link
Member Author

aslilac commented Jul 26, 2024

I think it is also true when there is only one org created.

No, a deployment which only has one org created but has a multi-org license is still a multi-org deployment. We need to show the "New organization" button, for example which is only present in the multi-org version of the UI. (and maintaining a 3rd version of the UI that's half single-org and half multi-org would be a gigantic pain)

@aslilac
Copy link
Member Author

aslilac commented Jul 26, 2024

I have a license and multi-org enabled, but I can't create new orgs.

there are two license types now, and old/enterprise licenses no longer have access to org features. you can get a "premium" one from notion to test with. :)

@aslilac aslilac merged commit d68340b into main Jul 26, 2024
30 checks passed
@aslilac aslilac deleted the non-org-groups branch July 26, 2024 19:10
@github-actions github-actions bot locked and limited conversation to collaborators Jul 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate all users view into the multi-org capable ManagementSettingsPage
3 participants