mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-25 14:36:41 +08:00
Merge pull request #7936 from artoscinote/ma_SCI_11123
Don't make snapshots of hidden inventories [SCI-11123]
This commit is contained in:
commit
3188d0706d
2 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,9 @@ module MyModuleStatusConsequences
|
|||
|
||||
def forward(my_module)
|
||||
my_module.assigned_repositories.each do |repository|
|
||||
# skip repositories that are currently not visible to the task team
|
||||
next if repository.team != my_module.team && !repository.shared_with?(my_module.team)
|
||||
|
||||
repository_snapshot = ::RepositorySnapshot.create_preliminary!(repository, my_module)
|
||||
service = Repositories::SnapshotProvisioningService.call(repository_snapshot: repository_snapshot)
|
||||
|
||||
|
|
|
@ -1435,6 +1435,7 @@ en:
|
|||
more_activities: "More activities"
|
||||
repository:
|
||||
export: 'Export'
|
||||
private_repository: 'Private inventory'
|
||||
full_view:
|
||||
modal_live_header: ': Live version'
|
||||
modal_snapshot_header: ': Snapshot of %{snapshot_date}'
|
||||
|
|
Loading…
Add table
Reference in a new issue