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

[ACS-9010] Loading spinner is not shown on search results page when filtering for files or folders #10434

Conversation

dominikiwanekhyland
Copy link
Contributor

@dominikiwanekhyland dominikiwanekhyland commented Nov 27, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)
https://hyland.atlassian.net/browse/ACS-9010

What is the new behaviour?

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@dominikiwanekhyland dominikiwanekhyland changed the title [ACS-8898] Empty context menu on multi-selected libraries [ACS-9010] Loading spinner is not shown on search results page when filtering for files or folders Nov 27, 2024
@dominikiwanekhyland dominikiwanekhyland force-pushed the ACS-8898-empty-context-menu-on-multi-selected-libraries branch from 432f609 to cf37315 Compare November 27, 2024 11:59
@@ -596,6 +596,7 @@ export abstract class BaseQueryBuilderService {
* @param searchUrl search url to navigate to
*/
async navigateToSearch(query: string, searchUrl: string) {
this.update();
Copy link
Contributor

Choose a reason for hiding this comment

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

This line was previously here but I removed it as it was introducing another bug, with it the search execution will be called twice causing some errors in various situations, for example if you search for 'test' you will get the results but then after searching for zxcv even though you should not get any results you will get the 'old' search results from previous query, that's why I think we need to find some other solution for this bug

@@ -68,8 +68,6 @@ export class SearchFacetFiltersService {
this.responseFacets = null;
});

this.queryBuilder.updated.pipe(takeUntilDestroyed()).subscribe((query) => this.queryBuilder.execute(true, query));
Copy link
Contributor

Choose a reason for hiding this comment

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

With this change when you change the state of any filter and click apply it won't trigger any search request

@dominikiwanekhyland dominikiwanekhyland force-pushed the ACS-8898-empty-context-menu-on-multi-selected-libraries branch from e9f464d to 12c37b8 Compare November 27, 2024 14:33
@dominikiwanekhyland
Copy link
Contributor Author

Alfresco/alfresco-content-app#4263

requrires ACA changes

@dominikiwanekhyland dominikiwanekhyland merged commit 5461bed into develop Nov 27, 2024
17 checks passed
@dominikiwanekhyland dominikiwanekhyland deleted the ACS-8898-empty-context-menu-on-multi-selected-libraries branch November 27, 2024 17:41
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