[AC-2648] Remove Organization.FlexibleCollections from Models (#10163)
* chore: remove FlexibleCollections from profile-organization.response, refs AC-2648 * chore: remove FlexibleCollections from organization.response, refs AC-2648 * chore: remove FlexibleCollections from organization.data, refs AC-2648 * chore: remove FlexibleCollections from organization, refs AC-2648
This commit is contained in:
parent
91aa475766
commit
06b370ee75
|
@ -53,7 +53,6 @@ describe("ORGANIZATIONS state", () => {
|
|||
accessSecretsManager: false,
|
||||
limitCollectionCreationDeletion: false,
|
||||
allowAdminAccessToAllCollectionItems: false,
|
||||
flexibleCollections: false,
|
||||
familySponsorshipLastSyncDate: new Date(),
|
||||
},
|
||||
};
|
||||
|
|
|
@ -54,7 +54,6 @@ export class OrganizationData {
|
|||
accessSecretsManager: boolean;
|
||||
limitCollectionCreationDeletion: boolean;
|
||||
allowAdminAccessToAllCollectionItems: boolean;
|
||||
flexibleCollections: boolean;
|
||||
|
||||
constructor(
|
||||
response?: ProfileOrganizationResponse,
|
||||
|
@ -113,7 +112,6 @@ export class OrganizationData {
|
|||
this.accessSecretsManager = response.accessSecretsManager;
|
||||
this.limitCollectionCreationDeletion = response.limitCollectionCreationDeletion;
|
||||
this.allowAdminAccessToAllCollectionItems = response.allowAdminAccessToAllCollectionItems;
|
||||
this.flexibleCollections = response.flexibleCollections;
|
||||
|
||||
this.isMember = options.isMember;
|
||||
this.isProviderUser = options.isProviderUser;
|
||||
|
|
|
@ -73,11 +73,6 @@ export class Organization {
|
|||
* Refers to the ability for an owner/admin to access all collection items, regardless of assigned collections
|
||||
*/
|
||||
allowAdminAccessToAllCollectionItems: boolean;
|
||||
/**
|
||||
* Returns true if this organization has enabled Flexible Collections (MVP) and their data has been migrated.
|
||||
* Generally, you should use this as the feature flag to gate Flexible Collections features.
|
||||
*/
|
||||
flexibleCollections: boolean;
|
||||
|
||||
constructor(obj?: OrganizationData) {
|
||||
if (obj == null) {
|
||||
|
@ -132,7 +127,6 @@ export class Organization {
|
|||
this.accessSecretsManager = obj.accessSecretsManager;
|
||||
this.limitCollectionCreationDeletion = obj.limitCollectionCreationDeletion;
|
||||
this.allowAdminAccessToAllCollectionItems = obj.allowAdminAccessToAllCollectionItems;
|
||||
this.flexibleCollections = obj.flexibleCollections;
|
||||
}
|
||||
|
||||
get canAccess() {
|
||||
|
|
|
@ -34,7 +34,6 @@ export class OrganizationResponse extends BaseResponse {
|
|||
maxAutoscaleSmServiceAccounts?: number;
|
||||
limitCollectionCreationDeletion: boolean;
|
||||
allowAdminAccessToAllCollectionItems: boolean;
|
||||
flexibleCollections: boolean;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
|
@ -76,6 +75,5 @@ export class OrganizationResponse extends BaseResponse {
|
|||
this.allowAdminAccessToAllCollectionItems = this.getResponseProperty(
|
||||
"AllowAdminAccessToAllCollectionItems",
|
||||
);
|
||||
this.flexibleCollections = this.getResponseProperty("FlexibleCollections");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,6 @@ export class ProfileOrganizationResponse extends BaseResponse {
|
|||
accessSecretsManager: boolean;
|
||||
limitCollectionCreationDeletion: boolean;
|
||||
allowAdminAccessToAllCollectionItems: boolean;
|
||||
flexibleCollections: boolean;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
|
@ -116,6 +115,5 @@ export class ProfileOrganizationResponse extends BaseResponse {
|
|||
this.allowAdminAccessToAllCollectionItems = this.getResponseProperty(
|
||||
"AllowAdminAccessToAllCollectionItems",
|
||||
);
|
||||
this.flexibleCollections = this.getResponseProperty("FlexibleCollections");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue