mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 21:55:20 +08:00
Merge branch 'develop' into features/user-groups
This commit is contained in:
commit
7200174d47
3 changed files with 27 additions and 14 deletions
28
Gemfile.lock
28
Gemfile.lock
|
@ -141,21 +141,23 @@ GEM
|
|||
auto_strip_attributes (2.6.0)
|
||||
activerecord (>= 4.0)
|
||||
awesome_print (1.9.2)
|
||||
aws-eventstream (1.2.0)
|
||||
aws-partitions (1.780.0)
|
||||
aws-eventstream (1.4.0)
|
||||
aws-partitions (1.1126.0)
|
||||
aws-record (2.13.2)
|
||||
aws-sdk-dynamodb (~> 1, >= 1.85.0)
|
||||
aws-sdk-core (3.175.0)
|
||||
aws-eventstream (~> 1, >= 1.0.2)
|
||||
aws-partitions (~> 1, >= 1.651.0)
|
||||
aws-sigv4 (~> 1.5)
|
||||
aws-sdk-core (3.226.2)
|
||||
aws-eventstream (~> 1, >= 1.3.0)
|
||||
aws-partitions (~> 1, >= 1.992.0)
|
||||
aws-sigv4 (~> 1.9)
|
||||
base64
|
||||
jmespath (~> 1, >= 1.6.1)
|
||||
logger
|
||||
aws-sdk-dynamodb (1.88.0)
|
||||
aws-sdk-core (~> 3, >= 3.174.0)
|
||||
aws-sigv4 (~> 1.1)
|
||||
aws-sdk-kms (1.67.0)
|
||||
aws-sdk-core (~> 3, >= 3.174.0)
|
||||
aws-sigv4 (~> 1.1)
|
||||
aws-sdk-kms (1.106.0)
|
||||
aws-sdk-core (~> 3, >= 3.225.0)
|
||||
aws-sigv4 (~> 1.5)
|
||||
aws-sdk-lambda (1.99.0)
|
||||
aws-sdk-core (~> 3, >= 3.174.0)
|
||||
aws-sigv4 (~> 1.1)
|
||||
|
@ -170,10 +172,10 @@ GEM
|
|||
aws-sessionstore-dynamodb (~> 2)
|
||||
concurrent-ruby (~> 1.3, >= 1.3.1)
|
||||
railties (>= 7.0.0)
|
||||
aws-sdk-s3 (1.125.0)
|
||||
aws-sdk-core (~> 3, >= 3.174.0)
|
||||
aws-sdk-s3 (1.192.0)
|
||||
aws-sdk-core (~> 3, >= 3.225.0)
|
||||
aws-sdk-kms (~> 1)
|
||||
aws-sigv4 (~> 1.4)
|
||||
aws-sigv4 (~> 1.5)
|
||||
aws-sdk-ses (1.51.0)
|
||||
aws-sdk-core (~> 3, >= 3.174.0)
|
||||
aws-sigv4 (~> 1.1)
|
||||
|
@ -190,7 +192,7 @@ GEM
|
|||
aws-sdk-dynamodb (~> 1, >= 1.85.0)
|
||||
rack (>= 2, < 4)
|
||||
rack-session (>= 1, < 3)
|
||||
aws-sigv4 (1.5.2)
|
||||
aws-sigv4 (1.12.1)
|
||||
aws-eventstream (~> 1, >= 1.0.2)
|
||||
base62 (1.0.0)
|
||||
base64 (0.2.0)
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.42.0.1
|
||||
1.43.0.1
|
||||
|
|
|
@ -174,6 +174,17 @@ class Repository < RepositoryBase
|
|||
repository_rows.joins(:my_module_repository_rows).where(my_module_repository_rows: { my_module_id: my_module.id })
|
||||
end
|
||||
|
||||
def unassign_unshared_items
|
||||
return if shared_read? || shared_write?
|
||||
|
||||
MyModuleRepositoryRow.joins(my_module: { experiment: { project: :team } })
|
||||
.joins(repository_row: :repository)
|
||||
.where(repository_rows: { repository: self })
|
||||
.where.not(my_module: { experiment: { projects: { team: team } } })
|
||||
.where.not(my_module: { experiment: { projects: { team: teams_shared_with } } })
|
||||
.destroy_all
|
||||
end
|
||||
|
||||
def archived_branch?
|
||||
archived?
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue