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

Handle custom primary key names in entity filtering #13767

Merged
merged 9 commits into from
Jan 30, 2021

Conversation

gzsombor
Copy link
Member

@gzsombor gzsombor commented Jan 29, 2021

Fix #13695 : Handle custom primary key names in the filtering impleme…


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.

… implementation, and support UUID pk type too
Copy link
Member

@mshima mshima left a comment

Choose a reason for hiding this comment

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

To prevent regressions would be nice to add a copy of https://github.com/mshima/generator-jhipster/blob/main/test-integration/samples/jdl-entities/custom-id.jdl with filtering.

generators/entity/index.js Outdated Show resolved Hide resolved
Copy link
Member

@mshima mshima left a comment

Choose a reason for hiding this comment

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

LGTM

generators/entity/index.js Outdated Show resolved Hide resolved
generators/entity/index.js Outdated Show resolved Hide resolved
@mshima mshima merged commit 4822caf into jhipster:main Jan 30, 2021
@gzsombor gzsombor deleted the fix-13695 branch January 30, 2021 20:44
@gzsombor
Copy link
Member Author

@mshima thanks for the fixes and for the merge!

@pascalgrimaud pascalgrimaud added this to the v7.0.0-beta.2 milestone Feb 20, 2021
coderguy-tech pushed a commit to coderguy-tech/generator-jhipster that referenced this pull request Jun 1, 2021
* Fix jhipster#13695 : Handle custom primary key names in the filtering implementation, and support UUID pk type too

* Update generators/entity/index.js

Co-authored-by: Marcelo Shima <marceloshima@gmail.com>

* Convert Set to Array and add new entities for filtering

* Fix invalid-id selection for Strings

* Fix formatting

* Change to put the unescaped value

* Reduce entity’s name size

* Make sure we are not adding false to the set

* Lint fix

Co-authored-by: Marcelo Shima <marceloshima@gmail.com>
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.

Generated Query Services and Integration Tests do not use custom IDs given to Entites
3 participants