-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix]
AS
classification group education requirements (#12499)
* Add AS inherits from PM * Add ClassificationGroup type * Add ClassificationGroup type Co-authored-by: Peter Giles <[email protected]> * Add isClassificationGroup conditional Co-authored-by: Peter Giles <[email protected]> * Add isClassificationGroup conditional Co-authored-by: Peter Giles <[email protected]> * Log unexpected classification groups --------- Co-authored-by: Peter Giles <[email protected]>
- Loading branch information
1 parent
86b71b4
commit e01ec83
Showing
8 changed files
with
100 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export const CLASSIFICATION_GROUP = [ | ||
"AS", | ||
"CR", | ||
"EC", | ||
"EX", | ||
"IT", | ||
"PM", | ||
] as const; // List of classification groups that we expect need to be handled. | ||
|
||
export type ClassificationGroup = (typeof CLASSIFICATION_GROUP)[number]; | ||
|
||
export const isClassificationGroup = (x: unknown): x is ClassificationGroup => { | ||
return ( | ||
typeof x === "string" && | ||
CLASSIFICATION_GROUP.includes(x as ClassificationGroup) | ||
); | ||
}; |
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