mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-04 12:14:37 +08:00
Merge pull request #8834 from scinote-eln/develop
August 2025 Release Fixes
This commit is contained in:
commit
fd0537ecef
2 changed files with 4 additions and 4 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.44.0.1
|
||||
1.44.0.2
|
||||
|
|
|
@ -74,7 +74,7 @@ class MoveEveryOneElseAssignmentToTeamAssignments < ActiveRecord::Migration[7.2]
|
|||
end
|
||||
|
||||
# PET
|
||||
Project.visible.preload(:experiments).find_in_batches(batch_size: 100) do |projects|
|
||||
Project.visible.find_in_batches(batch_size: 10) do |projects|
|
||||
projects.each do |project|
|
||||
project_automatic_user_assignments = project.user_assignments.where(assigned: :automatically)
|
||||
next if project_automatic_user_assignments.blank?
|
||||
|
@ -82,8 +82,8 @@ class MoveEveryOneElseAssignmentToTeamAssignments < ActiveRecord::Migration[7.2]
|
|||
user_role = project_automatic_user_assignments.first.user_role
|
||||
team_assignment_values = []
|
||||
|
||||
project.experiments.preload(:my_modules).each do |experiment|
|
||||
experiment.my_modules.each do |my_module|
|
||||
Experiment.joins(:project).where(project: project).find_each do |experiment|
|
||||
MyModule.joins(:experiment).where(experiment: experiment).find_each do |my_module|
|
||||
team_assignment_values << new_team_assignment(project.team_id, my_module, user_role)
|
||||
my_module.automatic_user_assignments.where(user_id: project_automatic_user_assignments.select(:user_id)).delete_all
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue