Project

General

Profile

Actions

Task #253

closed

FE - load backend configuration before react router is inicialized

Added by Radek Tomiška over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Frontend
Target version:
Start date:
12/21/2016
Due date:
% Done:

100%

Estimated time:
16.00 h
Owner:

Description

Redesign frontend application init:
  • 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

Related to IdStory Identity Manager - Task #323: Routes issuesClosedRadek Tomiška03/01/2017

Actions
Actions #1

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
Actions #2

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?

Actions #3

Updated by Radek Tomiška about 7 years ago

Actions #4

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

Actions #5

Updated by Radek Tomiška about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF