Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 76bc13f

Browse files
seungparkcasthewiz
andauthored
* DOP-3203: Add upsert functionality, asset upserts * fixup * DOP-3203: Stub functions, Stub tests, finalized merge query + logic * DOP-3203: Reorder logic * Improve the typing * fixup * stub toctreeorder * fixup * fixup * fixup * fixup * fixup * Use project for node options, not name * fixup * DOP-3203: Invoke the merging logic * DOP-3203: Coalesce feedback * DOP-3203: Rename associations to associated_products * DOP-3203: Null safety w/ default empty objects in insertions * DOP-3203: Unset _id in new shared metadata documents * DOP-3203: Address feedback further * init test on connect. verify why errors not consoled * export testing fn * update jest config for jest mongodb * add tests for associated products * update tests for associated products. add comments for connector * add test cmd * change tests to snapshots * add tests+snapshots for ToC * minor. return awaited value * run linter for json files * revert index file * configure workflows for persistence tests. update linter scopes * update cd to working-directory * update install command * test with cd vs working-directory * change to cd * update lint config for persistence module * echo current path * add eslint-plugin to persistence package * update package lock * test with dep * retest with eslint config file * add typescript parser * add dev dependencies, update step * update comment * add path filtering and remove bypass tests * remove comment * remove eslintconfig and set eslintrc as root Co-authored-by: Cassidy Schaufele <[email protected]>
1 parent 6ad9150 commit 76bc13f

File tree

7 files changed

+620
-198
lines changed

7 files changed

+620
-198
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI-persistence
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
# Checks for changes to the modules/persistence directory
13+
changes:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
persistence: ${{ steps.filter.outputs.persistence }}
17+
steps:
18+
- uses: dorny/paths-filter@v2
19+
id: filter
20+
with:
21+
filters: |
22+
persistence:
23+
- 'modules/persistence/**'
24+
25+
test:
26+
needs: changes
27+
if: ${{ needs.changes.outputs.persistence == 'true' }}
28+
defaults:
29+
run:
30+
working-directory: 'modules/persistence'
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v1
34+
- uses: actions/setup-node@v1
35+
with:
36+
node-version: '14.x'
37+
- name: Install dependencies
38+
run: npm install --dev
39+
- name: Lint
40+
run: npm run lint
41+
- name: Test
42+
run: npm test

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,26 @@ on:
77
pull_request:
88
branches:
99
- master
10+
1011
jobs:
12+
# Checks for changes outside of /modules directory
13+
changes:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
autobuilder: ${{ steps.filter.outputs.autobuilder }}
17+
steps:
18+
- uses: dorny/paths-filter@v2
19+
id: filter
20+
with:
21+
# set autobuilder filter true
22+
# if any changes outside of modules directory
23+
filters: |
24+
autobuilder:
25+
- '!(modules/**)'
26+
1127
test:
28+
needs: changes
29+
if: ${{ needs.changes.outputs.autobuilder }}
1230
runs-on: ubuntu-latest
1331
steps:
1432
- uses: actions/checkout@v1

modules/persistence/.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
root: true,
23
env: {
34
browser: true,
45
es6: true,
@@ -14,6 +15,7 @@ module.exports = {
1415
sourceType: 'module',
1516
},
1617
rules: {
18+
'@typescript-eslint/no-explicit-any': 'off',
1719
'no-console': 'off',
1820
},
1921
};

0 commit comments

Comments
 (0)