1
0
Fork 0
forgejo/services
Gusted 4c8b67c4b2
[BUG] Store JSON in contributors commit cache
- The code that gets contributor stats tried to store an
`map[string]*ContributorData` type in the cache, this works for the
memory cache but not for other caches such as Redis.
- The cache implementation for Redis would convert this map via
`fmt.Sprintf` to an string, which would simply print the pointer and not
the value of the pointer. Storing pointers is a no-go as this will get
GC-ed eventually within a few minutes. Therefore store everything with
json, that does properly store the value of the pointers.
- Adds unit test that verifies JSON is being used.
- Resolves https://codeberg.org/forgejo/forgejo/issues/3158
2024-04-11 13:01:33 +02:00
..
actions Remove scheduled action tasks if the repo is archived (#30224) 2024-04-07 15:40:31 +02:00
agit
asymkey
attachment
auth
automerge
context
contexttest add label filters in org/{org_name}/issues 2024-04-04 17:57:11 +05:30
convert Count downloads for tag archives 2024-04-08 12:51:27 +02:00
cron Update checker setting updates 2024-03-31 10:52:24 +05:00
doctor Count downloads for tag archives 2024-04-08 12:51:27 +02:00
externalaccount
feed
forgejo
forms Merge pull request 'Add optional pronoun field in user settings' (#1518) from hazy/forgejo:feat/pronoun-field into forgejo 2024-04-06 12:23:54 +00:00
gitdiff
indexer
issue
lfs
mailer
markup
migrations Fix duplicate migrated milestones (#30102) 2024-03-30 07:17:30 +01:00
mirror
notify
org
packages
pull [TEST] make the indexer and pull tasks cancellable (without shutdown) 2024-04-10 14:42:59 +02:00
release Count downloads for tag archives 2024-04-08 12:51:27 +02:00
repository [BUG] Store JSON in contributors commit cache 2024-04-11 13:01:33 +02:00
secrets
task
uinotification
user add pronoun field to user profiles 2024-04-03 15:11:17 -05:00
webhook webhook: add admin-hooks tests 2024-04-09 20:02:14 +02:00
wiki