-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Relationship with Authority - tests... #22105
Relationship with Authority - tests... #22105
Conversation
Failure is related to snapshots only. |
Mh... true, one of the Snapshots was incorrectly set up. Still it won't work unfortunately. I'd try to look into it next week unless you are faster with that and want to do that by yourself ;) |
132d709
to
82c5cb0
Compare
82c5cb0
to
f53d9da
Compare
@OmarHawk Can you please confirm if everything has been fixed? |
I'll rebase on Thursday and let the tests (which is the only thing until now in this pull request) run again. |
It's needed to add this for Authority:
|
f53d9da
to
4ae9c02
Compare
This is then really only about having it declared and then putting it like that? generator-jhipster/generators/bootstrap-application-base/generator.mts Lines 200 to 212 in cc79505
The rest of the User entity stuff is also happening somewhere else... I wonder, why the User entity was not "simply" ;-) declared as "actual" jdl String and merged with the user defined jdl (if existing), so that it would be treated just like any other entity and could then be used as such without special logic or requirement to use "with builtInEntity" - and without having special / kind of duplicated logic/templates in a few places... |
Yes, should be.
JDL does very few checks now. Consistency checks is one of them. You cannot have a relationship without both sides Entities. Declaring User entity instead of
User template is separate. So any additional field or ownerSide relationship are silently ignored. Generating User using common templates and making it customizable is doable. About all existing logic, we have a lot of legacy code that are slowly been cleaned up. |
4ae9c02
to
20bcc66
Compare
whether there's a bug
20bcc66
to
70b92f3
Compare
whether there's a problem to have a ManyToMany relationship with Authority (similar as User) using the new
with builtInEntity
#22106
Please make sure the below checklist is followed for Pull Requests.
When you are still working on the PR, consider converting it to Draft (below reviewers) and adding
skip-ci
label, you can still see CI build result at your branch.