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

Public status index #11

Merged
merged 42 commits into from
Aug 4, 2023
Merged

Public status index #11

merged 42 commits into from
Aug 4, 2023

Conversation

jsgoldstein
Copy link
Owner

Working on a second pass at adding better search for public + discoverable posts.

This is coming after these two reverts:

  1. Revert "fix up a bit how searchable_by works in the real world (#7)" #8
  2. Revert "Add new publicly_searchable attribute to status index (#6)" #9

…d to before adding any new tests (if I am doing that...) and actually implementing the search part of this
@jsgoldstein jsgoldstein merged commit b7d4c84 into jake_main Aug 4, 2023
@jsgoldstein jsgoldstein deleted the public_status_index branch August 4, 2023 15:05
ClearlyClaire pushed a commit that referenced this pull request Aug 23, 2023
* Add a new public status index

* Create an importer for the new index

* Try to add a vaccuum thing

* quick lint

* make sure that the settings are correct. TODO: add a test making sure the settings are set up correctly

* One more easy one...

* Hunt down all the status index usage except for the actual searching and the tests

* consolidate and clean up a bit

* forgot the end

* Add new test

* Move test to the right spot and try agian

* clean up the test

* use described_class instead and clean up the chewy fields a bit

* What happens if you change your discoverable attribute

* lint

* rename the file

* Just trying to make the build happy again...

* it helps when you know what your methods are called

* add an if here cause it seems a bit smarter

* too many blank lines...

* Seperate out into more than a single file

* Make the public index really public

* Add some new lines...

* Try to dumb down the tests again so that I can get them to pass....

* gosh so many rules

* annoying contrdictory rules...make a new method

* I don't think this was working correctly

* Add one more test and then I think I duplicated everything that I need to before adding any new tests (if I am doing that...) and actually implementing the search part of this

* Update the public status importer

* Try to do a better join...not sure that I really know what I'm doing at this point

* Get this working. see if we can make it better...

* Okay. I think this is the best I am going to do

* add some new tests for the workers

* Lint the tests and the files with them...

* I think this is actually more correct

* Add new test file for the new concern

* lint

* We need to override the chewy's strategy's callback so that if we have a status also try to write it to the public status. The chewy index will take care of the rest for us and figure out what should actually happen

* Single quotes

* Update the index the right way

* Get searching working...I think

* I think this is a more correct query
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.

1 participant