Skip to content

Refactor admin audit app - #39192

Closed
danialRahimy wants to merge 9 commits into
nextcloud:masterfrom
danialRahimy:refactor-admin-audit-app
Closed

Refactor admin audit app#39192
danialRahimy wants to merge 9 commits into
nextcloud:masterfrom
danialRahimy:refactor-admin-audit-app

Conversation

@danialRahimy

@danialRahimydanialRahimy commented Jul 6, 2023

Copy link
Copy Markdown
Contributor

Summary

Refactor admin audit app

TODO

Checklist

@solracsfsolracsf added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 labels Jul 6, 2023
@solracsfsolracsf added this to the Nextcloud 28 milestone Jul 6, 2023
Comment threadapps/admin_audit/lib/AppInfo/Application.php Fixed
Comment threadapps/admin_audit/lib/Actions/Action.php
@danialRahimy
danialRahimyforce-pushed the refactor-admin-audit-app branch from 50f672c to cd9b081CompareJuly 7, 2023 06:03
@danialRahimy

Copy link
Copy Markdown
ContributorAuthor

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.

@shdehnavishdehnavi mentioned this pull request Jul 13, 2023
@szaimen
szaimen requested review from a team, ArtificialOwl, blizzz and icewind1991 and removed request for a teamJuly 13, 2023 20:09
@szaimen

Copy link
Copy Markdown
Contributor

Thanks for the ping! I requested some reviewers.

@danialRahimy

Copy link
Copy Markdown
ContributorAuthor

Dear @szaimen

Would it be necessary for me to take any action in order to proceed with the pull request?

@danialRahimy
danialRahimyforce-pushed the refactor-admin-audit-app branch from cd9b081 to 67f0d31CompareAugust 16, 2023 06:21
@szaimen

Copy link
Copy Markdown
Contributor

@nextcloud/server-backend please review!

@susnux
susnux requested review from Altahrim and nfebeAugust 16, 2023 23:39
Comment threadapps/admin_audit/lib/AuditLogger.php Outdated
IShare::TYPE_REMOTE_GROUP => $this->sharedRemoteGroupType($params),
IShare::TYPE_DECK => $this->sharedDeckType($params),
IShare::TYPE_SCIENCEMESH => $this->sharedSciencemeshType($params),
default => null,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this one should fail (or at least log) if an unknown type is used.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, maybe it will ring a bell for someone :)

@fsamapoorfsamapoor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-nccome-nc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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']) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? It does not seem used.

danialRahimyand others added 7 commits October 10, 2023 09:40
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>
danialRahimyand others added 2 commits October 10, 2023 09:40
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>
@danialRahimy
danialRahimyforce-pushed the refactor-admin-audit-app branch from f250821 to 5db849fCompareOctober 10, 2023 06:10
@skjnldsvskjnldsv mentioned this pull request Nov 1, 2023
This was referenced Nov 6, 2023
This was referenced Nov 14, 2023
@blizzzblizzz modified the milestones: Nextcloud 28, Nextcloud 29Nov 23, 2023
This was referenced Mar 12, 2024
This was referenced Mar 20, 2024
@skjnldsvskjnldsv mentioned this pull request Mar 28, 2024
81 tasks
@skjnldsvskjnldsv added 2. developing Work in progress stale Ticket or PR with no recent activity and removed 3. to review Waiting for reviews labels Jul 27, 2024
This was referenced Jul 30, 2024
This was referenced Aug 5, 2024
@skjnldsvskjnldsv mentioned this pull request Aug 13, 2024
@skjnldsvskjnldsv removed this from the Nextcloud 30 milestone Aug 14, 2024
@skjnldsv

Copy link
Copy Markdown
Member

Hey @danialRahimy thanks for the PR
Unfortunately there seem to be quite a bit of conflicts and some comments left unanswered above, so we closed that one. If you want to re-open and ork on it again, feel free to do so and ping me, we'll be happy to help you and get it move forward

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 :)

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developingWork in progressstaleTicket or PR with no recent activitytechnical debt🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@danialRahimy@szaimen@skjnldsv@Altahrim@fsamapoor@github-advanced-security@come-nc@blizzz@solracsf