-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces Logstash + redis with couch2pg++ (#109)
Removes Logstash Removes redis Removes redis worker Switches e2e tests from jest to mocha to conform with all of our other repos Adds a refactored version of Couch2pg. Remaining todos: - watch changes after initial transfer has finished - add support for multiple databases - figure out what we do with deletes
- Loading branch information
1 parent
16666be
commit c4c314c
Showing
47 changed files
with
3,996 additions
and
14,343 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 |
---|---|---|
@@ -1,38 +1,59 @@ | ||
{ | ||
"env": { | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"overrides": [ | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
"space" | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"double" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
] | ||
} | ||
"env": { | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"@medic", | ||
"plugin:node/recommended" | ||
], | ||
"overrides": [ | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"node" | ||
], | ||
"rules": { | ||
"array-bracket-newline": ["error", "consistent"], | ||
"array-callback-return": ["error", { "allowImplicit": true }], | ||
"arrow-spacing": ["error", { "before": true, "after": true }], | ||
"brace-style": ["error", "1tbs"], | ||
"comma-spacing": ["error", { "before": false, "after": true }], | ||
"comma-style": ["error", "last"], | ||
"default-param-last": "error", | ||
"dot-location": ["error", "property"], | ||
"dot-notation": ["error", { "allowKeywords": true }], | ||
"func-call-spacing": ["error", "never"], | ||
"func-style": ["error", "expression"], | ||
"function-call-argument-newline": ["error", "consistent"], | ||
"function-paren-newline": ["error", "consistent"], | ||
"implicit-arrow-linebreak": ["error", "beside"], | ||
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }], | ||
"keyword-spacing": ["error", { "before": true, "after": true }], | ||
"linebreak-style": ["error", "unix"], | ||
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], | ||
"new-parens": "error", | ||
"no-alert": "error", | ||
"no-else-return": "error", | ||
"no-extra-bind": "error", | ||
"no-console": "off", | ||
"no-lone-blocks": "error", | ||
"no-nested-ternary": "error", | ||
"no-undef-init": "error", | ||
"no-useless-rename": "error", | ||
"no-whitespace-before-property": "error", | ||
"node/no-exports-assign": "error", | ||
"node/no-unsupported-features/es-syntax": "off", | ||
"rest-spread-spacing": ["error", "never"], | ||
"semi-spacing": ["error", { "before": false, "after": true }], | ||
"semi-style": ["error", "last"], | ||
"template-curly-spacing": "error", | ||
"unicode-bom": ["error", "never"], | ||
"node/no-extraneous-import": ["error", { | ||
"allowModules": ["chai", "chai-as-promised", "sinon", "esmock"] | ||
}] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
node_modules | ||
.idea | ||
*/coverage/* | ||
logstash/sequence_path.txt | ||
/couch2pg/.nyc_output/ | ||
/.eslintcache |
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,2 @@ | ||
/tests/ | ||
/couch2pg/tests/ |
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,9 @@ | ||
FROM node:20-alpine AS base_build | ||
|
||
WORKDIR / | ||
|
||
COPY package.json package-lock.json ./ | ||
COPY ./src ./src | ||
RUN npm ci --ignore-scripts | ||
|
||
CMD ["node", "src/index.js"] |
Oops, something went wrong.