Skip to content

fix(sequelize): add support for extended operators in sequelize #10284

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

Merged
merged 4 commits into from
Jan 18, 2024

Conversation

yeshamavani
Copy link
Contributor

@yeshamavani yeshamavani commented Jan 5, 2024

postgres supports extended operators but missing in sequelize

fix #10272

Please provide a high-level description of the changes made by your pull request.
postgres supports extended operators but missing in sequelize
added the supported operators
also the array field was by default given integer[] type even if it was string[].
added to condition to check before giving a default value.

Include references to all related GitHub issues and other pull requests, for example:

Fixes #10272

Example app to test - https://github.com/yeshamavani/sequelize

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

postgres supports extended operators but missing in sequelize

fix loopbackio#10272

Signed-off-by: Yesha Mavani <[email protected]>
@yeshamavani yeshamavani requested a review from samarpanB as a code owner January 5, 2024 13:21
@coveralls
Copy link

coveralls commented Jan 5, 2024

Pull Request Test Coverage Report for Build 7502386386

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 57.105%

Totals Coverage Status
Change from base Build 7357753483: 0.0%
Covered Lines: 9563
Relevant Lines: 12457

💛 - Coveralls

Copy link
Contributor

@samarpanB samarpanB left a comment

Choose a reason for hiding this comment

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

can you please add a test case to it ?

added test cases for same

fix loopbackio#10272

Signed-off-by: Yesha Mavani <[email protected]>
@yeshamavani
Copy link
Contributor Author

can you please add a test case to it ?

added..

},
})
async getRolesByDesc(): Promise<Roles[]> {
return this.roleRepository.find({
Copy link
Contributor

Choose a reason for hiding this comment

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

Its better to pass this as where clause from test case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@samarpanB samarpanB merged commit 521c732 into loopbackio:master Jan 18, 2024
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.

[@loopback/sequelize] contains & match (extendedOperators) are not working
3 participants