Search results aren't shown with Angular and Elasticsearch #21894
Labels
$$ bug-bounty $$
https://www.jhipster.tech/bug-bounties/
theme: angular
$300
https://www.jhipster.tech/bug-bounties/
Milestone
Overview of the issue
I'm in the process of trying to deploy 21-Points Health to production. As part of the upgrade, I used the JHipster reindexer module to sync database data with Elasticsearch. It worked great after fixing some imports.
That's when I noticed that if I search for a weight, it doesn’t filter the results. However, if I refresh my screen, it does. I’ve attached a video that shows this behavior.
search.mp4
Motivation for or Use Case
Search results return properly on the backend; they just aren't rendered correctly in the Angular UI. I used Chrome Developer tools to verify the XHR request returned the correct results.
Reproduce the error
Clone 21-points and re-created it using the
main
branch.Start the app, add several weight entries, or use the reindexer module to integrate Faker data with Elasticsearch. You'll see that the results are not reflected in the UI, but if you refresh your screen, the results will be filtered properly.
Suggest a Fix
JHipster Version(s)
7.9.3 and
main
branch.It is a regression since JHipster 5.
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "17.0.6" 2023-01-17
OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10)
OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode)
git version 2.39.2 (Apple Git-143)
node: v18.13.0
npm: 9.6.5
Docker version 20.10.23, build 7155243
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
The text was updated successfully, but these errors were encountered: