Task #253
closedFE - load backend configuration before react router is inicialized
100%
Description
- add new reducer: config
- load backend configuration (enabled modules ..) and store it to config reducer
- load frontend configuration (module descriptors, component descriptors, localization ...) and store it to config reducer
- init react router and routes from all enabled frontend modules (depends on backend modules)
- revert routes overriding - now will be possible - this is main functional purpose of this ticket
- refactor logout redux action - prevent to delete stored config data will be not necessary now (config will be stored in diferent reducer now)
- refactor layout init actions (maybe remove them at all)
- layou and config reducer should be immutable map
P.S.: PoC is commited in Index_new.js
Related issues
Updated by Radek Tomiška about 7 years ago
- Subject changed from FE - load backend configuration before react router is inited to FE - load backend configuration before react router is inicialized
Updated by Radek Tomiška about 7 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Radek Tomiška to Ondřej Kopr
- % Done changed from 10 to 90
Layout reducer was renamed to config. Implemented features:
- configuration and FE initialization runs before react router initialization
- routes priority and order is implemented now
- disabling FE and BE module with reload - routes are initialized again with enabled modules only
- public configuration properties are stored in config reducer now
Could you make a test and review please?
Updated by Radek Tomiška about 7 years ago
- Related to Task #323: Routes issues added
Updated by Ondřej Kopr about 7 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Ondřej Kopr to Radek Tomiška
- % Done changed from 90 to 100
Thank you for route order, work nice!
Reload works correctly.
Try to change priority and order, works awesome!!
Search some information about priority and order in documentaion - not found is this necessary?
OK
Updated by Radek Tomiška about 7 years ago
- Status changed from Resolved to Closed
I've added documentation for routes descriptor:
https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/frontend/czechidm-core/README.md