-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: handle missing article version, update Dockerfile for dev setup (…
…#840) * feat: handle missing article version, update Dockerfile for dev setup This commit updates the Dockerfile to include a setup for development environment. It also modifies the `getArticleVersion` function in `preprints-controller.ts`, `model.ts`, `mongodb-repository.ts`, and `mongodb-repository.test.ts` to handle cases where no matching article version is found. Instead of throwing an error, it now returns null, and handles the null case appropriately. * rename getArticleVersions to findArticleVersions for better semantics * move log to controller level where it is more apropriate * Alter the lines in docker-compose to match Dockerfile * add integration tests for invalid identifiers * add missing result parameter to test response --------- Co-authored-by: Will Byrne <[email protected]> Co-authored-by: aisha <[email protected]>
- Loading branch information
1 parent
070aae0
commit 2146a2f
Showing
7 changed files
with
40 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,6 @@ COPY src/ src/ | |
|
||
EXPOSE 3000 | ||
CMD [ "yarn", "start" ] | ||
|
||
FROM prod as dev | ||
CMD [ "yarn", "start:dev" ] |
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