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

Refactoring: Convert global config to client config and make it available through client context #202

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

kravets-levko
Copy link
Contributor

We used global config as a container for feature flags. It wasn't the best possible solution at the time we introduced it, but it did its job. Now, when we have a client context, it's time to make those configuration a part of it

Note for reviewers: most changes are made in test files. No changes to tests logic, just global config usages replaced with proper mocks for client context

@codecov-commenter
Copy link

codecov-commenter commented Nov 9, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (57c21d7) 88.34% compared to head (afecdd3) 88.38%.

Files Patch % Lines
lib/DBSQLSession.ts 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #202      +/-   ##
==========================================
+ Coverage   88.34%   88.38%   +0.04%     
==========================================
  Files          58       57       -1     
  Lines        1304     1309       +5     
  Branches      208      208              
==========================================
+ Hits         1152     1157       +5     
  Misses        105      105              
  Partials       47       47              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nithinkdb nithinkdb left a comment

Choose a reason for hiding this comment

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

LGTM!

@kravets-levko kravets-levko merged commit 80c660e into main Nov 14, 2023
5 checks passed
@kravets-levko kravets-levko deleted the refactor-global-config branch November 14, 2023 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants