Skip to content

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

<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.

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.

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.

@wdoconnell wdoconnell force-pushed the remove_createdelete_flag branch from de8851d to 61acac8 Compare March 3, 2023 21:06
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