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

resolve issues #342 & #362 make indexed things searchable #363

Merged
merged 2 commits into from Apr 30, 2024

Conversation

finanalyst
Copy link
Collaborator

  • previous default was not to make them searchable (because too many things were duplicated)
  • the duplicates have now been reduced.
  • users who have used the site before will need to remove the localstorage to over-ride the previous default.

- previous default was not to make them searchable (because too  many things were duplicated)
- the duplicates have now been reduced.
- users who have used the site before will need to remove the localstorage to over-ride the previous default.
@finanalyst finanalyst requested a review from coke April 20, 2024 20:12
@coke
Copy link
Contributor

coke commented Apr 21, 2024

Can we write some JS to wipe the setting the first time we check it? Maybe keep a dumb id of the version of JS expected - with the new version - set it to 1 and go up each deployment; if we check it and it's 0, fix it so the default isn't in place.

Also: we shouldn't be saving the default value explicitly - it should be a default if not set. then we can change what the default setting is without having to jump through hoops and only worry if someone changed it explicitly. (in which case we can override it with certain releases)

@finanalyst
Copy link
Collaborator Author

@coke

we shouldn't be saving the default value explicitly - it should be a default if not set.

This is true and I hadn't considered this. Let me think about this for a bit.

@finanalyst
Copy link
Collaborator Author

@coke fixed the default issue. Actually an easy fix. So options only stored when there is a change from the default.

Copy link
Contributor

@coke coke left a comment

Choose a reason for hiding this comment

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

Looks like this should improve things, but doesn't deal with the case where someone already has an override.

We probably want to add a button to the settings page where someone can reset and get things back to the current defaults, regardless of how they interacted in the past

@finanalyst
Copy link
Collaborator Author

finanalyst commented Apr 30, 2024 via email

@finanalyst finanalyst merged commit 5913151 into main Apr 30, 2024
1 check passed
@finanalyst finanalyst deleted the make_indexed_things_searchable_by_default branch April 30, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants