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: update backend configs regularly [WPB-14727] #18466

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

aweiss-dev
Copy link
Member

@aweiss-dev aweiss-dev commented Dec 9, 2024

BugWPB-14727 [Web] Make sure clients fetch all configurations regularly

Description

Update following endpoints every 24h AND every "window-focus-event":

  • /api-version
  • /mls/public-keys
  • /features-config

@aweiss-dev aweiss-dev requested review from otto-the-bot and a team as code owners December 9, 2024 15:21
@echoes-hq echoes-hq bot added the echoes: unplanned/incident Work items addressing critical product defects that require immediate action, such as bugs, platf... label Dec 9, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 9, 2024

Codecov Report

Attention: Patch coverage is 28.57143% with 15 lines in your changes missing coverage. Please review.

Project coverage is 46.33%. Comparing base (bb936b0) to head (2c5d62d).
Report is 3 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #18466      +/-   ##
==========================================
- Coverage   46.33%   46.33%   -0.01%     
==========================================
  Files         845      846       +1     
  Lines       26379    26392      +13     
  Branches     5981     5983       +2     
==========================================
+ Hits        12223    12229       +6     
- Misses      12626    12634       +8     
+ Partials     1530     1529       -1     

Copy link

sonarqubecloud bot commented Dec 9, 2024

Copy link
Contributor

@e-maad e-maad left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@@ -77,8 +78,7 @@ const render = (Component: FC): void => {
const config = Config.getConfig();

async function runApp() {
const [min, max] = config.SUPPORTED_API_RANGE;
const {domain} = await core.useAPIVersion(min, max, config.ENABLE_DEV_BACKEND_API);
const {domain} = await updateApiVersion();
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we need to schedule updateApiVersion job for auth app?

@aweiss-dev aweiss-dev merged commit 376e7be into dev Dec 9, 2024
13 checks passed
@aweiss-dev aweiss-dev deleted the fix/WPB-14727_update_configs branch December 9, 2024 16:11
V-Gira pushed a commit that referenced this pull request Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: unplanned/incident Work items addressing critical product defects that require immediate action, such as bugs, platf... 👕 size: M type: feature / request ✨
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants