Skip to content

Fix for search facet filters disappear on MyDSpace#4162

Closed
FrancescoMolinaro wants to merge 3 commits intoDSpace:dspace-7_xfrom
4Science:task/dspace-7_x/DSC-2302
Closed

Fix for search facet filters disappear on MyDSpace#4162
FrancescoMolinaro wants to merge 3 commits intoDSpace:dspace-7_xfrom
4Science:task/dspace-7_x/DSC-2302

Conversation

@FrancescoMolinaro
Copy link
Copy Markdown
Contributor

References

Fixes issue #4097

Description

Fixed visibility computation for filters' skeleton loader

Instructions for Reviewers

The filters should not hang in a loading status indipendently from network errors or after switching from a scope to another.

List of changes in this PR:

Adapted logic to compute wheter a filter is visible or not.

To test the fix switch between configurations in MyDspace page, the filters shouldn't hang in a loading state.
(currently you can reproduce the bug on https://demo.dspace.org/ by switching configuration multiple times)

Checklist

This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!

  • My PR is created against the main branch of code (unless it is a backport or is fixing an issue specific to an older branch).
  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • My PR passes ESLint validation using npm run lint
  • My PR doesn't introduce circular dependencies (verified via npm run check-circ-deps)
  • My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • My PR aligns with Accessibility guidelines if it makes changes to the user interface.
  • My PR uses i18n (internationalization) keys instead of hardcoded English text, to allow for translations.
  • My PR includes details on how to test it. I've provided clear instructions to reviewers on how to successfully test this fix or feature.
  • If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
  • If my PR fixes an issue ticket, I've linked them together.

@ovali
Copy link
Copy Markdown

ovali commented Apr 10, 2025

I tested this and i am sorry to say: in my 7.6.3 test installation it does not work.
It does not solve the skeleton filter problem on mydspace page and here it brings also back the search problem that has been closed with #4053.

@@ -1,7 +1,17 @@
import { Component, Inject, Input, OnDestroy, OnInit } from '@angular/core';
import {
AfterViewChecked,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@FrancescoMolinaro , AfterViewChecked is not used in this component.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @saschaszott , thanks for the catch and sorry was a leftover from the refactoring, should be ok now.

@FrancescoMolinaro
Copy link
Copy Markdown
Contributor Author

FrancescoMolinaro commented Apr 10, 2025

Hi @ovali , thanks for the feedback, unfortunately I can't reproduce the issue, I am using this branch with https://demo.dspace.org/ as rest:

myDspace.webm

Can you please provide more info on your instances or peraphs a video of the issue?

Thanks in advance

@ovali
Copy link
Copy Markdown

ovali commented Apr 10, 2025

I am using 7.6.3 rest backend. Why you are using demo.dspace.org ? Isnt this 8.1 branch ?

@FrancescoMolinaro
Copy link
Copy Markdown
Contributor Author

Hi @ovali , yes is the 8.x branch my bad, I will try to reproduce the issue with 7.6.3 locally and come back asap.

@ovali
Copy link
Copy Markdown

ovali commented Apr 10, 2025

I also found out : The behaviour seems to be different if you have no workflow tasks or no publications.

@tdonohue tdonohue added bug 1 APPROVAL pull request only requires a single approval to merge labels Apr 10, 2025
@tdonohue tdonohue changed the title Task/dspace 7 x/dsc 2302 Fix for search facet filters disappear on MyDSpace Apr 10, 2025
@tdonohue tdonohue moved this to 🙋 Needs Reviewers Assigned in DSpace 9.0 Release Apr 10, 2025
@tdonohue tdonohue added port to main This PR needs to be ported to `main` branch for the next major release port to dspace-8_x This PR needs to be ported to `dspace-8_x` branch for next bug-fix release labels Apr 10, 2025
@tdonohue
Copy link
Copy Markdown
Member

@FrancescoMolinaro : How does this PR differ from #4121? I'm a bit confused now because we have two alternative fixes. Previously we had #4121, but it appears you've taken a different approach. Have you reviewed/tested the work already done in #4121?

@FrancescoMolinaro
Copy link
Copy Markdown
Contributor Author

Hi @tdonohue thanks for the info, sorry I didn't see there was already a PR for the fix, I will check it asap and review it, if everything is ok I am going to decline this PR.

@FrancescoMolinaro
Copy link
Copy Markdown
Contributor Author

Hi @tdonohue , I confirm we can close this in favor of #4121.
I left also a review and generally the PR looks good.
Thanks again for the info!

@github-project-automation github-project-automation bot moved this from 🙋 Needs Reviewers Assigned to ✅ Done in DSpace 9.0 Release Apr 10, 2025
@tdonohue tdonohue removed port to main This PR needs to be ported to `main` branch for the next major release port to dspace-8_x This PR needs to be ported to `dspace-8_x` branch for next bug-fix release labels May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 APPROVAL pull request only requires a single approval to merge bug component: MyDSpace

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants