-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BCDA-7786: Create Job Keys for ndjson files (#912)
## 🎫 Ticket https://jira.cms.gov/browse/BCDA-7786 ## 🛠 Changes - `processJob`: moved code to create job keys and update job status into its own function for testing - `processJob`: moved file size check into `writeBBDataToFile` - `processJob`: creating keys for each Job Key that is returned - `writeBBDataToFile`: changed return values to be a list of JobKeys and an error - `writeBBDataToFile`: returning "*-error.ndjson" job key if it is created (was not being returned and did not have job keys previously) - update to pre-commit / golangci-lint to check the pkg, as linting was failing on single files. ## ℹ️ Context for reviewers error.ndjson files not having job keys written to the database and middleware checks for job keys failing to [serve HTTP](#909). These changes will return the ndjson file and pass the middleware check, if the file exists. ## ✅ Acceptance Validation Current tests pass, some tests modified, new test added. Lots of intertwined dependencies with this one; was difficult to test. ## 🔒 Security Implications - [ ] This PR adds a new software dependency or dependencies. - [ ] This PR modifies or invalidates one or more of our security controls. - [ ] This PR stores or transmits data that was not stored or transmitted before. - [ ] This PR requires additional review of its security implications for other reasons. If any security implications apply, add Jason Ashbaugh (GitHub username: StewGoin) as a reviewer and do not merge this PR without his approval.
- Loading branch information
1 parent
be7bea0
commit 5e6a2cb
Showing
5 changed files
with
154 additions
and
138 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
Oops, something went wrong.