Repository navigation
test: added tests to verify jsonb operators in find options with Raw() - #11917
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 8e60809
Previous suggestionsSuggestions up to commit c876674
Suggestions up to commit 1df9c77
Suggestions up to commit ea076ab
Suggestions up to commit f44ee7b
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Code Review by Qodo (Alpha)(Review updated until commit ea076ab)
1. Brittle Entity Loading Pattern Reduces Extensibility
|
f44ee7b to
ea076ab
Compare
|
Persistent review updated to latest commit ea076ab |
|
@gioboa should I implement a fix like @BenjD90 wants if (replacementKeys.length > 0) {
statement = statement.replace(
new RegExp(
// Avoid a lookbehind here since it's not well supported
`([ =(]|^.{0})` + // any of ' =(' or start of line
// followed by our prefix, e.g. 'tablename.' or ''
`${
replaceAliasNamePrefixes
? "(" + replaceAliasNamePrefixes + ")"
: ""
}([^ =(),]+)` + // a possible property name: sequence of anything but ' =(),' FIX: HERE
// terminated by ' =),' or end of line
`(?=[ =),]|.{0}$)`,
"gm",
), |
|
Hmm but this is not really testing something in TypeORM, it's testing the implementation of that operator defined in the test. Or? Is the |
|
PR Code Suggestions ✨No code suggestions found for the PR. |
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewⓘ The new review experience is currently in Beta. Learn more Previous review resultsReview updated until commit 8e60809 Results up to commit c876674
1. Missing newline before test case
|
|
Persistent review updated to latest commit 1df9c77 |
This reverts commit c876674.
|
Persistent review updated to latest commit c876674 |
|
Persistent review updated to latest commit 8e60809 |
This confirms it's not testing anything in TypeORM 😛 |
typeorm#11917) Co-authored-by: gioboa <[email protected]>
Description of change
Added several tests to verify jsonb operators in the
find()andfindBy()methods using the Raw() function.Related issue: