Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tank
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
tank
Commits
6f05ce5f
Commit
6f05ce5f
authored
6 years ago
by
Christian Pointner
Browse files
Options
Downloads
Patches
Plain Diff
added some TODOs
parent
47885a55
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
api/v1/api_groups.go
+2
-0
2 additions, 0 deletions
api/v1/api_groups.go
api/v1/utils.go
+1
-1
1 addition, 1 deletion
api/v1/utils.go
store/playlists.go
+1
-0
1 addition, 0 deletions
store/playlists.go
with
4 additions
and
1 deletion
api/v1/api_groups.go
+
2
−
0
View file @
6f05ce5f
...
...
@@ -34,6 +34,8 @@ func (api *API) ListGroups() http.Handler {
if
err
!=
nil
{
sendWebResponse
(
w
,
http
.
StatusInternalServerError
,
ErrorResponse
{
err
.
Error
()})
}
// TODO: add all groups that are not present in the store but are accessable to the user
// accroding to the auth info we got.
sendWebResponse
(
w
,
http
.
StatusOK
,
GroupsListing
{
groups
})
})
}
...
...
This diff is collapsed.
Click to expand it.
api/v1/utils.go
+
1
−
1
View file @
6f05ce5f
...
...
@@ -44,7 +44,7 @@ func sendStoreError(w http.ResponseWriter, err error) {
case
store
.
ErrNotFound
:
code
=
http
.
StatusNotFound
case
store
.
ErrFileInUse
:
code
=
http
.
Status
Locked
code
=
http
.
Status
Conflict
}
sendWebResponse
(
w
,
code
,
ErrorResponse
{
err
.
Error
()})
}
...
...
This diff is collapsed.
Click to expand it.
store/playlists.go
+
1
−
0
View file @
6f05ce5f
...
...
@@ -87,6 +87,7 @@ func (st *Store) CreatePlaylist(group string, playlist Playlist) (*Playlist, err
playlist
.
ID
=
0
playlist
.
GroupName
=
group
err
:=
st
.
db
.
Create
(
&
playlist
)
.
Error
// TODO: the returned playlist object will not contain properly initialized File Objects
return
&
playlist
,
err
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment