-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
FIX: TYPEORM postgresql (...Emails) syntax bad handling in #1205 #1279
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Tests are failing, these are due to a regression already present on main.
That's another subject, but what worries me is that it may be a shadow upgrade of some component that breaks stuffs. The first commit which shows the problem is unrelated to the code:
0b0ca2c
Anyway, that looks good to me!
Hi @hexaltation, Can you add a test case to the ./test/gen-server/lib/homedb/UsersManager.ts ? |
Hi @berhalak
The problem is that we may add the test case, Sqlite will recognize the I attempted to make the tests run using Postgresql in #1278 but many tests already fail. |
Hello @berhalak,
Yes I can do it, nevertheless as @fflorent says the test will never fail as long as the CI only tests sqlite. |
And I realize that the new function getUsersByLogins() is never tested. |
Yes, our internal CI should run this test against postgres. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments, globally LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
b53dff4
to
d80f8b8
Compare
I have rebased the branch to re-run the CI on |
Context
PR #1205 introduced a regression with postgreSQL.
The present PR addresses it.
Proposed solution
As a workaround of TYPEORM postgresql (...Emails) syntax handling. The code now returns an empty Array if there is no emails given to get existing users.
Related issues
#1005
Has this been tested?
yes locally with a psql database.