-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): remove indexCanisterVersion (#3620)
# Motivation All SNSes have upgraded their Index Canister version to `-ng` several months ago. Therefore, the `indexCanisterVersion` information is no longer necessary. # Notes The weekly job was interesting because it reported Index Canisters as "outdated" when they were out of cycles. However, detecting such issues is not entirely our responsibility. Additionally, the job incorrectly flagged them as "outdated" due to a failing assertion that checked the error message to determine if they were out of cycles. This assertion stopped working because the error message text had changed. Long story short, we decided to remove the check. # Changes - Remove assertion from bi-weekly script. - Remove type and usage of `indexCanisterVersion` in code. --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
19c9a07
commit 4ac6504
Showing
13 changed files
with
44 additions
and
173 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import { EnvIcrcTokenMetadataSchema, EnvIcTokenSchema } from '$env/schema/env-icrc-token.schema'; | ||
import { z } from 'zod'; | ||
|
||
const IndexCanisterVersionSchema = z.union([z.literal('up-to-date'), z.literal('outdated')]); | ||
|
||
export const EnvSnsTokenSchema = EnvIcTokenSchema.extend({ | ||
rootCanisterId: z.string(), | ||
metadata: EnvIcrcTokenMetadataSchema, | ||
indexCanisterVersion: IndexCanisterVersionSchema | ||
metadata: EnvIcrcTokenMetadataSchema | ||
}); | ||
|
||
export const EnvSnsTokensSchema = z.array(EnvSnsTokenSchema); |
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.