Uh oh!
There was an error while loading. Please reload this page.
Refactor admin audit app - #39192
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
50f672c to
cd9b081ComparedanialRahimy
commented
Jul 13, 2023
Hey @szaimen I opened this PR last week, but haven't been assigned to any reviewers yet. Is there anything that I could do? Thanks. |
szaimen
commented
Jul 13, 2023
Thanks for the ping! I requested some reviewers. |
danialRahimy
commented
Aug 16, 2023
Dear @szaimen Would it be necessary for me to take any action in order to proceed with the pull request? |
cd9b081 to
67f0d31Compareszaimen
commented
Aug 16, 2023
@nextcloud/server-backend please review! |
Uh oh!
There was an error while loading. Please reload this page.
| IShare::TYPE_REMOTE_GROUP => $this->sharedRemoteGroupType($params), | ||
| IShare::TYPE_DECK => $this->sharedDeckType($params), | ||
| IShare::TYPE_SCIENCEMESH => $this->sharedSciencemeshType($params), | ||
| default => null, |
There was a problem hiding this comment.
I wonder if this one should fail (or at least log) if an unknown type is used.
There was a problem hiding this comment.
Before my modifications, if a type didn't match the conditions, no action was taken.
I'm uncertain whether to implement logging or throw a specialized exception to handle unknown types.
There was a problem hiding this comment.
Same here, maybe it will ring a bell for someone :)
fsamapoor
left a comment
There was a problem hiding this comment.
In my opinion, removing redundant annotations make the code that much cleaner. When a method's parameter is typed, having the exact type hint as an annotation does not add any value to the mix. I think it would be great if you could also review the annotations in this PR.
I would also recommend writing a summary of the changes you have made in your PR's description and explaining briefly how those changes would improve the codebase.
come-nc
left a comment
There was a problem hiding this comment.
This is only moving things around, and is using match in a weird way.
I’m not sure I get the point.
| ] | ||
| ); | ||
| } | ||
| match ($params['shareType']) { |
There was a problem hiding this comment.
The use of match when the return value is not used is really confusing.
| use OCP\EventDispatcher\IEventDispatcher; | ||
| use OCP\IConfig; | ||
| use OCP\IGroupManager; | ||
| use OCP\IServerContainer; |
Signed-off-by: Danial Rahimi <48244647+danialRahimy@users.noreply.github.com>
Signed-off-by: Danial Rahimi <48244647+danialRahimy@users.noreply.github.com>
Signed-off-by: Danial Rahimi <48244647+danialRahimy@users.noreply.github.com>
Signed-off-by: Danial Rahimi <48244647+danialRahimy@users.noreply.github.com>
Signed-off-by: Danial Rahimi <48244647+danialRahimy@users.noreply.github.com>
Signed-off-by: Danial Rahimi <48244647+danialRahimy@users.noreply.github.com>
Signed-off-by: Danial Rahimi <48244647+danialRahimy@users.noreply.github.com>
Co-authored-by: Benjamin Gaussorgues <github-fa3ie@altahrim.net> Signed-off-by: danial rahimy <48244647+danialRahimy@users.noreply.github.com>
…and modern syntax. Signed-off-by: Danial Rahimi <48244647+danialRahimy@users.noreply.github.com>
f250821 to
5db849fCompareskjnldsv
commented
Aug 16, 2024
Hey @danialRahimy thanks for the PR If you used a tooling to create those, feel free to run it again now and ping me @skjnldsv straight away! I'll help you get it merged faster 🚀 Have a nice day :) |
Summary
Refactor admin audit app
TODO
Checklist