Skip to content

[Palm] feat: Support runtime configuration - #185

Merged
arbrandes merged 2 commits into
openedx:open-release/palm.masterfrom
arbrandes:runtime-config-palm
Jun 5, 2023
Merged

[Palm] feat: Support runtime configuration#185
arbrandes merged 2 commits into
openedx:open-release/palm.masterfrom
arbrandes:runtime-config-palm

Conversation

@arbrandes

@arbrandes arbrandes commented May 31, 2023

Copy link
Copy Markdown
Contributor

This is a backport to palm.master of #183.

Adolfo R. Brandes added 2 commits May 31, 2023 12:46
frontend-platform supports runtime configuration since 2.5.0 (see the PR
that introduced it[1], but it requires MFE cooperation.  This implements
just that: by avoiding making configuration values constant, it should
now be possible to change them after initialization.

Almost all changes here relate to the `LMS_BASE_URL` setting, which in
most places was treated as a constant.

[1] openedx/frontend-platform#335
@arbrandes arbrandes changed the title feat: Support runtime configuration [Palm] feat: Support runtime configuration May 31, 2023
@arbrandes

Copy link
Copy Markdown
Contributor Author

@ghassanmas, @dcoa, and @MaferMazu, as reviewers of #183, care to give this one a thumbs up?

@codecov

codecov Bot commented May 31, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (dcdc967) 100.00% compared to head (fed0664) 100.00%.

Additional details and impacted files
@@                    Coverage Diff                     @@
##           open-release/palm.master      #185   +/-   ##
==========================================================
  Coverage                    100.00%   100.00%           
==========================================================
  Files                           111       110    -1     
  Lines                          1080      1078    -2     
  Branches                        158       158           
==========================================================
- Hits                           1080      1078    -2     
Impacted Files Coverage Δ
src/containers/ListView/ListViewBreadcrumb.jsx 100.00% <ø> (ø)
src/data/redux/thunkActions/app.js 100.00% <ø> (ø)
src/data/services/lms/api.js 100.00% <ø> (ø)
src/data/constants/app.js 100.00% <100.00%> (ø)
src/data/redux/thunkActions/download.js 100.00% <100.00%> (ø)
src/data/services/lms/urls.js 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@MaferMazu

Copy link
Copy Markdown

@arbrandes, do we need to remove the src/config/index.js file?

@arbrandes

Copy link
Copy Markdown
Contributor Author

@MaferMazu

do we need to remove the src/config/index.js file?

Ah, nice catch!

@arbrandes

arbrandes commented Jun 1, 2023

Copy link
Copy Markdown
Contributor Author

Oh, wait, it's already removed!

Edit: yes, we should remove it, as it's not being used anywhere anymore.

@arbrandes
arbrandes merged commit 6722dbd into openedx:open-release/palm.master Jun 5, 2023
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.

2 participants