Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Create user last connection datetime #935
Create user last connection datetime #935
Changes from all commits
643daca
cd8667a
feafda8
62acdf3
f36f044
4d57c60
6a07bcb
73420a7
6610ab2
bf9bc76
22114c7
c418a0b
4428d8c
2c696c9
6d64b87
2f1ec75
5ffbf62
71d8d47
7d628db
eb6a6bd
519fdfa
ae48fb6
0ce7cda
fa5aa6a
6b061a6
403a480
d480eca
5a1d41a
51aa4e5
b701349
cc50893
0e78637
7ed70b9
b4344c1
f4f0c2b
b9600c5
42742b8
2c74062
792dc90
5d80db5
a7fbc2e
fe10c80
7c62a38
117717d
07bf8ef
0a3978c
2b49dee
ce9b1a8
224dbdf
f7bd265
76c2218
4ebdae6
8864643
8468fa5
822aefc
54e0d7e
bd27669
883b8e9
1081d63
ec55ec0
8fab3aa
4db9e7e
015dc5e
1fa3fb4
4ffb749
fc6de6b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Hi @CamilleLegeron. I have a question, can you try updating this migration, and the one above (
UserUUID
) with a code that tries not to useUser
entity. From my brief tests, it should work.Here, I'm trying to force typeorm to not produce full SELECT, and I'm only specifying columns that I know exist.
If that works, it will simplify this PR a lot.
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.
ooh wuaah yes it's works for the query function
but not for the
queryRunner.manager.save(userList, { chunk: 300 });
that use the entityI'm working on it searching other possibility
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.
it seems we can not use
save
function with partial entity, but it's possible withupdate
function. The weakness it's that we can't use chunk optionThere 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 for adding a test. One small suggestion: could you add a check here that goes through all the users and checks they each have a unique
ref
? A simple way to check might be to map all of theirref
s, drop them in aSet
, and check that you have 400.