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

Contextual websearch on tags and categories. DDFFORM-788 #1524

Merged
merged 13 commits into from
Oct 1, 2024

Conversation

rasben
Copy link
Contributor

@rasben rasben commented Aug 30, 2024

Link to issue

https://reload.atlassian.net/browse/DDFFORM-788


You can test it by going to an article or event, and click on either a tag or category.
It should lead you to the term page, where related content is shown.

Example:

https://varnish.pr-1524.dpl-cms.dplplat01.dpl.reload.dk/hovedbiblioteket/arrangementer/vi-anbefaler/fars-legestue/2034-01-01
Screenshot 2024-09-12 at 10 34 53

Screenshot 2024-09-12 at 10 34 57
  • Link tags and categories on full displays, to term pages. DDFFORM-788

  • Aggregrate event+content tags+categories in search API. DDFFORM-788

This allows us to create facets and filters, that look both in events and contents.

  • Remove core view, showed on term pages. DDFFORM-788

This is an RSS feed that we do not want.

  • Contextual websearch on tags and categories. DDFFORM-788

Embedding a contextualized version of the editorial search view directly on 'Categories' and 'Tags' individual term pages.
This allows the user to find content that is associated with this term.

@github-actions github-actions bot temporarily deployed to pr-1524 August 30, 2024 08:39 Destroyed
@rasben rasben force-pushed the DDFFORM-788_tag-search branch from 481ddae to a20f928 Compare September 5, 2024 07:24
@github-actions github-actions bot temporarily deployed to pr-1524 September 5, 2024 07:24 Destroyed
@rasben rasben force-pushed the DDFFORM-788_tag-search branch from a20f928 to 19c1b6f Compare September 9, 2024 09:28
@github-actions github-actions bot temporarily deployed to pr-1524 September 9, 2024 09:28 Destroyed
@rasben rasben force-pushed the DDFFORM-788_tag-search branch from 19c1b6f to 8d5fac1 Compare September 12, 2024 08:31
@github-actions github-actions bot temporarily deployed to pr-1524 September 12, 2024 08:31 Destroyed
@rasben rasben force-pushed the DDFFORM-788_tag-search branch from 8d5fac1 to 341bd86 Compare September 12, 2024 08:41
@github-actions github-actions bot temporarily deployed to pr-1524 September 12, 2024 08:41 Destroyed
@rasben
Copy link
Contributor Author

rasben commented Sep 12, 2024

I know that the config test is failing, but please ignore that - I have no idea why it's happening, but I hope to find a solution for it eventually.

Copy link
Contributor

@kasperbirch1 kasperbirch1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand if this should be addressed in a separate ticket, but there shouldn't be an underline beneath the link in the tag. This should be corrected in the design system.

Overall, great work! 👍

@kasperbirch1 kasperbirch1 removed their assignment Sep 20, 2024
Copy link
Contributor

@kasperg kasperg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record: The Drupal Config check fails. This should not be merged until this is addressed. If we do not address it the problem will propagate to all other future work.

@rasben rasben force-pushed the DDFFORM-788_tag-search branch from 341bd86 to d946b92 Compare September 30, 2024 13:34
@github-actions github-actions bot temporarily deployed to pr-1524 September 30, 2024 13:34 Destroyed
rasben added 2 commits October 1, 2024 09:14
Embedding a contextualized version of the editorial search view directly
on 'Categories' and 'Tags' individual term pages.
This allows the user to find content that is associated with this term.
@rasben rasben force-pushed the DDFFORM-788_tag-search branch from d946b92 to 6ac376f Compare October 1, 2024 07:15
@github-actions github-actions bot temporarily deployed to pr-1524 October 1, 2024 07:15 Destroyed
For whatever reason these surface when running the following in
GitHub Actions:

- task dev:reset
- task dev:cli -- drush cex

They also turn up when running the same from a clean install locally
e.g. when running git clean -d -f -x before.
@github-actions github-actions bot temporarily deployed to pr-1524 October 1, 2024 09:21 Destroyed
@github-actions github-actions bot temporarily deployed to pr-1524 October 1, 2024 10:25 Destroyed
@github-actions github-actions bot temporarily deployed to pr-1524 October 1, 2024 11:53 Destroyed
rasben added 2 commits October 1, 2024 14:04
The merge request mentioned in the issue (3425506) does not apply.
This is a quickfix - once we update search API module, we can remove
this patch.
@github-actions github-actions bot temporarily deployed to pr-1524 October 1, 2024 12:11 Destroyed
Currently we have newlines set as separators for aggregated fields
for tags and categories in the combined content and events index.

For whatever reason this adds even more newlines for the separator
when configuration is exported again.

It turns out the separator is only used for the "concatenation"
aggregation type. We use the "union" aggregation type. With this in
mind the separator value is actually not used for our use case.

To work around the issue we change the separator value to a simple
string with a value showing that it is not in used.

See https://www.drupal.org/project/search_api/issues/3425506#comment-15490163
…_tag-search-config-issue

Fix newline issue as separator for aggregated fields in combined index
@github-actions github-actions bot temporarily deployed to pr-1524 October 1, 2024 18:06 Destroyed
It turns out the problem is not addressed with the change in the patch.
Consequently we might as well not add it. This way we avoid adding extra work
when we need to update the Search API module.

This reverts commit a4ca1e3.
@github-actions github-actions bot temporarily deployed to pr-1524 October 1, 2024 18:26 Destroyed
@kasperg kasperg merged commit d74aebe into develop Oct 1, 2024
19 checks passed
@kasperg kasperg deleted the DDFFORM-788_tag-search branch October 1, 2024 18:36
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.

4 participants