- Notifications
You must be signed in to change notification settings - Fork927
chore: remove global organization id state#14135
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
8ad3a18
76a544c
73088e9
6348fd2
5e51776
8c90cea
e77af27
dedc204
5c4460b
c8b017c
da20aee
f7879a1
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -27,8 +27,13 @@ export const linkToUsers = withFilter("/users", "status:active"); | ||
export const linkToTemplate = | ||
(organizationName: string, templateName: string): LinkThunk => | ||
(dashboard) => { | ||
const hasMultipleOrganizations = dashboard.organizations.length > 1; | ||
const organizationsEnabled = | ||
dashboard.experiments.includes("multi-organization") && | ||
selectFeatureVisibility(dashboard.entitlements).multiple_organizations; | ||
return hasMultipleOrganizations || organizationsEnabled | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. If the deployment has multiple organizations. but the organization's feature is not enabled, should this return true? The use case I'm seeing is a deployment that had access to enterprise and does not have it anymore after the trial. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Yeah, that's the goal. We don't want swaths of the app to become unaccessible because they're in the final stages of renewing a contract with us. | ||
? `/templates/${organizationName}/${templateName}` | ||
: `/templates/${templateName}`; | ||
}; |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.