Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save Insight property config locally #3994

Merged
merged 8 commits into from
May 3, 2023

Conversation

haneslinger
Copy link
Contributor

Any background context you want to provide?

On the property insights page, the things you select in the dropdown are now saved locally. 👍

What's this PR do?

How should this be manually tested?

What are the relevant tickets?

Screenshots (if appropriate)

@github-actions
Copy link

Label error. Requires at least 1 of: Feature, Bug, Enhancement, Maintenance, Documentation, Performance, Do not publish. Found:

@haneslinger haneslinger added the Enhancement Add this label if functionality was generally improved but not a full feature or maintentance. label Apr 24, 2023
@haneslinger
Copy link
Contributor Author

doh, I forgot to include the saving of way datasets you have hidden. I'll add that soon

@haneslinger
Copy link
Contributor Author

done!

@haneslinger haneslinger marked this pull request as ready for review April 28, 2023 17:59
dataset_visibility: new_configs.dataset_visibility,
annotation_visibility: new_configs.annotation_visibility,
}
localStorage.setItem('insights.property.configs', JSON.stringify(local_storage_configs));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this localStorage key doesn't include the org id (or a nested structure using the org id as a lookup) these settings will be lost any time someone changes their org and visits this page

Copy link
Contributor

@kflemin kflemin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is working great, even across orgs!

@axelstudios axelstudios merged commit 7e2a33d into develop May 3, 2023
7 checks passed
@axelstudios axelstudios deleted the Save-insight-property-configs-locally branch May 3, 2023 22:30
@haneslinger haneslinger mentioned this pull request Jun 21, 2023
10 tasks
dhaley pushed a commit that referenced this pull request Jul 21, 2023
* Save Insight property config locally

* Save visiibility locally

* Formatting

* Fix for mutliple orgs

* Fixed annotation_visibility bug

---------

Co-authored-by: Alex Swindler <alex.swindler@nrel.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Add this label if functionality was generally improved but not a full feature or maintentance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants