Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.web
Commits
d995075e
Commit
d995075e
authored
Nov 12, 2020
by
Samuel GAIST
Browse files
[backend][helpers] If experiment has permission enable database sharing for block
parent
b8acc32f
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/web/backend/helpers.py
View file @
d995075e
...
...
@@ -403,6 +403,9 @@ def get_configuration_for_split(split):
# Retrieve the block configuration
configuration
=
simplejson
.
loads
(
str
(
split
.
job
.
block
.
command
))
if
split
.
job
.
block
.
experiment
.
author
.
has_perm
(
"can_share_databases"
):
configuration
[
"share_databases"
]
=
True
# (If necessary) Add the infos needed to access the database files
if
settings
.
DATASETS_UID
is
not
None
:
configuration
[
"datasets_uid"
]
=
settings
.
DATASETS_UID
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment