
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/8617
This reverts commit 7380eac5a2
.
Resolves forgejo/forgejo#8612
It is possible for the action feed to reference deleted repositories the
`INNER JOIN` will make sure that these are filtered out. We cannot
filter these out after the fact, because the value of `count` will still
be incorrect.
<!--start release-notes-assistant-->
## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-->
- Bug fixes
- [PR](https://codeberg.org/forgejo/forgejo/pulls/8617): <!--number 8617 --><!--line 0 --><!--description bWFrZSB0aGUgYWN0aW9uIGZlZWQgcmVzaWxpZW50IHRvIGRhdGFiYXNlIGluY29uc2lzdGVuY2llcw==-->make the action feed resilient to database inconsistencies<!--description-->
<!--end release-notes-assistant-->
Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8618
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
84 lines
No EOL
1.4 KiB
YAML
84 lines
No EOL
1.4 KiB
YAML
-
|
|
id: 1
|
|
user_id: 2
|
|
op_type: 12 # close issue
|
|
act_user_id: 2
|
|
repo_id: 2 # private
|
|
is_private: true
|
|
created_unix: 1603228283
|
|
content: '1|' # issueId 4
|
|
|
|
-
|
|
id: 2
|
|
user_id: 3
|
|
op_type: 2 # rename repo
|
|
act_user_id: 2
|
|
repo_id: 3 # private
|
|
is_private: true
|
|
content: oldRepoName
|
|
|
|
-
|
|
id: 3
|
|
user_id: 11
|
|
op_type: 1 # create repo
|
|
act_user_id: 11
|
|
repo_id: 9 # public
|
|
is_private: false
|
|
|
|
-
|
|
id: 4
|
|
user_id: 16
|
|
op_type: 12 # close issue
|
|
act_user_id: 16
|
|
repo_id: 22 # private
|
|
is_private: true
|
|
created_unix: 1603267920
|
|
|
|
- id: 5
|
|
user_id: 10
|
|
op_type: 1 # create repo
|
|
act_user_id: 10
|
|
repo_id: 6 # private
|
|
is_private: true
|
|
created_unix: 1603010100
|
|
|
|
- id: 6
|
|
user_id: 10
|
|
op_type: 1 # create repo
|
|
act_user_id: 10
|
|
repo_id: 7 # private
|
|
is_private: true
|
|
created_unix: 1603011300
|
|
|
|
- id: 7
|
|
user_id: 10
|
|
op_type: 1 # create repo
|
|
act_user_id: 10
|
|
repo_id: 8 # public
|
|
is_private: false
|
|
created_unix: 1603011540 # grouped with id:7
|
|
|
|
- id: 8
|
|
user_id: 1
|
|
op_type: 12 # close issue
|
|
act_user_id: 1
|
|
repo_id: 1700 # dangling intentional
|
|
is_private: false
|
|
created_unix: 1603011541
|
|
|
|
- id: 9
|
|
user_id: 34
|
|
op_type: 12 # close issue
|
|
act_user_id: 34
|
|
repo_id: 1 # public
|
|
is_private: false
|
|
created_unix: 1680454039
|
|
content: '4|' # issueId 5
|
|
|
|
- id: 10
|
|
user_id: 40
|
|
op_type: 1 # create repo
|
|
act_user_id: 40
|
|
repo_id: 60 # public
|
|
is_private: false
|
|
created_unix: 1577404800 # end of heatmap |