clutch icon indicating copy to clipboard operation
clutch copied to clipboard

core: dependencies between routes

Open Augustyniak opened this issue 5 years ago • 0 comments

Description

Provide a mechanism that allows a given package to require its users to enable route X if route Y is enabled.

What I'm going to describe here is a general request but I'm going to use an experimentation package to illustrate the use case.

The main route in the experimentation package is called listExperiments and it's responsible for presenting the list of existing experiments. When a user taps any of the elements in the list we want to move them to the viewExperimentRun route. This implies that viewExperimentRun route should be always enabled if listExperiments is enabled. As far as I know, Clutch doesn't currently provide a mechanism for this kind of enforcement.

Route Path Screenshot
listExperiments /list Screen Shot 2020-09-18 at 8 44 33 AM
viewExperimentRun /run/:runID Screen Shot 2020-09-18 at 8 44 41 AM

Complexity [S/M/L]: ?

Augustyniak avatar Sep 18 '20 15:09 Augustyniak