From 49a3b78e0621724d2f1c010a7a9c74728f44cb03 Mon Sep 17 00:00:00 2001 From: Arnaud Levy Date: Sat, 7 Feb 2026 07:49:20 +0100 Subject: [PATCH 1/2] Remove organizations and people static cache --- app/views/admin/university/organizations/static.html.erb | 8 +------- app/views/admin/university/people/static.html.erb | 5 ----- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/app/views/admin/university/organizations/static.html.erb b/app/views/admin/university/organizations/static.html.erb index 54891560e..6da440242 100644 --- a/app/views/admin/university/organizations/static.html.erb +++ b/app/views/admin/university/organizations/static.html.erb @@ -1,13 +1,8 @@ <% -# This version has to incremented every time you change something in the file, to invalidate the cache -version = 8 # Next lines are not in the controller because it happens in the background jobs organization = @l10n.about university = organization.university language = @l10n.language -# @pabois @SebouChu do we still need this cache since iteration 11? -cache_key = [organization, @l10n, @website.id, version] -cache cache_key do %>--- <%= render 'admin/application/static/core', about: @l10n %> <%= render 'admin/application/static/breadcrumbs', about: @l10n %> @@ -44,5 +39,4 @@ logo_on_dark_background: "<%= @about.logo_on_dark_background.blob.id %>" categories: university.organization_categories, key: :organizations_categories %> <%= render 'admin/communication/contents/static', about: @l10n %> ---- -<% end %> \ No newline at end of file +--- \ No newline at end of file diff --git a/app/views/admin/university/people/static.html.erb b/app/views/admin/university/people/static.html.erb index 7c6e0d0b7..bca7f20b2 100644 --- a/app/views/admin/university/people/static.html.erb +++ b/app/views/admin/university/people/static.html.erb @@ -1,11 +1,7 @@ <% -# this version has to be incremented every time you change something in the file, to invalidate the cache -version = 9 person = @l10n.about university = person.university language = @l10n.language -cache_key = [person, @l10n, @website&.id, version] -cache cache_key do %>--- <%= osuny_static_text 'linkTitle', @l10n.to_s_alphabetical %> <%= render 'admin/application/static/core', about: @l10n %> @@ -125,4 +121,3 @@ cohorts: <%= osuny_static_html 'biography', @l10n.biography %> <%= render 'admin/communication/contents/static', about: @l10n %> --- -<% end %> \ No newline at end of file From 85758b1821bcfc4bf82683497a8009f7b03fc997 Mon Sep 17 00:00:00 2001 From: Arnaud Levy Date: Sat, 7 Feb 2026 07:53:41 +0100 Subject: [PATCH 2/2] PR template --- pull_request_template.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pull_request_template.md diff --git a/pull_request_template.md b/pull_request_template.md new file mode 100644 index 000000000..beeba440e --- /dev/null +++ b/pull_request_template.md @@ -0,0 +1,16 @@ +## Type + +- [ ] Nouvelle fonctionnalité +- [ ] Bug +- [ ] Ajustement +- [ ] Rangement + +## Description + + + +## Niveau d'incidence + +- [ ] Incidence faible 😌 +- [ ] Incidence moyenne 😲 +- [ ] Incidence forte 😱