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

feat(links): allow links to be marked as searchable #473

Merged
merged 4 commits into from
Aug 31, 2020

Conversation

LoneRifle
Copy link
Contributor

@LoneRifle LoneRifle commented Aug 24, 2020

Problem and Solution

Right now, links are indexed by default. Allow users to explicitly
mark their links as searchable, defaulting to false, so that users
are not surprised by links implicitly made searchable.

  • Declare isSearchable as a boolean field on the Url table, and
    equivalent fields on corresponding types
  • Replace description with isSearchable in GIN index
  • Add appropriate plumbing to both server and client so that
    isSearchable is propagated throughout the application
  • Render isSearchable as a toggle switch in LinkInfoEditor

Part of work for #399

Screenshots

image

Deploy Notes

  • isSearchable will have to be added as a new boolean column in urls table, non-null, default false
  • Text search index will have to be changed to incorporate isSearchable

@LoneRifle LoneRifle requested a review from liangyuanruo August 24, 2020 08:16
@LoneRifle LoneRifle changed the title feat(links): allow links to be marked as searchable feat(links): change Url table to have isSearchable field Aug 24, 2020
@LoneRifle LoneRifle force-pushed the feat/links/searchable branch 4 times, most recently from 1dcea7b to 6f123a5 Compare August 24, 2020 12:03
@LoneRifle LoneRifle changed the title feat(links): change Url table to have isSearchable field feat(links): allow links to be marked as searchable Aug 24, 2020
@LoneRifle LoneRifle force-pushed the feat/links/searchable branch from 7e3c274 to 089fd28 Compare August 25, 2020 05:48
Right now, links are indexed by default. Allow users to explicitly
mark their links as searchable, defaulting to false, so that users
are not surprised by links implicitly made searchable.

- Declare `isSearchable` as a boolean field on the Url table, and
  equivalent fields on corresponding types
- Replace `description` with `isSearchable` in GIN index
- Add appropriate plumbing to both server and client so that
  `isSearchable` is propagated throughout the application
- Move GoSwitch for use by LinkInfoEditor
- Add more plumbing in redux/etc to supply `isSearchable`
- Render `isSearchable` as a toggle switch in LinkInfoEditor
@LoneRifle LoneRifle force-pushed the feat/links/searchable branch from 089fd28 to c8eb7c4 Compare August 25, 2020 05:54
@LoneRifle LoneRifle force-pushed the feat/links/searchable branch from 3b79c3a to 2c88db2 Compare August 31, 2020 06:28
Copy link
Member

@yong-jie yong-jie left a comment

Choose a reason for hiding this comment

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

lgtm

@LoneRifle LoneRifle merged commit 20769b0 into develop Aug 31, 2020
@yong-jie yong-jie deleted the feat/links/searchable branch September 8, 2020 08:58
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.

2 participants