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

Add support to unidirectional relationships. #14461

Merged
merged 7 commits into from
Apr 1, 2021

Conversation

mshima
Copy link
Member

@mshima mshima commented Mar 25, 2021

Related to #13885, #14196 (comment)
Closes #13305.


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (bellow reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@mshima mshima requested a review from MathieuAA March 25, 2021 21:01
Copy link
Member

@MathieuAA MathieuAA left a comment

Choose a reason for hiding this comment

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

I don't understand why such an option is needed

generators/entity/index.js Outdated Show resolved Hide resolved
@@ -108,6 +108,10 @@ const defaultCommands = {
option: '--skip-user-management',
desc: 'Skip the user management module during app generation',
},
{
option: '--unidirectional-relationships',
Copy link
Member

Choose a reason for hiding this comment

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

this doesn't look like an option, what about --generate-unilateral-relationships ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't see the need for generate.

@@ -38,6 +38,7 @@ module.exports = {
* Converts a JDLObject to ready-to-be exported JSON entities.
* @param {Object} args - the configuration object, keys:
* @param {JDLObject} args.jdlObject - the JDLObject to convert to JSON
* @param {Boolean} [args.unidirectionalRelationships] - Whether to generate unidirectional relationships
Copy link
Member

Choose a reason for hiding this comment

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

see comment about the CLI option to update it

@Tcharl
Copy link
Contributor

Tcharl commented Mar 26, 2021

Isn't it unidirectional in the literature?

@MathieuAA
Copy link
Member

Yeah, I don't know why I've used unilateral. I was pretty tired I guess =P

@mshima
Copy link
Member Author

mshima commented Mar 26, 2021

I don't understand why such an option is needed

It should be the default behavior?

@MathieuAA
Copy link
Member

I don't have time to spend on this. Marcelo, as I trust you (as a team member and a collaborator), go ahead.

@mshima
Copy link
Member Author

mshima commented Apr 1, 2021

Thanks @MathieuAA.
@pascalgrimaud are you going to release today?
Otherwise I will go ahead and merge.

Thanks.

@pascalgrimaud
Copy link
Member

@mshima : no, finally I can't tonight. It will be for tomorrow

@pascalgrimaud
Copy link
Member

But go ahead and merge it. I trust you and the daily builds :-)

@mshima
Copy link
Member Author

mshima commented Apr 1, 2021

@pascalgrimaud ok thanks.
Exactly, this PR is unlikely to give problems, but I wanted the daily builds to be executed.

@mshima mshima merged commit d72f985 into jhipster:main Apr 1, 2021
@mshima mshima deleted the skip_ci-unidirectional branch April 1, 2021 18:06
@pascalgrimaud pascalgrimaud added this to the v7.0.1 milestone Apr 2, 2021
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.

Issue on Front side when using skipClient for some entities
4 participants