Expected:
- Create a list & mark it as published
- Visit /published-lists and confirm list is there
- Edit list and remove published mark
- Visit /published-lists and confirm list is not there
It may have been me doing really strange things (using admin rights to edit another user's list), but I had step 4 fail by continuing to show the list. I "fixed" this in prod by recreating the search index, but obviously this is not an ideal solution. I have a hunch that we have setup the search index to only show published lists (which is correct behavior) but that this same setup prevents the index from updating when a list is marked as private again because the updated record no longer matches the query of lists to index.