You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2021/02/16 13:38:58 UTC
[allura] branch kt/icon-hash updated: fixup! SF-5746 use project
icon file hash for cache busting
This is an automated email from the ASF dual-hosted git repository.
kentontaylor pushed a commit to branch kt/icon-hash
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/kt/icon-hash by this push:
new 0969d4d fixup! SF-5746 use project icon file hash for cache busting
0969d4d is described below
commit 0969d4dbb8332d875b92ad14209144adcd972ab6
Author: Kenton Taylor <kt...@slashdotmedia.com>
AuthorDate: Tue Feb 16 13:38:38 2021 +0000
fixup! SF-5746 use project icon file hash for cache busting
---
Allura/allura/ext/admin/admin_main.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Allura/allura/ext/admin/admin_main.py b/Allura/allura/ext/admin/admin_main.py
index a2384bd..26380b2 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -335,7 +335,7 @@ class ProjectAdminController(BaseController):
c.project.removal_changed_date = datetime.utcnow()
if 'delete_icon' in kw:
M.ProjectFile.query.remove(dict(project_id=c.project._id, category=re.compile(r'^icon')))
- c.project.set_tool_data('allura', icon_original_size=None)
+ c.project.set_tool_data('allura', icon_original_size=None, icon_sha256=None)
M.AuditLog.log('remove project icon')
g.post_event('project_updated')
redirect('overview')