Use github.com/mohae/deepcopy, which the repository already uses, instead of a hand-written copy, and keep only the deterministic test: CI runs the unit tests without -race, so the concurrency test could only catch the bug by chance.
MergeKV handed the nested maps of its first input to mergo, which reused them in the result and wrote the later values into them. The theme endpoint passes the package-level theme defaults first, so every request wrote the base and branding theme into those defaults, and concurrent requests crashed the process with "concurrent map writes". MergeKV now merges deep copies of its inputs.
* enhancement: introduce theme processing
* enhancement: introduce theme processing
* enhancement: add theme processing tests and changelog
* Update services/web/pkg/config/config.go
Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu>
* fix: ci findings
* Apply suggestions from code review
Co-authored-by: Martin <github@diemattels.at>
* enhancement: use the theme assets from web instead of having them inside the oCis repo (license clash Apache vs. AGPLv3)
* fix: golangci tagalign order
* fix: rename UnifiedRoleUploader to UnifiedRoleEditorLite
* fix: some typos
Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu>
* enhancement: export supported theme logo upload filetypes
* chore: bump reva
* fix: allow init func
---------
Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu>
Co-authored-by: Martin <github@diemattels.at>