Skip to content

Add notification for async import finished event#2819

Open
luka-nextcloud wants to merge 1 commit into
mainfrom
add-async-import-notification
Open

Add notification for async import finished event#2819
luka-nextcloud wants to merge 1 commit into
mainfrom
add-async-import-notification

Conversation

@luka-nextcloud

@luka-nextcloud luka-nextcloud commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔙 Backport requests are created or not needed: /backport to stableX.X
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

Signed-off-by: Luka Trovic <luka@nextcloud.com>
@luka-nextcloud luka-nextcloud added enhancement New feature or request 3. to review Waiting for reviews labels Jul 17, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Jul 17, 2026
@luka-nextcloud luka-nextcloud moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Jul 17, 2026
@blizzz
blizzz requested a review from samin-z July 21, 2026 21:12
Comment on lines +80 to +99
private function sendTableNotification(Table $object, string $subject, ?string $author): void {
$subjectParams = [
'author' => $author,
'objectType' => ActivityManager::TABLES_OBJECT_TABLE,
'table' => [
'id' => $object->getId(),
'title' => $object->getTitle(),
]
];
$this->sendNotifiesByElement(
element: $object,
subject: $subject,
subjectParams: $subjectParams,
objectType: ActivityManager::TABLES_OBJECT_TABLE,
objectId: (string)$object->getId(),
authorId: null,
configKey: null,
);
}

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.

i havent tested yet, but it seems this sends the async import completion notification through the table-recipient path. So for imports started from a view, the importing user may only have access to the view and therefore may not be included in findRecipientsByElement($table) ?

Also, doesn't this notify unrelated table recipients about someone else’s import

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

Labels

3. to review Waiting for reviews enhancement New feature or request

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Add asynchronous import notification

2 participants