Skip to content
This repository has been archived by the owner on Feb 12, 2020. It is now read-only.

settings reset (temporary solution) #491

Merged
merged 2 commits into from
May 1, 2019
Merged

settings reset (temporary solution) #491

merged 2 commits into from
May 1, 2019

Conversation

balmas
Copy link
Member

@balmas balmas commented May 1, 2019

@kirlat Monica is having trouble testing on Firefox because she moved the toolbar out of the view and Firefox doesn't seem to give any way for a user to request a reset of sync storage for an extension. I've tried all things and it seems it can only be done programmatically. I've entered alpheios-project/webextension#217 to make sure we clean up after ourselves upon uninstall, and #488 to allow for the user to choose to reset their settings themselves.

I didn't want to implement this at all until we can refactor the settings to use the vuex store, but I need to get Monica unstuck, so this is just a partial solution to allow her to initiate a reset. I tried but couldn't find a quick way to get all of the settings Vue components to redraw. This definitely isn't sufficient for production but at least will allow her to continue testing on FF.

solution to enabling reset of settings to allow testing to continue
@balmas balmas requested a review from kirlat May 1, 2019 18:10
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2873

  • 13 of 23 (56.52%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-13.0%) to 21.392%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/lib/options/storage-adapter.js 0 1 0.0%
src/vue/components/panel-compact.vue 0 1 0.0%
src/lib/options/local-storage-area.js 10 13 76.92%
src/lib/controllers/ui-controller.js 0 5 0.0%
Totals Coverage Status
Change from base Build 2865: -13.0%
Covered Lines: 652
Relevant Lines: 2621

💛 - Coveralls

1 similar comment
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2873

  • 13 of 23 (56.52%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-13.0%) to 21.392%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/lib/options/storage-adapter.js 0 1 0.0%
src/vue/components/panel-compact.vue 0 1 0.0%
src/lib/options/local-storage-area.js 10 13 76.92%
src/lib/controllers/ui-controller.js 0 5 0.0%
Totals Coverage Status
Change from base Build 2865: -13.0%
Covered Lines: 652
Relevant Lines: 2621

💛 - Coveralls

Copy link
Member

@kirlat kirlat left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for cleaning up the unused code

@balmas balmas merged commit 3738025 into master May 1, 2019
@balmas balmas deleted the issue-488 branch May 1, 2019 18:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants