-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3980 address ace reports migration (#3986)
* #3990 Updated schema to allow GSA migration keyword * #3980 Updated logic to prevent use of GSA migration keyword in normal intake * #3980 Added global flag for ACE report * #3980 Logic to handle ACE report and prevent error * #3980 Added test case * Linting * Bug fix * Bug fix
- Loading branch information
Showing
14 changed files
with
328 additions
and
49 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import copy | ||
from typing import Any | ||
|
||
|
||
class AceFlag: | ||
"""Hold ACE report flag for the ongoing report migration""" | ||
|
||
DEFAULT: dict[str, Any] = { | ||
"is_ace_report": False, | ||
} | ||
fields = copy.deepcopy(DEFAULT) | ||
|
||
@staticmethod | ||
def reset(): | ||
AceFlag.fields = copy.deepcopy(AceFlag.DEFAULT) | ||
|
||
@staticmethod | ||
def set_ace_report_flag(flag): | ||
AceFlag.fields["is_ace_report"] = flag | ||
|
||
@staticmethod | ||
def get_ace_report_flag(): | ||
return AceFlag.fields["is_ace_report"] |
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.