-
-
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
Implement json data generation for more generic tests. #13860
Conversation
/hold |
It's open for almost a month. If there are no objections, I will go ahead and merge.
|
I am working on it, it should be ready this week. Please do no merge
-
|
Again:
This PR contains basic support for implementing #14103. |
I am outside, I am using a different approach please give me the time to get back home and explain. |
@mshima, Thank you for waiting, you can see in my PR how your changes contradicts mine and I have been working on/with them for months:
Plus it breaks all the places where the fields need to be filtered out. |
😕, I am aware you are trying hard to implement this feature.
If you take a look at #13864, there is even working test cases for composite ids.
Inefficient 😕? Really? a string concatenation?
The PR wasn't merged for this reason, to let core developers to give their opinion. I feel you really should take into account JHipster is a team effort and we all want JHipster to be great.
So, if you want to ping them manually and anyone wants to give their opinion. But JHipster 7 timeline is closing, and once closed, those internal changes may be considered breaking changes they will have to be postponed to JHipster 8. |
@mshima You will have a PR with not eagerly calculated Ids this weak, please wait for it.
It does not work when you have a derivedId (OneToOne) with an entity that has a compositeKey (making both entities have a composite Id)
If you still don't agree please tell me and I will ping someone. EDIT: Also you said:
I have a blueprint maintained for years now with composite support, what I have been trying to do is rebase every time with a way you like. And now that I saw what you proposed in you PR, I am able to do that. Please check my new PR and let me know. EDIT: backend/java part with it's tests should be ready by tomorrow. |
@mshima so you think it's ok to discard what I said, don't wait to ask for someone else opinion and do whatever you want in the project ? You know that I am the one assigned to implement the primaryKey functionality, I have have been updating my PR each time you asked for a change and on top of all of that you are adding changes that breaks myPR every few days. |
Gentlemen, let me step in before we start throwing keyboards at each other, trust me the keyboards these days break too fast 😂 Now on a serious note, I think approaching this as multi step problem would be beneficial to everyone involved. I don't like composite IDs very much as I think they overcomplicate stuff and there is always simpler solutions, but thats just my opinion as I'm a fan of simple code. I see that there is interest in composite keys and you guys disagree on the approach. May I suggest you break this down to multiple PRs with below approach 1.) Move all changes which has nothing much to do with composite keys but are generic improvements into the first PR so that we can merge it for v7 |
thank you @deepu105 for your lighthearted comment and for intervening. The reason I asked for one of you to intervene though is this, and it goes beyond the feature and it's implementation : I feel it's very insensitive of him not to take my comments into account and merge just because his has the ability to do so. This is open source, we all do our best to have the best solution possible, and if someone raises a concern we should at least ask for a second opinion not ignore them and move forward. Also please do not drop this for v7 I have been working on this for month and I have a working solution: |
@yelhouti @mshima I'm pretty sure both of you want what is best for the project and yes things can get bit heated sometimes and thats normal as long as we keep cordial about it and can have a laugh later on the same. As an OSS community it is extremely important for us to feel welcomed and valued for our contributions as we do all this for free on our own time out of passion for OSS and the community. Lets forget what has already happened and lets see how we can move forward with this. Even though composite keys are not something I'm interested in, I'm willing to do the reviews and help you guys reach a compromise. Now as for this PR, which is merged, I dont see any huge issue and this doesnt look like it has much to do with composite key persé, so let me suggest the below to move forward unless you both are willing to contribute on a same PR
Is this agreeable to both of you? PS: Do not take these arguments and stuff too much to heart and do not generate any resentment for each other. Who knows you guys might end up as beer buddies. I have stepped on some of the core contributors toes a few times in the past and now we all drink beer and hang out when we see each other for JH conference so having good relationships in the community is definelty way more important then having perfect code. And if I may share my wisdom, there is no such thing as perfect code other wise we all will be out of work 😂 |
@deepu105 thanks.
Actually I don't care about composite IDs enough too, but I care about it been implemented right in jhipster.
I am suggesting this from the start.
The changes related to composite id is just some fixes in the primaryKey structure, which I'm the original author.
Since no core developer really care about composite ids, I thought let's treat it as a natural id and start to implement a feature that some core developer actually cares about. And is a littler less error prone. IMO we should:
@deepu105 you to go ahead and review #12819 like I did several times, but I would be concerned to merge a PR that touches too many things at once, even if it was ready. IMO the referred PR contains:
|
@mshima thanks for the explanation @yelhouti I tend to agree with @mshima on some of his concerns. Your PR (#12819) is huge and would take a lot of review effort, its seems like you are trying to do #7112 and #12707 in the same PR (Sorry if Im wrong as I didnt follow this close enough). I'm 100% against this even if one is not possible without the other, I know it might be easier to implement together but is definitely not easy to review/test so I suggest you split that PR into 3
Alos lets try not to do breaking changes unless its absolutely necessary as it would make upgrading even more difficult for end users. We can make consistency improvements in the next major version as well @DanielFran since you also did some reviews on the PR what is your take? |
@mshima Hello there, I understand you're not comfortable saying "let's merge it". What would make you more comfortable? More tests? If yes, of what kind? More reviews? |
Why is that a necessity. Filtering is not that widely used and Composite id is not gonna be used by majority of our users (we should still do simple IDs by default) so it is ok not to have all options working with it. We can enable/disable the option when other options are choosen. And then gradually you can add support for other options? I would say get this working for default options first and ship it. Then you can start making it work for other options |
@deepu105 I will try to answer/ask questions in the other issue, I will tag you there. |
Related to #7112 and #14103
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.