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

Fix/fields #326

Open
wants to merge 3 commits into
base: integration
Choose a base branch
from
Open

Fix/fields #326

wants to merge 3 commits into from

Conversation

chuanlin2018
Copy link
Collaborator

Hi Mehdi, I think I fixed the multiple requests issue. Please verify.
You can either merge it into integration or your fix/unnecessary-core-js branch if you confirm it's fixed.
Thanks.
Chuan

@shiftmed
Copy link
Contributor

Hello Chuan,

On the home page, the issue seems to be fixed. Each refresh of the app correctly requests the fields endpoint a single time.

On the search page, it appears to be trickier. On the first search (i.e. home page => type into search box => launch search), it triggers an additional /fields request (which I suppose is working as intended); however if I now refresh that same page with the results already loaded (i.e. "launch" the app from the URL), 3 requests to the fields endpoint are triggered as displayed on the screenshot below.

fields-bug

@chuanlin2018
Copy link
Collaborator Author

chuanlin2018 commented Dec 18, 2024 via email

@chuanlin2018
Copy link
Collaborator Author

I think it's fixed this time...

@shiftmed
Copy link
Contributor

shiftmed commented Jan 7, 2025

The fields endpoint now successfully only gets queried once.

There is however a new unexpected behavior during filtering:

  • Filtering does not display the "check mark" anymore when selecting a filter,
  • Clicking on a filter a second time does not "toggle off" the filter

To replicate:

  • Search for "star",
  • Click on "Research Topics" in the filters section

Thanks @chuanlin2018!

@chuanlin2018
Copy link
Collaborator Author

Ah! I will take a look...

@chuanlin2018
Copy link
Collaborator Author

Screenshot 2025-01-10 at 3 01 57 PM
Worked for me... I was able to check and uncheck any box.

@shiftmed
Copy link
Contributor

Thanks @chuanlin2018. I am investigating this; it seems to be a bug on my end related to a mismatch between Angular 18 and PrimeNG.

This PR is passing.

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