aws / aws-parallelcluster-ui

Apache License 2.0
31 stars 20 forks source link

Enable additional features by using sessionStorage #192

Closed mtfranchetto closed 1 year ago

mtfranchetto commented 1 year ago

Description

Enable flagged features by acting on sessionStorage. For example:

Define a new feature flag

export type AvailableFeature = 'cost'

Open a browser tab with PCUI, then go to the console and type

window.sessionStorage.setItem('additionalFeatures', '["cost"]')

Reload the page and the cost flag will be active!

How Has This Been Tested?

Repeated the same procedure explained in the description (on Chrome)

PR Quality Checklist

In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

mendaomn commented 1 year ago

praise: simple and effective!