mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 01:41:31 +00:00
Renaming Materialized views builder blade text to Global secondary indexes for NoSql API (#1991)
* GSI changes * GSI changes * GSI changes * updating GlobalSecondaryIndexesBuilder.json * Changes * Update cost text keys based on user context API type * Refactor Materialized Views Builder code for improved readability and consistency in API type checks * Update links in Materialized Views Builder for consistency and accuracy * Update Global Secondary Indexes links and descriptions for clarity and accuracy based on API type * Update portal notification message keys based on user context API type for Materialized Views Builder * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Fix capitalization and wording inconsistencies in Materialized Views Builder localization strings * Fix capitalization and wording inconsistencies in localization strings for Materialized Views Builder * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> * Update src/Localization/en/MaterializedViewsBuilder.json Co-authored-by: Justine Cocchi <justine@cocchi.org> --------- Co-authored-by: Justine Cocchi <justine@cocchi.org>
This commit is contained in:
@@ -6,9 +6,9 @@ import { RefreshResult } from "../SelfServeTypes";
|
||||
import MaterializedViewsBuilder from "./MaterializedViewsBuilder";
|
||||
import {
|
||||
FetchPricesResponse,
|
||||
MaterializedViewsBuilderServiceResource,
|
||||
PriceMapAndCurrencyCode,
|
||||
RegionsResponse,
|
||||
MaterializedViewsBuilderServiceResource,
|
||||
UpdateMaterializedViewsBuilderRequestParameters,
|
||||
} from "./MaterializedViewsBuilderTypes";
|
||||
|
||||
@@ -123,11 +123,23 @@ export const refreshMaterializedViewsBuilderProvisioning = async (): Promise<Ref
|
||||
if (response.properties.status === ResourceStatus.Running.toString()) {
|
||||
return { isUpdateInProgress: false, updateInProgressMessageTKey: undefined };
|
||||
} else if (response.properties.status === ResourceStatus.Creating.toString()) {
|
||||
return { isUpdateInProgress: true, updateInProgressMessageTKey: "CreateMessage" };
|
||||
return {
|
||||
isUpdateInProgress: true,
|
||||
updateInProgressMessageTKey:
|
||||
userContext.apiType === "SQL" ? "GlobalsecondaryindexesCreateMessage" : "CreateMessage",
|
||||
};
|
||||
} else if (response.properties.status === ResourceStatus.Deleting.toString()) {
|
||||
return { isUpdateInProgress: true, updateInProgressMessageTKey: "DeleteMessage" };
|
||||
return {
|
||||
isUpdateInProgress: true,
|
||||
updateInProgressMessageTKey:
|
||||
userContext.apiType === "SQL" ? "GlobalsecondaryindexesDeleteMessage" : "DeleteMessage",
|
||||
};
|
||||
} else {
|
||||
return { isUpdateInProgress: true, updateInProgressMessageTKey: "UpdateMessage" };
|
||||
return {
|
||||
isUpdateInProgress: true,
|
||||
updateInProgressMessageTKey:
|
||||
userContext.apiType === "SQL" ? "GlobalsecondaryindexesUpdateMessage" : "UpdateMessage",
|
||||
};
|
||||
}
|
||||
} catch {
|
||||
//TODO differentiate between different failures
|
||||
|
||||
Reference in New Issue
Block a user