Skip to content

Commit

Permalink
Bumping mininum supported Service Control version (#1842)
Browse files Browse the repository at this point in the history
  • Loading branch information
cquirosj authored May 7, 2024
1 parent ee98dd4 commit 5587db0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/Frontend/src/composables/serviceServiceControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const monitoringConnectionState = reactive<ConnectionState>({
export const environment = reactive({
monitoring_version: "",
sc_version: "",
minimum_supported_sc_version: "1.39.0",
minimum_supported_sc_version: "4.33.4",
is_compatible_with_sc: true,
sp_version: window.defaultConfig && window.defaultConfig.version ? window.defaultConfig.version : "1.1.0",
supportsArchiveGroups: false,
Expand Down Expand Up @@ -183,12 +183,10 @@ export async function useServiceControlConnections() {
return connections;
}

watch(environment, (newValue, oldValue) => {
if (newValue.is_compatible_with_sc !== oldValue.is_compatible_with_sc) {
if (!newValue.is_compatible_with_sc) {
useShowToast(TYPE.ERROR, "Error", `You are using Service Control version ${newValue.sc_version}. Please, upgrade to version ${newValue.minimum_supported_sc_version} or higher to unlock new functionality in ServicePulse.`);
}
}
watch(() => environment.is_compatible_with_sc, (newValue) => {
if (newValue == false) {
useShowToast(TYPE.ERROR, "Error", `You are using Service Control version ${environment.sc_version}. Please, upgrade to version ${environment.minimum_supported_sc_version} or higher to unlock new functionality in ServicePulse.`);
}
});

async function getServiceControlVersion() {
Expand Down

0 comments on commit 5587db0

Please sign in to comment.