-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #731 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Added support for PostgreSQL alongside MySQL, including a new database setup script and comprehensive documentation for local development. - Introduced a new CI job for PostgreSQL testing in the GitHub Actions workflow. - Enhanced the `README.md` and `DEVELOPER.md` files to provide clearer instructions for using both database systems. - Added new environment variable configurations for PostgreSQL in the Docker deployment documentation. - **Bug Fixes** - Improved error handling in tests for duplicate entries to accommodate both MySQL and PostgreSQL error messages. - **Documentation** - Updated setup instructions for PostgreSQL and clarified MySQL setup in the documentation. - Enhanced contributor information in the README. - Expanded instructions for setting up Elasticsearch and Kibana, including environment variable configurations. - **Chores** - Updated package dependencies to include PostgreSQL client libraries and modified scripts to support both databases. - Changed the base image in the Dockerfile to a newer Node.js version. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
37 changed files
with
2,468 additions
and
336 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:18 | ||
FROM node:20 | ||
|
||
# Create app directory | ||
WORKDIR /usr/src/app | ||
|
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
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,10 @@ | ||
export function isDuplicateKeyError(err: any) { | ||
if (err.code === 'ER_DUP_ENTRY') { | ||
return true; | ||
} | ||
if (err.message.includes('duplicate key value violates unique constraint')) { | ||
// pg: duplicate key value violates unique constraint "tasks_uk_task_id" | ||
// code: '23505' | ||
return true; | ||
} | ||
} |
Oops, something went wrong.