Project

General

Profile

Actions

Task #195

closed

Implement routes priority (frontend)

Added by Vít Švanda about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Modularity
Target version:
Start date:
11/18/2016
Due date:
% Done:

100%

Estimated time:
Owner:

Description

We will need implement priority on route for frontend modules.
- We can override routes, but now is order of resolve final routes random.
- First override route from another module was implemented in task #193


Related issues

Related to IdStory Identity Manager - Task #132: Dynamic enable/disable module on FEClosedRadek Tomiška09/05/2016

Actions
Actions #1

Updated by Ondřej Kopr about 8 years ago

  • % Done changed from 0 to 60
Actions #2

Updated by Vít Švanda about 8 years ago

  • Subject changed from Implement module order (frontend) to Implement routes priority (frontend)
  • Description updated (diff)
Actions #3

Updated by Vít Švanda about 8 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Ondřej Kopr about 8 years ago

  • % Done changed from 60 to 90
  • in Index.js was modifieded creating routes.
  • Over routes is now iterate twice
  1. Fill routes access, onEnter and transform childRoutes to Immutable.List
  2. Chech override routes and prios. Remove overriden routes and trasform Immutable.List back to array.
  • Is nessesary to add priority attribute to overrride routes. Otherwise can discover unexpected behavior.
  • If exist two same routes with no priority attribute. They will be evaluated by module name.
Actions #5

Updated by Ondřej Kopr about 8 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondřej Kopr to Radek Tomiška
  • After some tests, found next thing to be done: After disable module with override some route and try to access to this route get 401 error. It must be implemented some route reload. I fix it in another task.
Actions #6

Updated by Radek Tomiška about 8 years ago

  • Related to Task #132: Dynamic enable/disable module on FE added
Actions #7

Updated by Radek Tomiška about 8 years ago

  • Status changed from Needs feedback to Closed
  • Assignee changed from Radek Tomiška to Ondřej Kopr
  • % Done changed from 90 to 100

We did review together and agile. I works, but remove module routes, when module is disabled has to be implemented too - I've added this feature to #132.

Actions

Also available in: Atom PDF