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

Search facets not working #3716

Open
JanUlrichR opened this issue Mar 20, 2024 · 3 comments
Open

Search facets not working #3716

JanUlrichR opened this issue Mar 20, 2024 · 3 comments

Comments

@JanUlrichR
Copy link

JanUlrichR commented Mar 20, 2024

Describe the bug
In the Search the facets are not working properly. This is probably due to the error I can see in the console:

10:49:00.343 ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'true'. Current value: 'false'. Find more at https://angular.io/errors/NG0100
    Angular 4
    SearchFacetChipTabbedComponent_Template adf-content-services.mjs:103
    Angular 41
    RxJS 5
    Angular 12
core.mjs:7640:22
    Angular 13
    RxJS 5
    Angular 12

I am not quite sure in which repo this bug belongs. Please let me know if there is a fix or something I can do to help fixing this problem.
As for as I could see this problem is also present in later versions of the Content App

Environment
ALFRESCO_CE_TAG=7.4.1
SEARCH_CE_TAG=2.0.8
SHARE_TAG=7.4.1
ACA_TAG=4.1.0
POSTGRES_TAG=14.4
MARIADB_TAG=10.5
TRANSFORM_ENGINE_TAG=4.0.0
ACTIVEMQ_TAG=5.17.1-jre11-rockylinux8

To Reproduce
Steps to reproduce the behavior:

  1. Install version for ACS Version 7.4 with https://github.com/alfresco/alfresco-docker-installer
  2. Search for files such that some are shown
  3. Click on some Facet in Search
  4. See no options available and error in the console

Expected behavior
The Facets providing filter options for the results of the search

Screenshots
image
image

Desktop (please complete the following information):

  • OS: linux
  • Browser: firefox
  • Version 123
@MichalKinas
Copy link
Contributor

@JanUlrichR I think the error itself should not affect the way facets work, facet expanded in the screenshot is configured to use new component replacing the old approach with checkboxes to tick. In this case to see the options to select you simply need to type any letter, if there will be a match the results will be shown like in this screenshot:
Zrzut ekranu 2024-04-3 o 19 25 11

Please verify if the results will be visible after typing something in your case, if it still won't work please let me know.

@JanUlrichR
Copy link
Author

Hey,
thanks for your response. This indeed works. However, that kind of visualisation was unexpected for me. We could fix it by changing the config for that to again show the different buckets.

@MichalKinas
Copy link
Contributor

This is the new design proposed by our UX team as part of Advanced Search feature, right now when both creator and modifier facets are present they're automatically merged into people facet by default and this will not change. If this visualisation doesn't work for you we can raise a feature request to make this merge optional via some additional config param, then if enabled those will be displayed as they used to be but by default it will stay as it is now. Does that solution work for you?

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

No branches or pull requests

2 participants