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

[5.0] Smart Search: Fixing taxonomy filter handling #39751

Merged
merged 3 commits into from
May 30, 2023

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Jan 30, 2023

Pull Request for Issue #39718 .

Summary of Changes

When I refactored the taxonomies to be a nested set, I overlooked this part. This means that nested taxonomies in filters don't work.

Testing Instructions

  1. Create an article in a category which is at least on the second level.
  2. Create a filter which only searches in that articles parent category.
  3. Go to the frontend and search for a word in that article. You will get the article as result.
  4. Add &f=[filter-id] to the URL to only show results from our category.
  5. Notice that you get no result at all!
  6. Apply changes.
  7. Only the article appears again.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@crystalenka can you check if this fixes your issue?

@crystalenka
Copy link
Member

Thank you!! Will test shortly.

@crystalenka
Copy link
Member

I have tested this item 🔴 unsuccessfully on 6647838

Unfortunately this does not fix the problem in a multilingual environment. :(


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39751.

@EJBJane
Copy link

EJBJane commented Feb 10, 2023

Looks good but it doesnt work. Give it a try. Search for "ricotta" in for example Pasta & Risotto recipes.
See as example: https://www.dolcevia.com/nl/italiaanse-recepten/pasta-gnocchi-risotto/4501-cannelloni-van-grano-arso-met-ricotta-en-spek-in-honingsaus
Search is on the right / sidebar.

@Hackwar
Copy link
Member Author

Hackwar commented Feb 16, 2023

@EJBJane without having more knowledge about your setup, it is difficult to judge your report. Yes, you don't get a result when searching for ricotta, but I also don't know what you have in the filter that is activated on your search. If you want me to debug that, please contact me on the Joomla Mattermost.

@EJBJane
Copy link

EJBJane commented Feb 16, 2023

@EJBJane without having more knowledge about your setup, it is difficult to judge your report. Yes, you don't get a result when searching for ricotta, but I also don't know what you have in the filter that is activated on your search. If you want me to debug that, please contact me on the Joomla Mattermost.

I have to take this back, it was my fault, there was accidently an author selected for the results. This is why the search results didnt work, because there was no recipe with that author. I'm sorry!

@EJBJane
Copy link

EJBJane commented Feb 16, 2023

It thus does work for me.

@Hackwar Hackwar added the Small A PR which only has a small change label Feb 25, 2023
@Hackwar Hackwar changed the title [4.2] Finder: Fixing taxonomy filter handling [4.2] Smart Search: Fixing taxonomy filter handling Mar 3, 2023
@Hackwar Hackwar changed the base branch from 4.2-dev to 4.3-dev March 5, 2023 19:23
@Hackwar Hackwar changed the base branch from 4.3-dev to 4.2-dev March 5, 2023 19:24
@Hackwar
Copy link
Member Author

Hackwar commented Mar 5, 2023

I'm sorry, I accidently changed the base branch to 4.3-dev and then updated the branch with the latest changes. I actually didn't want to do that. The forced push only restores the previous state. So, we only need one more test to get this fix on the road.

@Quy Quy removed the PR-4.3-dev label Mar 6, 2023
@Hackwar Hackwar changed the base branch from 4.2-dev to 4.3-dev March 19, 2023 19:31
@Hackwar Hackwar changed the title [4.2] Smart Search: Fixing taxonomy filter handling [4.3] Smart Search: Fixing taxonomy filter handling Mar 19, 2023
@Hackwar
Copy link
Member Author

Hackwar commented Mar 19, 2023

Since there wont be any more patch releases in 4.2, I'm moving this over to 4.3-dev.

@Quy Quy removed the PR-4.2-dev label Mar 19, 2023
@crystalenka
Copy link
Member

I have tested this item ✅ successfully on 6245d12

This fixed it in multilingual along with the second PR you linked. Thank you!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39751.

@Quy Quy added the PR-4.2-dev label Mar 20, 2023
@Quy
Copy link
Contributor

Quy commented Mar 20, 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39751.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 20, 2023
@Hackwar Hackwar added the bug label Apr 7, 2023
@Hackwar Hackwar closed this Apr 18, 2023
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Apr 18, 2023
@Hackwar Hackwar reopened this Apr 18, 2023
@Hackwar Hackwar changed the base branch from 4.3-dev to 5.0-dev April 18, 2023 12:53
@Hackwar Hackwar changed the title [4.3] Smart Search: Fixing taxonomy filter handling [5.0] Smart Search: Fixing taxonomy filter handling Apr 18, 2023
@richard67
Copy link
Member

Does this also fix issue #40495 ?

@Hackwar
Copy link
Member Author

Hackwar commented May 9, 2023

Yes

@crystalenka
Copy link
Member

Hi @Hackwar ! Is there a reason this won't go into 4.3? I ran into this issue once again on a client site so would be really nice for the bug fix to go in sooner rather than later.

@HLeithner HLeithner merged commit 5a25f2c into joomla:5.0-dev May 30, 2023
@HLeithner
Copy link
Member

thanks

@crystalenka
Copy link
Member

I guess that answers that it definitely won't go in earlier, but could either of you please help me understand why? This is a bug and filters straight up don't work without the fix.

@HLeithner
Copy link
Member

No that's not the answer and completely independent, this fix can still be back-ported @sdwjoomla and @obuisard can do this or ask for a pr.

@Hackwar Hackwar deleted the 4.2-finder-filters branch May 30, 2023 12:30
@Hackwar
Copy link
Member Author

Hackwar commented May 30, 2023

The PR got a RTC label over 2 months ago and after a month of no activity from the maintainers I decided to just switch all my PRs to 5.0 in the hopes that they will at least be merged then, especially since I got messages that my PRs don't have a high chance of being merged into 4.x. So instead of wasting my time by rebasing it to 4.4 and then to 5.0, I skipped one step. It's already enough that such a fix had to be rebased from 4.2 to 4.3...

@obuisard
Copy link
Contributor

Ok, this PR lost the RTC label and therefore got overlooked and I do apologize for it Hannes @Hackwar. It is indeed a bug that should be fixed in 4.3 in our opinion. I will backport the changes so you don't have to go through this again.

obuisard added a commit to obuisard/joomla-cms that referenced this pull request May 31, 2023
join update to backport PR joomla#39751
@artur-stepien
Copy link
Contributor

Hello. I would like to ask if this will come to 4.3 at all?

@Quy
Copy link
Contributor

Quy commented Oct 12, 2023

Yes in 4.3.5. See #40687.

@artur-stepien
Copy link
Contributor

Yes in 4.3.5. See #40687.

Thanks for the info.

@richard67
Copy link
Member

Yes in 4.3.5. See #40687.

There will not be a 4.3.5. it will be 4.4.0 stable, release is Tuesday next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug PR-5.0-dev Small A PR which only has a small change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants