Skip to content

Conversation

@Gusted
Copy link
Contributor

@Gusted Gusted commented Aug 9, 2022

  • Backport Fix repeated actions on repository feed #20738
    • Before understanding why this patch is here. The actions table stores the actions, this includes commenting on a issue, merging a pull request and pushing a tag etc. However, due to historical (and likely performance) reason, each action(e.g. commenting on a issue) is duplicated for each user(such as the poster, watcher of that issue and repository etc.).
    • This means, if you only specify the repo_id you will end up with a lot of duplicated actions. We fix this by de-duplicating the actions by their created_unix. While this isn't a perfect way of solving this problem, it will do the job for 99%. Only problems will arise for highly active repositories in which actions are being taken on the same second.

- Backport go-gitea#20738
  - Before understanding why this patch is here. The actions table stores the actions, this includes commenting on a issue, merging a pull request and pushing a tag etc. However, due to historical (and likely performance) reason, each action(e.g. commenting on a issue) is duplicated for each user(such as the poster, watcher of that issue and repository etc.).
  - This means, if you only specify the `repo_id` you will end up with a lot of duplicated actions. We fix this by de-duplicating the actions by their `created_unix`. While this isn't a perfect way of solving this problem, it will do the job for 99%. Only problems will arise for highly active repositories in which actions are being taken on the same second.
@Gusted Gusted added this to the 1.17.1 milestone Aug 9, 2022
@Gusted Gusted added the type/bug label Aug 9, 2022
@Gusted Gusted changed the title Fix duplicated actions on repository feed (#20738) Fix repeated actions on repository feed (#20738) Aug 9, 2022
@Gusted Gusted closed this Aug 13, 2022
@Gusted Gusted deleted the backport-20738 branch August 13, 2022 11:32
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant