nextcloud / nextcloud/deck

Refactor board activites to filter by board id

Open
#1,191 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: activity
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

The activity app onyl allows fetching by object_type and object_id

https://github.com/nextcloud/activity/blob/dee03c7f5ca2d201b5c204c1bdde4b15bb640258/lib/Controller/APIv2.php#L208

Currently all card activities are fetched and filtered by board in the frontend.

https://github.com/nextcloud/deck/blob/f3b5fd4030dd04985a87ec7cca8cd1fc488fb781/lib/Activity/ActivityManager.php#L61-L62

A possible way to improve this would be to also create an activity for the object_type board for all card actions.

https://github.com/nextcloud/deck/blob/f3b5fd4030dd04985a87ec7cca8cd1fc488fb781/lib/Activity/ActivityManager.php#L304

Probably also needs some adjustments on the parameters that get replaced:
https://github.com/nextcloud/deck/blob/f18accd9c44fa82dee49e62ed3695f8b151000f8/lib/Activity/DeckProvider.php#L121


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked activity app entry point in APIv2.php and compare it with Deck's ActivityManager.php, especially the references around lines 61-62 and 304. Then inspect DeckProvider.php around line 121 for parameter replacement. Done means board activities can be fetched by board ID without frontend filtering, with the related activity parameters adjusted consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.