Skip to content

Deprecate FinderIndexerHelper::getContentPath()#20934

Merged
mbabker merged 1 commit intojoomla:3.9-devfrom
Hackwar:patch-27
Jun 29, 2018
Merged

Deprecate FinderIndexerHelper::getContentPath()#20934
mbabker merged 1 commit intojoomla:3.9-devfrom
Hackwar:patch-27

Conversation

@Hackwar
Copy link
Copy Markdown
Member

@Hackwar Hackwar commented Jun 29, 2018

This is a PR to enable #20571.

FinderIndexerHelper::getContentPath() is supposed to create the SEFed URL of the content item while indexing the content item. However, that doesn't really work for several reasons. First of all, there are component routers out there, that fail in the wrong circumstances, like being run in the backend. Then there are the issues of permissions. The user running the indexer (either by batch indexing in the backend or by saving a content item) in general has other permissions than a guest user and thus might see menu items that the guest user does not see. Last but not least, Smart Search does not really know anything about the routing system and thus also does not know when to update that data, thus we already have the wrong data in the DB when a user creates an article and then links it via a menu item.

Long story short: We have to create the right route on runtime and thus can't pre-compute this. That is why we haven't used the data from that in com_finder ever. Which is why this method is being deprecated here.

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.

3 participants