Doubled feed in the dashboard and activity #1056

Closed
opened 2025-11-02 03:46:45 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @schast on GitHub (Sep 13, 2017).

  • Gitea version (or commit ref): 1.2.0
  • Git version: 1.8.3.1
  • Operating system: Red Hat Enterprise Linux Server release 7.3 (Maipo)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
    xorm.log.txt

Description

i still get double entries in the dashboard activity on some of my repos.
INSERT INTO action is made twice for the same user_id.
related: #2455
...

Screenshots

selection_006

Originally created by @schast on GitHub (Sep 13, 2017). - Gitea version (or commit ref): 1.2.0 - Git version: 1.8.3.1 - Operating system: Red Hat Enterprise Linux Server release 7.3 (Maipo) - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: [xorm.log.txt](https://github.com/go-gitea/gitea/files/1298105/xorm.log.txt) ## Description i still get double entries in the dashboard activity on some of my repos. `INSERT INTO action` is made twice for the same `user_id`. related: #2455 ... ## Screenshots ![selection_006](https://user-images.githubusercontent.com/3838857/30359008-2cf324b0-9848-11e7-8fac-1b0ff3d99dfd.png)
GiteaMirror added the type/question label 2025-11-02 03:46:45 -06:00
Author
Owner

@lafriks commented on GitHub (Oct 14, 2017):

@schast can you provide steps to reproduce that? I can not seem to get such cases

@lafriks commented on GitHub (Oct 14, 2017): @schast can you provide steps to reproduce that? I can not seem to get such cases
Author
Owner

@schast commented on GitHub (Oct 16, 2017):

the duplicate entries only appear if the default git hook (post-receive) is set.

#!/usr/bin/env bash
"/opt/gitea/current/gitea" hook --config='/opt/gitea/current/custom/conf/app.ini' post-receive
@schast commented on GitHub (Oct 16, 2017): the duplicate entries only appear if the default git hook (post-receive) is set. ``` #!/usr/bin/env bash "/opt/gitea/current/gitea" hook --config='/opt/gitea/current/custom/conf/app.ini' post-receive ```
Author
Owner

@lafriks commented on GitHub (Oct 16, 2017):

Can you do rewrite hooks in admin panel to see if that helps

@lafriks commented on GitHub (Oct 16, 2017): Can you do rewrite hooks in admin panel to see if that helps
Author
Owner

@schast commented on GitHub (Oct 16, 2017):

No, rewriting hooks doesn't help.
it only helps if you remove the complete hook and leave it empty (disabled).

@schast commented on GitHub (Oct 16, 2017): No, rewriting hooks doesn't help. it only helps if you remove the complete hook and leave it empty (disabled).
Author
Owner

@lafriks commented on GitHub (Oct 16, 2017):

how do you remove it? from gitea UI (in repository settings)?

@lafriks commented on GitHub (Oct 16, 2017): how do you remove it? from gitea UI (in repository settings)?
Author
Owner

@schast commented on GitHub (Oct 16, 2017):

yes, under git-hooks in gitea ui repository settings.

@schast commented on GitHub (Oct 16, 2017): yes, under git-hooks in gitea ui repository settings.
Author
Owner

@lafriks commented on GitHub (Oct 16, 2017):

There should be only custom hooks you need not gitea hook. Just delete it and you should be fine

@lafriks commented on GitHub (Oct 16, 2017): There should be only custom hooks you need not gitea hook. Just delete it and you should be fine
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1056