-
Notifications
You must be signed in to change notification settings - Fork 3
VED-881: refactor constants for batch lambdas #1096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
edhall-nhs
merged 13 commits into
master
from
feature/VED-881-refactor-constants-for-batch-lambdas
Jan 8, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
95f2543
Consolidate filenameprocessor consts
edhall-nhs 8f0c95d
Consolidate batch_processor_filer consts
edhall-nhs 529e76b
Consolidate recordprocessor consts
edhall-nhs f244e3e
Consolidate ack_backend consts
edhall-nhs e55d85a
Consolidate batch_processor_filter env var consts
edhall-nhs 7ba57e0
Consolidate filenameprocessor env var consts
edhall-nhs 665da48
Consolidate recordprocessor env var consts
edhall-nhs c51b3d4
Consolidate ack_backend env var consts
edhall-nhs dfbdc9d
Self review
edhall-nhs 61ea318
Merge branch 'master' into feature/VED-881-refactor-constants-for-bat…
Akol125 01a12be
Address review comments
edhall-nhs b62469c
Self review round 2
edhall-nhs 83d999e
Add sonar coverage exclusion for batch_constants
edhall-nhs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
lambdas/ack_backend/tests/utils/generic_setup_and_teardown_for_ack_backend.py
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,38 +1,6 @@ | ||
| import os | ||
| from enum import StrEnum | ||
|
|
||
| AUDIT_TABLE_NAME = os.getenv("AUDIT_TABLE_NAME") | ||
| AUDIT_TABLE_FILENAME_GSI = os.getenv("FILE_NAME_GSI") | ||
| AUDIT_TABLE_QUEUE_NAME_GSI = os.getenv("QUEUE_NAME_GSI") | ||
| QUEUE_URL = os.getenv("QUEUE_URL") | ||
| SPLUNK_FIREHOSE_STREAM_NAME = os.getenv("SPLUNK_FIREHOSE_NAME") | ||
| SOURCE_BUCKET_NAME = os.getenv("SOURCE_BUCKET_NAME") | ||
| ACK_BUCKET_NAME = os.getenv("ACK_BUCKET_NAME") | ||
|
|
||
|
|
||
| class FileStatus(StrEnum): | ||
| """File status constants""" | ||
|
|
||
| QUEUED = "Queued" | ||
| PROCESSING = "Processing" | ||
| PREPROCESSED = "Preprocessed" | ||
| PROCESSED = "Processed" | ||
| NOT_PROCESSED = "Not processed" | ||
| FAILED = "Failed" | ||
|
|
||
|
|
||
| class FileNotProcessedReason(StrEnum): | ||
| """Reasons why a file was not processed""" | ||
|
|
||
| DUPLICATE = "Duplicate" | ||
|
|
||
|
|
||
| class AuditTableKeys(StrEnum): | ||
| """Audit table keys""" | ||
|
|
||
| FILENAME = "filename" | ||
| MESSAGE_ID = "message_id" | ||
| QUEUE_NAME = "queue_name" | ||
| STATUS = "status" | ||
| TIMESTAMP = "timestamp" | ||
| ERROR_DETAILS = "error_details" | ||
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.