Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
ae5cd1b6
Verified
Commit
ae5cd1b6
authored
Apr 17, 2019
by
Peter Stanko
Browse files
Should be listing user name
parent
979b47eb
Pipeline
#31522
passed with stage
in 7 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker_run.sh
View file @
ae5cd1b6
...
...
@@ -25,7 +25,7 @@ flask db upgrade
echo
"[INIT] Initializing data for env:
$ENVIRONMENT
"
flask data init
${
ENVIRONMENT
}
echo
"[INIT] Initializing admin user:
${
ADMIN_USER
}
"
flask
users
create
${
ADMIN_USER
}
--password
${
ADMIN_PASSWORD
}
--secret
${
ADMIN_SECRET
}
--gitlab
${
ADMIN_GITLAB
}
flask
users
create
${
ADMIN_USER
}
--password
"
${
ADMIN_PASSWORD
}
"
--secret
"
${
ADMIN_SECRET
}
"
--gitlab
"
${
ADMIN_GITLAB
}
"
if
[
"
$DATASETS
"
!=
""
]
;
then
echo
"[INIT] Additional datasets:
$DATASETS
"
...
...
portal/database/models.py
View file @
ae5cd1b6
...
...
@@ -163,7 +163,7 @@ class User(Client, EntityBase):
"""
UPDATABLE
=
[
'name'
,
'email'
,
'uco'
,
'gitlab_username'
,
'managed'
]
BASE_PARAMS
=
[
'username'
,
'codename'
,
'is_admin'
,
*
UPDATABLE
,
'managed'
,
'id'
]
LISTABLE
=
[
'username'
,
'gitlab_username'
]
LISTABLE
=
[
'username'
,
'gitlab_username'
,
'name'
]
__tablename__
=
'user'
id
=
db
.
Column
(
db
.
String
(
length
=
36
),
db
.
ForeignKey
(
'client.id'
),
default
=
lambda
:
str
(
uuid
.
uuid4
()),
primary_key
=
True
)
...
...
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