Notification/Activity "added a description to card" triggered when nothing was changed

Open
#8,327 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
backend

Research direction

No file or test is named. Start by tracing the card description update and Activity App logging paths in Deck, then reproduce opening and closing a card with an empty and a non-empty description. Done means unchanged descriptions create no activity, first-time descriptions use “added,” and real changes use “changed.”

Written by the indexing model from the issue text.

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug
When opening and closing a card, it often times triggers an entry in the Activity App "You have added a description to card ..." - no matter if the description was actually added or changed.

Expected behavior
The activity should only be logged when the description was actually added (so only when it was empty before and not empty after).

When the description was changed (so was not empty before and has really changed after), the Activity should be different: "You have changed the description of card ...".

Nextcloud version: 34

Deck App Version: 1.18.3

Dominant language
JavaScript
Stars
1.4k
Forks
380
Avg merge
1d 17h
Merged PRs (30d)
72

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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.

More from nextcloud/deck

All issues in nextcloud/deck

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.