Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle duplicate activities - added as a presenter activity (and other activities?) #204

Open
renintw opened this issue Jul 18, 2022 · 0 comments

Comments

@renintw
Copy link

renintw commented Jul 18, 2022

Ref: WordPress/wordpress.org#84

Description

In the comment,
Both a) Updating a post and b) Switching back to draft and publishing a post again would trigger notify_workshop_presenter and cause duplicate activities.

Note: Probably can be handled in Profile API.

Acceptance Criteria

  1. When updating a post, do not add duplicate activity if there's already one on a user's profile.
  2. When switching a post back to draft and publishing it again, do not add duplicate activity if there's already one on a user's profile.

Further Discussion

  1. Do we also want to handle other duplicate activities? For example, switching a post back to draft and publishing again, the activity Wrote a new workshop, ...... will be added to the user's profile again, causing duplicate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant