Project

General

Profile

Actions

Task #575

closed

Improve FE configuration

Added by Filip Měšťánek almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Frontend
Target version:
Start date:
07/13/2017
Due date:
% Done:

100%

Estimated time:
Owner:

Description

As it stands now, FE can be configured by two ways:

By editing the config.json of the selected stage - but it is required to do it within build of FE
By editing the config.js - but this adds global variables which is not really configuration and is very error

I would prefer a more flexible path. The new way of configuring should support configuration without the necessity of re-building the application. A restart is not a problem.

Actions #1

Updated by Vít Švanda over 6 years ago

  • Target version deleted (Diamond (7.4.0))
Actions #2

Updated by Radek Tomiška over 6 years ago

  • Assignee changed from Radek Tomiška to Vít Švanda
  • Target version set to Forsterite (7.6.0)
  • % Done changed from 0 to 90

Whole object is transformed to simple JS and is used as application configuration => can be changed after build (with some limitations - theme, overrideModuleDescriptor is used in build phase, so is not possible to change it ):
https://wiki.czechidm.com/devel/dev/configuration/frontend

Could you pls do a review?

Actions #3

Updated by Radek Tomiška over 6 years ago

  • Status changed from New to Needs feedback
Actions #4

Updated by Vít Švanda over 6 years ago

  • Status changed from Needs feedback to Closed
  • Assignee changed from Vít Švanda to Radek Tomiška
  • % Done changed from 90 to 100

Works fine. I appreciate nice solution (transform whole config.json object).

Actions

Also available in: Atom PDF