-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding proxy timeout config to legacy (#433)
* feat: adding proxy timeout config to legacy * fix: adding error handler to orgbook Some requests can return an error due to the amount of requests being done to orgbook. * fix: updating timeout for legacy * fix: reworking report to be automatically generated * chore: fixing tests * chore: changing cleaning and resources - increasing resource to prevent out of memory - adding a remove endpoint to clean old reports - adding PVC to report folder - increased the time between report cleaning - increased test coverage
- Loading branch information
Paulo Gomes da Cruz Junior
authored
Apr 21, 2023
1 parent
0dd61d3
commit 7985962
Showing
9 changed files
with
313 additions
and
157 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 was deleted.
Oops, something went wrong.
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
12 changes: 12 additions & 0 deletions
12
legacy/src/main/java/ca/bc/gov/app/exception/MissingReportFileException.java
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,12 @@ | ||
package ca.bc.gov.app.exception; | ||
|
||
import org.springframework.http.HttpStatus; | ||
import org.springframework.web.bind.annotation.ResponseStatus; | ||
import org.springframework.web.server.ResponseStatusException; | ||
|
||
@ResponseStatus(HttpStatus.NOT_FOUND) | ||
public class MissingReportFileException extends ResponseStatusException { | ||
public MissingReportFileException(String reportId) { | ||
super(HttpStatus.NOT_FOUND, "No report found for ID " + reportId); | ||
} | ||
} |
Oops, something went wrong.