[PR #1041] [MERGED] feat(user): add avatar cache flushing #7226

Closed
opened 2026-04-20 17:35:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/1041
Author: @kolaente
Created: 6/27/2025
Status: Merged
Merged: 6/27/2025
Merged by: @kolaente

Base: mainHead: codex/extend-and-implement-flushcache-for-avatar-providers


📝 Commits (1)

  • 09a57cc fix: flush avatar cache only when provider changed

📊 Changes

12 files changed (+80 additions, -1 deletions)

View changed files

📝 pkg/modules/auth/ldap/ldap.go (+2 -0)
📝 pkg/modules/auth/openid/openid.go (+3 -0)
📝 pkg/modules/avatar/avatar.go (+31 -1)
📝 pkg/modules/avatar/empty/empty.go (+3 -0)
📝 pkg/modules/avatar/gravatar/gravatar.go (+5 -0)
📝 pkg/modules/avatar/initials/initials.go (+8 -0)
📝 pkg/modules/avatar/ldap/ldap.go (+5 -0)
📝 pkg/modules/avatar/marble/marble.go (+3 -0)
📝 pkg/modules/avatar/openid/openid.go (+5 -0)
📝 pkg/modules/avatar/upload/upload.go (+6 -0)
📝 pkg/routes/api/v1/avatar.go (+2 -0)
📝 pkg/routes/api/v1/user_settings.go (+7 -0)

📄 Description

Summary

  • extend avatar provider interface with cache flush method
  • implement cache flushing in all avatar providers
  • add FlushAllCaches helper
  • purge caches when avatar provider changes or avatars are uploaded or synced

Testing

  • mage lint:fix

https://chatgpt.com/codex/tasks/task_e_685e7bc334b083229a43b24f3e2afb6f


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/1041 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 6/27/2025 **Status:** ✅ Merged **Merged:** 6/27/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `codex/extend-and-implement-flushcache-for-avatar-providers` --- ### 📝 Commits (1) - [`09a57cc`](https://github.com/go-vikunja/vikunja/commit/09a57cc05e399317f974110ab9f4750d866c3ac1) fix: flush avatar cache only when provider changed ### 📊 Changes **12 files changed** (+80 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `pkg/modules/auth/ldap/ldap.go` (+2 -0) 📝 `pkg/modules/auth/openid/openid.go` (+3 -0) 📝 `pkg/modules/avatar/avatar.go` (+31 -1) 📝 `pkg/modules/avatar/empty/empty.go` (+3 -0) 📝 `pkg/modules/avatar/gravatar/gravatar.go` (+5 -0) 📝 `pkg/modules/avatar/initials/initials.go` (+8 -0) 📝 `pkg/modules/avatar/ldap/ldap.go` (+5 -0) 📝 `pkg/modules/avatar/marble/marble.go` (+3 -0) 📝 `pkg/modules/avatar/openid/openid.go` (+5 -0) 📝 `pkg/modules/avatar/upload/upload.go` (+6 -0) 📝 `pkg/routes/api/v1/avatar.go` (+2 -0) 📝 `pkg/routes/api/v1/user_settings.go` (+7 -0) </details> ### 📄 Description ## Summary - extend avatar provider interface with cache flush method - implement cache flushing in all avatar providers - add `FlushAllCaches` helper - purge caches when avatar provider changes or avatars are uploaded or synced ## Testing - `mage lint:fix` ------ https://chatgpt.com/codex/tasks/task_e_685e7bc334b083229a43b24f3e2afb6f --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 17:35:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#7226