Remove AppConfigModule, migrate status-banner and contactEmail config to AppConfigService#399
Conversation
…ule and all unused occurences
There was a problem hiding this comment.
LGTM, thanks! Would you mind putting a the banners etc here, just as an example (after the merge and the renovate PR)?
I think this should be a new major (it should trigger the renovate PR in scicatlive, after which we could add these extra fields as an example)
Thanks! Sounds good, so I will need to create a new release of landing page. The most recent seems to v3.3 which is also used in scicatlive. |
|
Thanks! Even though it has a breaking change, I have to correct myself and I think it's enough to use 3.4. This because if one used the older prebuilt image, they couldn't anyway take advantage of environment.ts |
Good point, thanks! I created a release v3.4, but the build-release workflow to publish an image to ghcr isn't running - attempting a fix here: #401 Looking at the changelog this release seems backwards compatible. just a small clarification: |
Description
There were two ways to provide app config: the older
AppConfigModule- which only read fromenvironment.ts, and the newerAppConfigService- which read from/config, or/assets/config.jsonor finallyenvironment.ts. Most of the config was migrated to the newer config service.This PR migrates also the status-banner and help email related config to the new service, hence making the older AppConfigModule unnecessary.
Motivation
Two ways to provide app-config added confusion, this PR fixes it by removing the older way.
Fixes:
Changes:
statusCode,statusMessageandcontactEmailconfig and their initialization logic to AppConfigServiceTests included/Docs Updated?
Extra Information/Screenshots
Verified that status-banner and contact email features work with new config:
