Skip to content

Make an InstallationProvider #2603

@nicholasdalhaug

Description

@nicholasdalhaug

Describe the improvement you would like to see
An installation provider that only aquires the installation based on either url or prompting a selection.

How will this change existing functionality?
It should be independent of the asset context. The asset context wil probably depend on the installation.
It should provide a valid installation at all times for the children, instead of having to handle undefined installation. Also it should combine installationName, code and id into the actual installation object, instead of having to translate between installation code and actual installation objects.

As a side effect, moving the selection of the installation up in App.tsx, above the SignalRProvider, will ensure that we only get signalR messages whith registered event handlers that are not using a different installation. This is currently solved by resetting the SignalR connection when the installation is switched. See #2602.

How will this improvement affect the current Threat Model?
No change

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendFrontend related functionalityimprovementImprovement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions