Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(condo): INFRA-202 multiple database sources #4618

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

sitozzz
Copy link
Member

@sitozzz sitozzz commented Apr 15, 2024

  • Need to deal with adapter cache!!!
  • Stand tests
  • Load tests

@sitozzz sitozzz force-pushed the feat/condo/INFRA-202/multiple-database-sources branch 5 times, most recently from 6a93b34 to db441c8 Compare April 29, 2024 13:22
@sitozzz sitozzz force-pushed the feat/condo/INFRA-202/multiple-database-sources branch 3 times, most recently from 1f957e4 to 046aaa6 Compare May 6, 2024 06:48
@sitozzz sitozzz marked this pull request as ready for review May 6, 2024 10:48
@sitozzz sitozzz added 👶 small Easy to review changes up to 50 lines of code ✋🙂 Review please Comments are resolved, take a look, please labels May 6, 2024
@sitozzz sitozzz force-pushed the feat/condo/INFRA-202/multiple-database-sources branch 4 times, most recently from db580d7 to 04db392 Compare May 24, 2024 10:39
@sitozzz sitozzz force-pushed the feat/condo/INFRA-202/multiple-database-sources branch from 04db392 to 87a36fd Compare June 1, 2024 05:08
@sitozzz sitozzz force-pushed the feat/condo/INFRA-202/multiple-database-sources branch 2 times, most recently from 08e8972 to 3c91f98 Compare June 13, 2024 05:52
@sitozzz sitozzz force-pushed the feat/condo/INFRA-202/multiple-database-sources branch from 3c91f98 to 5e1cab2 Compare June 24, 2024 07:42
@sitozzz sitozzz force-pushed the feat/condo/INFRA-202/multiple-database-sources branch from 93c44da to d51271a Compare June 27, 2024 12:12
bin/prepare.js Dismissed Show dismissed Hide dismissed
bin/prepare.js Dismissed Show dismissed Hide dismissed
@@ -4,7 +4,7 @@ on:
push:
branches:
- master
pull_request_target:
pull_request:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to switch triggers back

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you I won't forget

@@ -212,5 +212,6 @@
},
"resolutions": {
"@types/react": "16.9.17"
}
},
"dbAdapters": ["ReplicaKnexAdapter"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess CLI arg will be preferable in prepare


const logger = getLogger('replicaKnexAdapter')

const MUTABLE_OPERATIONS = ['create', 'update', 'insert', 'delete', 'alter', 'drop', 'truncate', 'rollback', 'del']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO reverted ops are better (explicitly specify, what to take from replica). And if not sure - go to main db

…rgs & invert replica selection filtering query
Copy link

sonarcloud bot commented Jul 9, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✋🙂 Review please Comments are resolved, take a look, please 👶 small Easy to review changes up to 50 lines of code
Development

Successfully merging this pull request may close these issues.

None yet

3 participants