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

Relationships to User are saved in a microservice architecture, but not rendered #19399

Closed
mraible opened this issue Aug 11, 2022 · 8 comments
Closed
Labels
area: triage $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ theme: microservice $300 https://www.jhipster.tech/bug-bounties/
Milestone

Comments

@mraible
Copy link
Contributor

mraible commented Aug 11, 2022

Overview of the issue

Today, I tried my original reactive microservices example from this blog post and everything works as expected. The example is created with v7.0.1 and you can save a blog entity with or without a user and it all works.

Screen Shot 2022-08-10 at 23 42 49

Screen Shot 2022-08-10 at 23 42 53

Screen Shot 2022-08-10 at 23 43 04

If you create this same example with 7.9.2, it saves the relationship to the user, but it does not render it on the list or view screens. Furthermore, Angular does not render the user's login on the list screen.

For more information, see #19342 (comment) and subsequent comments.

Motivation for or Use Case

This functionality existed in v7.0.1 and therefore should be supported in all 7.x releases.

Reproduce the error
jhipster jdl reactive-ms

Then, start all the Docker containers for the gateway and start it. Start Neo4j for the blog app and start it as well. Log in and navigate to adding a new blog. After you add a new one, you'll see it rendered on the list screen. However, if you navigate to the view or edit screens, the user's login is not displayed.

JHipster Version(s)

7.9.2

JHipster configuration

https://github.com/jhipster/jdl-samples/blob/main/reactive-ms.jdl

@mraible mraible added theme: microservice $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $300 https://www.jhipster.tech/bug-bounties/ labels Aug 11, 2022
@mshima
Copy link
Member

mshima commented Aug 11, 2022

That's odd, I will take a look.

@mshima
Copy link
Member

mshima commented Aug 11, 2022

@mraible this happens only with Neo4j?

@mraible
Copy link
Contributor Author

mraible commented Aug 11, 2022

It works with 7.0.1 and Neo4J. I tried using PostgreSQL for both gateway and blog, but couldn't get it to work.

@mshima
Copy link
Member

mshima commented Aug 12, 2022

@mraible #19402 fixes the problem for Neo4j, fill free to merge it.
Postgres will be more complex. I’ve already done some work on it, but in the process I will do some cleanup at the templates and split into another PR.

@mraible
Copy link
Contributor Author

mraible commented Aug 12, 2022

@mshima I can confirm this particular issue is fixed by your PR! I confirmed with Vue and Angular. Feel free to close it, or leave it open for PostgreSQL.

@mraible mraible added this to the 7.9.3 milestone Aug 19, 2022
@mshima
Copy link
Member

mshima commented Aug 19, 2022

Closing since the bug is fixed. I'm planing a follow-up PR targeting v8.

@mshima mshima closed this as completed Aug 19, 2022
@mshima
Copy link
Member

mshima commented Dec 12, 2022

@DanielFran
Copy link
Member

@mshima approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: triage $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ theme: microservice $300 https://www.jhipster.tech/bug-bounties/
Projects
None yet
Development

No branches or pull requests

3 participants