Issue 3599: Add snippets_enabled flag to projects for API
Created by: dblessing
Fixes #3599 (closed).
I have tested this for both creation and retrieval via API and it all works as described. I applied these changes and tested on a master branch build.
Merge request reports
Activity
38 38 # name (required) - name for new project 39 39 # description (optional) - short project description 40 40 # default_branch (optional) - 'master' by default 41 # issues_enabled (optional) - enabled by default 42 # wall_enabled (optional) - enabled by default 43 # merge_requests_enabled (optional) - enabled by default 44 # wiki_enabled (optional) - enabled by default 41 # issues_enabled (optional) 38 38 # name (required) - name for new project 39 39 # description (optional) - short project description 40 40 # default_branch (optional) - 'master' by default 41 # issues_enabled (optional) - enabled by default 42 # wall_enabled (optional) - enabled by default 43 # merge_requests_enabled (optional) - enabled by default 44 # wiki_enabled (optional) - enabled by default 41 # issues_enabled (optional) Created by: dblessing
I meant to mention my reasoning when I submitted the PR. In current master, new configuration was added to allow the user to set their own defaults in gitlab.yml. The defaults in the comments no longer apply. There may be another message that would be appropriate there. If you want me to back out that change or add different comments I can do that. It seemed wrong to leave it or to add a comment to the parameter I added if it was not going to apply any longer. I'll wait for feedback on this before squashing commits in case I need to change anything.
See https://github.com/gitlabhq/gitlabhq/blob/master/config/gitlab.yml.example#L41 and https://github.com/gitlabhq/gitlabhq/blob/master/app/contexts/projects/create_context.rb#L12
By Administrator on 2013-05-19T18:30:15 (imported from GitLab project)
By Administrator on 2013-05-19T18:30:15 (imported from GitLab)
38 38 # name (required) - name for new project 39 39 # description (optional) - short project description 40 40 # default_branch (optional) - 'master' by default 41 # issues_enabled (optional) - enabled by default 42 # wall_enabled (optional) - enabled by default 43 # merge_requests_enabled (optional) - enabled by default 44 # wiki_enabled (optional) - enabled by default 41 # issues_enabled (optional) Created by: coveralls
Changes Unknown when pulling 751cef70 on bke-drewb:3599 into * on gitlabhq:master*.
By Administrator on 2013-05-19T18:44:15 (imported from GitLab project)
By Administrator on 2013-05-19T18:44:15 (imported from GitLab)