Skip to content

feat: activity support - #2002

Merged
enjeck merged 4 commits into
mainfrom
activity-support
Oct 13, 2025
Merged

feat: activity support#2002
enjeck merged 4 commits into
mainfrom
activity-support

Conversation

@luka-nextcloud

Copy link
Copy Markdown
Contributor

Resolves: #1897

@luka-nextcloud
luka-nextcloud marked this pull request as ready for review August 15, 2025 18:27
@Koc

Koc commented Aug 15, 2025

Copy link
Copy Markdown
Contributor

can you please add import support 馃檹? It can helps me a lot for #1801

@enjeck enjeck 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.

Not sure if this is intentional or not, but if you change a column name, the activity log that references the column still uses the old name which can be confusing

@luka-nextcloud

Copy link
Copy Markdown
Contributor Author

Not sure if this is intentional or not, but if you change a column name, the activity log that references the column still uses the old name which can be confusing

@enjeck Since we use the activity log to track the object's history, I think we should respect the column name at the time the action was logged

@enjeck

enjeck commented Aug 26, 2025

Copy link
Copy Markdown
Contributor

@enjeck Since we use the activity log to track the object's history, I think we should respect the column name at the time the action was logged

I agree!

@luka-nextcloud
luka-nextcloud force-pushed the activity-support branch 2 times, most recently from 99bc822 to 48e8f85 Compare August 27, 2025 14:54
Comment thread lib/Activity/ActivityManager.php

@enjeck enjeck 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.

@luka-nextcloud Are you done here? Because from reading #1897, there are some requirements listed there and I wonder if we will be covering them all here

@luka-nextcloud

Copy link
Copy Markdown
Contributor Author

@luka-nextcloud Are you done here? Because from reading #1897, there are some requirements listed there and I wonder if we will be covering them all here

@enjeck In my opinion, we are done for now. The remaining requirement is clean-up schedule (number 5 and 6) which I think should be discussed and done from the activity app.

@blizzz blizzz 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.

Great effort @luka-nextcloud 馃檱 Everything looks good and works (two glitches, nothing big). Happy about this!

There are quick formal matters: please add declare(strict_types=1); to all new classes and add type hints and return types to the methods that do not have them (typically missing in some of the new classes).

And smaller functional cases:

  • table deletion activity did not show up for me (owner of the table was someone else), but only for this someone else.
  • Renaming a table, and Description update, have an issue with activity formatting or so: Rich subject or a parameter for "{user} has renamed the table {before} to {table}" is malformed

Backend-wise all is good. The frontend-usage is nice as well, I didn't check the code there though. If the items mentioned above can be addressed, green lights from my side.

Comment thread lib/Activity/ActivityManager.php Outdated
Comment thread lib/Activity/ActivityManager.php Outdated
Comment thread lib/Activity/Filter.php Outdated
Comment thread lib/Activity/SettingChanges.php Outdated
Comment thread lib/Activity/TablesProvider.php
Comment thread lib/Helper/CircleHelper.php Outdated
Comment thread lib/Service/ShareService.php Outdated
Comment thread vite.config.ts
Comment thread lib/Activity/ActivityManager.php Outdated
@enjeck

enjeck commented Sep 25, 2025

Copy link
Copy Markdown
Contributor

we can merge when the integration tests are fixed

@blizzz

blizzz commented Sep 26, 2025

Copy link
Copy Markdown
Member

we can merge when the integration tests are fixed

they weren't broken actually, just some issue with the runners

@blizzz
blizzz force-pushed the activity-support branch 3 times, most recently from 2e9a2a4 to 4d988aa Compare October 8, 2025 16:59
@blizzz

This comment was marked as resolved.

@blizzz

This comment was marked as resolved.

@blizzz

blizzz commented Oct 10, 2025

Copy link
Copy Markdown
Member

@enjeck please tell me my fixing and consolidating commit 16c9d87 is not utter nonsense. Tbh i am not sure that using rowHelper everywhere is clean from a where-i-pull-this-mixin-from point of view. And actually, can the mandatory attribute not be implemented directly in RowFormWrapper instead of everywhere?

@enjeck

enjeck commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

@enjeck please tell me my fixing and consolidating commit 16c9d87 is not utter nonsense. Tbh i am not sure that using rowHelper everywhere is clean from a where-i-pull-this-mixin-from point of view. And actually, can the mandatory attribute not be implemented directly in RowFormWrapper instead of everywhere?

Hmm, lemme check 馃憖

@blizzz

blizzz commented Oct 10, 2025

Copy link
Copy Markdown
Member

Looks like it needs a fix for the view-mandatory-state tests

At least those tests pass now 馃檪

luka-nextcloud and others added 4 commits October 13, 2025 14:46
Signed-off-by: Luka Trovic <luka@nextcloud.com>
plus minor refactorings/code style fixes

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@enjeck
enjeck merged commit d719db1 into main Oct 13, 2025
68 checks passed
@enjeck
enjeck deleted the activity-support branch October 13, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Activity support

4 participants