From ff4333ccf5f0f0aab2fe6aeb54d694f7fa1ae0bb Mon Sep 17 00:00:00 2001
From: pabois <pierreandre.boissinot@noesya.coop>
Date: Wed, 15 Dec 2021 17:49:41 +0100
Subject: [PATCH] wip members

---
 .../communication/website/with_batch_publication.rb | 13 +++++++------
 .../admin/administration/members/index.html.erb     |  1 -
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/app/models/communication/website/with_batch_publication.rb b/app/models/communication/website/with_batch_publication.rb
index 069261353..6f815fe2b 100644
--- a/app/models/communication/website/with_batch_publication.rb
+++ b/app/models/communication/website/with_batch_publication.rb
@@ -8,9 +8,9 @@ module Communication::Website::WithBatchPublication
     end
     handle_asynchronously :force_publish!, queue: 'default'
 
-    def publish_authors!
-      commit_files_in_batch github_files.where(about_type: "Communication::Website::Author"),
-                            "[Author] Batch update from import"
+    def publish_members!
+      commit_files_in_batch github_files.where(about_type: "Administration::Member"),
+                            "[Member] Batch update from import"
     end
 
     def publish_categories!
@@ -37,7 +37,7 @@ module Communication::Website::WithBatchPublication
       commit_files_in_batch github_files.where(about_type: [
                               "Education::School",
                               "Education::Program",
-                              "Education::Teacher"
+                              "Administration::Member"
                             ]),
                             "[Education School/Program/Teacher] Batch update from import"
     end
@@ -46,9 +46,10 @@ module Communication::Website::WithBatchPublication
       commit_files_in_batch github_files.where(about_type: [
                               "Research::Journal",
                               "Research::Journal::Article",
-                              "Research::Journal::Volume"
+                              "Research::Journal::Volume",
+                              "Administration::Member"
                             ]),
-                            "[Research Journal/Article/Volume] Batch update from import"
+                            "[Research Journal/Article/Volume/Researcher] Batch update from import"
     end
 
     protected
diff --git a/app/views/admin/administration/members/index.html.erb b/app/views/admin/administration/members/index.html.erb
index 039234504..53ceb5e8e 100644
--- a/app/views/admin/administration/members/index.html.erb
+++ b/app/views/admin/administration/members/index.html.erb
@@ -3,7 +3,6 @@
 <%= render 'admin/administration/members/list', members: @members %>
 <%= paginate @members, theme: 'bootstrap-5' %>
 
-
 <% content_for :action_bar_right do %>
   <%= create_link Administration::Member %>
 <% end %>
-- 
GitLab