Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
EZP-25792: Deleted location don't affect subitems #46
The problem is that when we delete location we also want to delete all related sub location with related content, but if there is a content that have still another existing location that is out of the delete location subtree we just need to reindex this location instead of delete it.
The solution is to find first which location need to be reindexed and with then need to be deleted with the content. As solr is handling location that are within content block we need to reindex or delete content index data.
I think I solved most issues for escaping and preparing query for deleted and update for solr documents.
So I have the good solr documnets in the solr engine but now when I use the second search just for an search for content with specific Id.
I recieve this kind of query:
Instead of this kind of query, used for the first search:
So do anyone have any clues what is the reason? I just diagnosed it and any kind of information in this area will be very helpfull.
I found what are those additional elements in my search query.
Because we are dealing there with users section we may destroy credentials if we touch this section, and I did this here.
So I will create new elements in the content area to be sure to test just the fixed behavior and not to deal with permssions.
Currently i have just this fixtures:
What is the best approach to add here elements?
referenced this pull request
May 30, 2016
This question is actually related more to the publish-kernel because this is the place where our integration test lives.
I need to prepare a whole new structure of content with items and subitems and with additional location.
I create a container with sub items and for one of them I add multiple locations.
So the main question now is, can this stay like this or is there any other way to do those fixtures?
Why the final solution is different that the previous ?
Because when we need the
Most risky places: