Skip to content

3️⃣ Enterprise License: Frontend License Type Registry Refactor

Nigel Gott requested to merge 1230-add-frontend-license-type into develop

What does this MR do

  1. Introduces a frontend LicenseType interface and corrosponding registry
  2. Uses this new LicenseType to remove all hardcoded "premium" references in the frontend code
  3. Makes sure we can use this new registry to add an "EnterpriseLicenseType" in a later MR

This MR should be a refactor only with no functional changes

Testing

I've introduced a large amount of new component level behavioural tests covering various (but not all) places in the frontend where we show different buttons/options when premium is on or not. This will give us more confidence changing premium functionality later.

What comes next

In the next MR I will change the data structure sent from the backend to the frontend and stored in the auth store for figuring out what licenses a user has.

Merge Request Checklist

  • changelog.md has been updated if required
  • New/updated Premium features are separated correctly in the premium folder
  • The latest Chrome and Firefox have been used to test any new frontend features
  • Documentation has been updated
  • Quality Standards are met
  • Performance: tables are still fast with 100k+ rows, 100+ field tables
  • The redoc API pages have been updated for any REST API changes
  • Our custom API docs are updated for changes to endpoints accessed via api tokens
  • The UI/UX has been updated following UI Style Guide

Closes #1230 (closed)

Edited by Nigel Gott

Merge request reports