Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Background: 

Currently, Sunbird has one portal instance that has all the modules and has multiple tenant support. If a tenant request any changes to an existing feature or a new feature, all tenants will get these changes as well.

...

  1. Experiment feature should be isolated from the main app.
  2. Deployment of the experiment should not affect the main app.
  3. Loading of the experiment app should be configurable and loading logic should reside in the server.
  4. Determine experiment Id  and fetch experiment details before the app loads .
  5. It should not have any impact on the load times for the users who are not part of an experiment.
  6. All telemetry generated from the portal thereafter should contain the experiment id (in tags section)

Prerequisites :- 

  • APP_INITIALIZER :- The "APP_INITIALIZER" is an instance of InjectionToken in angular that  will be executed when an application is initialized. We will make use of it and perform our device register call and get the experiment details at this step.
  • Currently device register call is done after the app is initialized.

Loading Experiment specific app:

Solution :- 


Image RemovedImage Added


Workflow for Anonymous users  : -

...