Skip to content

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

Merged
kravets-levko merged 3 commits intomainfrom
refactor-global-config
Nov 14, 2023
Merged

Refactoring: Convert global config to client config and make it available through client context#202
kravets-levko merged 3 commits intomainfrom
refactor-global-config

Conversation

@kravets-levko
Copy link
Copy Markdown
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

…client context

Signed-off-by: Levko Kravets <levko.ne@gmail.com>
@codecov-commenter
Copy link
Copy Markdown

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
Copy Markdown
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
@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