-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(auto-rules): PeriodicArchiver scans archives on startup (#551)
* Retrieve list of recordings saved in archive * Start parsing archived recordings JSON * Refactor previous recordings extraction to be outside of the constructor * Iterate through archive to get previous recordings for the current rule * Extract archived recordings listing into refactored chunk * Clean up unneeded imports and class variables * Start iteration of archived recordings * Continue iteration of archived recordings * Begin archive directory restructuring * Implement get archive listing using Pattern matching * Begin refactoring related files to accommodate archive directory change * Implement nested directory structure using Path instead of String * Update archived recording(s) GET handlers * Create new class to represent archived recording information * Update recording archival and GET handlers to work with new class * Fix compilation errors related to exception handling and class instantiation * Remove unnecessary Future creation/handling in PeriodicArchiver * fixup! Remove unnecessary Future creation/handling in PeriodicArchiver * Update archived recordings GET and DELETE handlers to work with directory restructuring * Update archived recordings POST handlers to work with directory restructuring * Begin updating unit tests * Fix test fields and comment out certain tests to allow debugging * Update archived recordings GET handler test * Extract ArchivedRecordingInfo custom JSON serializer into its own class; run mvn spotless:apply * Update old PeriodicArchiver unit tests to better reflect its class structure * fixup! Extract ArchivedRecordingInfo custom JSON serializer into its own class; run mvn spotless:apply * Change the RecordingArchiveHelper implementation to be Future-based and update any corresponding tests * Update RecordingArchiveHelperTest * Update RecordingsPostHandlerTest * Fix broken unit tests * Update PeriodicArchiverTest to include archive scanning test * Test JSON serialization of archived recordings * Decouple target recording deletion from the RecordingArchiveHelper * Extract the correct archived recording deletion code from the RecordingDeleteHandler * Run mvn spotless:apply * fixup! Run mvn spotless:apply * Fix IOException due to not creating the encoded service URI directory * Fix unit test broken by addition of encoded service URI directory * Update archived recordings GET implementation and testing to reflect proper directory hierarchy * Update archived recordings DELETE implementation to reflect proper directory hierarchy * Update archived recordings DELETE testing to reflect proper directory hierarchy * Extract single recording GET into the RecordingArchiveHelper and update to reflect proper directory hierarchy * Update RecordingWorkflowIT to verify target and saved recordings deletion * Run mvn spotless:apply * Remove reliance on default encoding * Remove unnecessary saved recordings path from archived recording GET handler * Update archived recordings POST handler to reflect proper directory hierarchy * Update archived recordings POST handler testing to reflect proper directory hierarchy * Update archived recordings UPLOAD POST handler implementation and testing to reflect proper directory hierarchy * fixup! Update archived recordings UPLOAD POST() handler implementation and testing to reflect proper directory hierarchy * Run mvn spotless:apply * Remove unnecessary IOException handling * Update archived recording GET testing * Add missing status code field to archived recordings GET handler * Continue removing unnecessary IOException handling * Remove deprecated import * Fix unit test errors due to addition of default HTTP content type * Fix incorrect CompletableFuture.get() error handling * Run mvn spotless:apply * fixup! Fix incorrect CompletableFuture.get() error handling * Remove unnecessary status code setting and extract PATCH/DELETE notifications into the RecordingArchiveHelper * Change Base32 instances from local to class level * Normalize and convert to absolute path beforehand; refactor recording path getter function * fixup! Normalize and convert to absolute path beforehand; refactor recording path getter function * Delete deprecated saved recording descriptor class * Revert changes made to RecordingWorkflowIT that cause intermittent failure * Replace iterator with for-each loop * Remove unnecessary custom JSON serialization * Ensure handlers throw HttpStatusExceptions containing the most information possible * Encapsulate specific Exceptions inside Future(s) in the RecordingArchiveHelper API * Clean-up exception handling * Include deleted recording's path in returned Future * Start fixing incorrect directory search during archived recording report caching * Extract archived recording report deletion into the RecordingArchiveHelper; replace old, static RecordingNotFoundException class with new, separate class * fixup! Clean-up exception handling * Fix incorrect subdirectory creation in handler without access to targetID * Clean-up exception handling * Remove unecessary HTTP response end() * Run mvn spotless:apply * fixup! Remove unecessary HTTP response end() * Fix incorrect AuthManager mocking in unit tests * Run mvn spotless:apply
- Loading branch information
Hareet Dhillon
committed
Aug 11, 2021
1 parent
a703e48
commit 2a26702
Showing
39 changed files
with
1,288 additions
and
885 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
Oops, something went wrong.