-
Notifications
You must be signed in to change notification settings - Fork 100
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
Optimization method FormsService::canSubmit #2225
Optimization method FormsService::canSubmit #2225
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2225 +/- ##
============================================
+ Coverage 45.95% 46.03% +0.08%
- Complexity 797 800 +3
============================================
Files 65 66 +1
Lines 3066 3065 -1
============================================
+ Hits 1409 1411 +2
+ Misses 1657 1654 -3 |
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.
Nice one :) Just a little comment about the new name for the function :)
@susnux what do you think?
And it would be nice if you could add some more tests to satisfy the Codecov checks 😉
9c44b3c
to
b3d13cc
Compare
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.
Generally nice! Some notes :)
(and we should add a composite index on "formId userId"
7d667ff
to
548075a
Compare
548075a
to
d252a41
Compare
@AIlkiv could you please rebase on current main? |
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.
Some small comments, but rest seems ok to me :)
2421d7c
to
0aa2748
Compare
0aa2748
to
c1e789a
Compare
Signed-off-by: ailkiv <[email protected]>
c1e789a
to
a0b26df
Compare
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Currently, to check if a user has filled out the form, all entities are retrieved, and then two loops are performed at the PHP. My version does the same thing but with a single simple query.