-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(zimbra): load all available data when needed
ref: MANAGER-16552 Signed-off-by: Tristan WAGNER <[email protected]>
- Loading branch information
1 parent
15059fa
commit 2a46bbb
Showing
17 changed files
with
132 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
export const getZimbraPlatformDomainsQueryKey = ( | ||
platformId: string, | ||
organizationId?: string, | ||
) => [ | ||
`get/zimbra/platform/${platformId}/domain?organizationId=${organizationId}`, | ||
]; | ||
shouldFetchAll?: boolean, | ||
) => | ||
[ | ||
'get', | ||
'zimbra', | ||
'domain', | ||
platformId, | ||
shouldFetchAll ? 'all' : '', | ||
organizationId, | ||
].filter(Boolean); | ||
|
||
export const getZimbraPlatformDomainQueryKey = ( | ||
platformId: string, | ||
domainId: string, | ||
) => [`get/zimbra/platform/${platformId}/domain/${domainId}`]; | ||
) => ['get', 'domain', 'zimbra', platformId, domainId]; | ||
|
||
export const getDomainsZoneListQueryKey = ['get/domain/zone']; | ||
export const getDomainsZoneListQueryKey = ['get', 'domain', 'zone']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
export const getZimbraPlatformOrganizationQueryKey = (platformId: string) => [ | ||
`get/zimbra/platform/${platformId}/organization`, | ||
]; | ||
export const getZimbraPlatformOrganizationQueryKey = ( | ||
platformId: string, | ||
shouldFetchAll?: boolean, | ||
) => | ||
[ | ||
'get', | ||
'organization', | ||
'zimbra', | ||
platformId, | ||
shouldFetchAll ? 'all' : '', | ||
].filter(Boolean); | ||
|
||
export const getZimbraPlatformOrganizationDetailsQueryKey = ( | ||
platformId: string, | ||
organizationId: string, | ||
) => [`get/zimbra/platform/${platformId}/organization/${organizationId}`]; | ||
) => ['get', 'organization', 'zimbra', platformId, organizationId]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.