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

chore: remove multiorg phase2 feat flag #6643

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wdoconnell
Copy link
Contributor

Part of #5243

Removes the feature flag associated with multiorg phase two (creating and deleting orgs). After this PR, the flag still needs to be removed from IDPE, and then configcat.

Checklist

Authors and Reviewer(s), please verify the following:

  • A PR description, regardless of the triviality of this change, that communicates the value of this PR
  • Well-formatted conventional commit messages that provide context into the change
  • Documentation updated or issue created (provide link to issue/PR)
  • Signed CLA (if not already signed)
  • Feature flagged, if applicable - NO

<hr className="account-settings--divider" />
<LeaveOrgButton />
</>
)}
{shouldShowDeleteFreeAccountButton && <DeleteFreeAccountButton />}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The "Leave Org" button was only here for backwards compatibility for situations where the feature flag was turned off. It now lives on the org settings page.

@@ -35,7 +37,7 @@ const AccountTabs: FC<Props> = ({activeTab}) => {
},
{
id: 'organizations',
enabled: isFlagEnabled('createDeleteOrgs'),
enabled: CLOUD,
link: `/orgs/${orgID}/accounts/orglist`,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The organization tab cannot be accessed from OSS, where there is no multi-org or access to quartz APIs.

name: 'Settings',
iconFont: IconFont.CogSolid_New,
href: `/orgs/${activeOrg.id}/accounts/settings`,
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's no need for the 'enabled' distinction here, as all of these tabs are accessible without condition. The global header only exists in cloud, so there's no need for a CLOUD guard either.

@@ -175,7 +171,7 @@ const OrgProfileTab: FC = () => {
stretchToFitWidth={true}
>
<>
{allowSelfRemoval && showLeaveOrgButton && <LeaveOrgButton />}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is already subordinate to a CLOUD check, so we don't need another one.

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.

1 participant