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

unflatten criteria class fixes: #13133 #14180

Closed
wants to merge 1 commit into from

Conversation

yelhouti
Copy link
Contributor

@yelhouti yelhouti commented Mar 5, 2021


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.

@yelhouti yelhouti force-pushed the unflatten-criteria branch 2 times, most recently from 06362dd to e465b3c Compare March 5, 2021 15:18
Specification<<%= asEntity('User') %>> specification = Specification.where(null);
if (criteria != null) {
if (criteria.getId() != null) {
specification = specification.and(build<%= (user.primaryKey.type === 'String' || user.primaryKey.type === 'UUID') ? 'String' : 'Range' %>Specification(criteria.getId(), <%= asEntity('User') %>_.id));
Copy link
Contributor

Choose a reason for hiding this comment

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

Use derived properties ? we're trying to ban equality checks in ejs templates

@Tcharl
Copy link
Contributor

Tcharl commented Aug 10, 2021

I never used jhipster criteria, who can review this one?

@github-actions github-actions bot removed the Stale label Aug 15, 2021
@github-actions github-actions bot added the Stale label Sep 14, 2021
@github-actions github-actions bot closed this Sep 22, 2021
@yelhouti
Copy link
Contributor Author

/reopen ?

@pascalgrimaud pascalgrimaud added this to the 7.3.0 milestone Sep 24, 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.

3 participants