summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* API: fixes return codes for notes, documentation updatedSebastian Ziebell2013-02-201-0/+5
| | | | | | The notes API documentation updated with return codes. API now returns `400 Bad Request` if required attributes are not present. Return codes are documented now, also tested in added tests. The documentation now reflects the current state of the API.
* Merge branch 'master' into fixes/apiSebastian Ziebell2013-02-201-2/+2
|\ | | | | | | | | Conflicts: spec/requests/api/projects_spec.rb
| * Fix RESTfulness of project hook deletions by APIMatt Humphrey2013-02-201-2/+2
| |
* | Merge branch 'master' into fixes/apiSebastian Ziebell2013-02-2015-32/+61
|\ \ | |/ | | | | | | Conflicts: spec/requests/api/projects_spec.rb
| * Merge pull request #3011 from Asquera/fix_access_to_nonvisible_hookDmitriy Zaporozhets2013-02-201-0/+1
| |\ | | | | | | API: fixes visibility of project hook
| | * API: fixes visibility of project hookSebastian Ziebell2013-02-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | When a user is not authorized to see the list of hooks for a project, he is still able to access the hooks separately. For example if access to `GET /projects/:id/hooks` fails and returns a `403 Unauthorized` error it is still possible to access a hook directly via `GET /projects/:id/hooks/:hook_id`. Fixes access, also added tests to check access and status codes of hooks.
| * | Fix private flag for projectDmitriy Zaporozhets2013-02-191-1/+1
| | |
| * | Issue uses StateMachine nowAndrew8xx82013-02-182-6/+5
| | |
| * | Milestone uses StateMachine nowAndrew8xx82013-02-181-2/+2
| | |
| * | Merge Request uses StateMachine nowAndrew8xx82013-02-182-3/+3
| | |
| * | Prevent xss attack over group name. Added regex validation for group and ↵Dmitriy Zaporozhets2013-02-181-0/+4
| | | | | | | | | | | | team name
| * | uppercase Gitlab version and revision constants. check api return gitlab ↵Dmitriy Zaporozhets2013-02-162-3/+5
| | | | | | | | | | | | version now
| * | Merge pull request #2994 from dasbh/masterDmitriy Zaporozhets2013-02-163-9/+15
| |\ \ | | | | | | | | Fix gitlab:setup task on fresh installation
| | * | Remove hardcoded refernce to gitlab-shell home. so that gitlab can be ↵Bhagavan Das2013-02-142-7/+13
| | | | | | | | | | | | | | | | installed on any unix account other than git
| | * | rename setup to setup_db so that it does not collide with gitlab:shell:setup ↵Bhagavan Das2013-02-141-2/+2
| | | | | | | | | | | | | | | | task
| * | | fixed API access to the projectlivedata2013-02-151-1/+1
| |/ /
| * | Merge pull request #2890 from cameronyule/support_osx_groupsRiyad Preukschas2013-02-141-2/+1
| |\ \ | | | | | | | | OS X support for gitlab:check rake tasks
| | * | Replacing the manual parsing of the /etc/group file with the equivalent call ↵Cameron Yule2013-02-021-2/+1
| | | | | | | | | | | | | | | | from the Etc class in the Ruby standard library. This has the benefit of supporting additional platforms (e.g. OS X).
| * | | require missing libDmitriy Zaporozhets2013-02-141-0/+2
| | | |
| * | | Gitlab::ShellEnv addedDmitriy Zaporozhets2013-02-144-3/+22
| | | |
| * | | Update post-receive worker to use correct identifierDmitriy Zaporozhets2013-02-141-5/+2
| | |/ | |/|
* | | API: fixes return codes, documentation updated with status codes, tests addedSebastian Ziebell2013-02-201-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | The users API updated with return codes, e.g. if required parameters are missing a `400 Bad Request` error is returned instead of `404`. Fixes return codes of functions, e.g. deletion of a ssh key is an idempotent function now. The API documentation is updated to reflect the current status of the API. Descriptions are more detailed and complete, infos to return values are added to all functions.
* | | Merge branch 'master' into fixes/apiSebastian Ziebell2013-02-141-5/+5
|\ \ \ | |/ /
| * | Constants in Events looks good nowAndrew8xx82013-02-131-5/+5
| | |
* | | API: tests that check status codes for project branches and hooksSebastian Ziebell2013-02-141-3/+11
| | | | | | | | | | | | | | | Status code 422 (Unprocessable Entity) returned if invalid url is given when creating or updating a project hook.
* | | API: status code 403 returned if new project would exceed limitSebastian Ziebell2013-02-141-0/+3
| | | | | | | | | | | | | | | | | | When the project limit is reached the user is not allowed to create new ones. Instead of error code 404 the status code 403 (Forbidden) is returned with error message via API.
* | | API: extracted helper method to provide 400 bad request error with descriptionSebastian Ziebell2013-02-135-17/+23
| | | | | | | | | | | | | | | | | | Extracted a method for 400 error (Bad request) and adjusted code accordingly. The name of the missing attribute is used to show which one was missing from the request. It is used to give an appropriate message in the json response.
* | | API: return status code 400 if filepath of raw file blob not givenSebastian Ziebell2013-02-131-0/+2
| | |
* | | API: fixes a few return codes for project snippetsSebastian Ziebell2013-02-131-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using project snippets via API the functions now provide status codes for different situations other then only returning 404 error. If required parameters are missing, e.g. `title` when creating a project snippet a 400 (Bad request) error is returned. The snippet delete function now is idempotent and returns a 200 (Ok) regardless if the snippet with the given id is available or not. Changing return codes of these functions has the advantage that the 404 error is used only for resources, which are not available. Tests added to check these status codes when handling project snippets.
* | | Merge branch 'master' into fixes/apiSebastian Ziebell2013-02-135-52/+74
|\ \ \ | |/ /
| * | Merge pull request #2971 from yuters/patch-1Dmitriy Zaporozhets2013-02-121-30/+15
| |\ \ | | | | | | | | Some fix for gitlab:gitlab_shell:check
| | * | Forgot gitlab-shell folderMartin Bastien2013-02-121-2/+2
| | | |
| | * | Some fix for gitlab:gitlab_shell:checkMartin Bastien2013-02-121-30/+15
| | | | | | | | | | | | Fixing issue #2970
| * | | Merge pull request #2969 from zerustech/patch-1Dmitriy Zaporozhets2013-02-121-1/+6
| |\ \ \ | | | | | | | | | | Update lib/tasks/sidekiq.rake
| | * | | Update lib/tasks/sidekiq.rakeMichael Lee2013-02-121-1/+6
| | |/ / | | | | | | | | | | | | | | | | Mac OS uses launchd instead of /etc/init.d to start daemons and tasks to be started by launchd MUST NOT daemon itself. So "nohup" here won't work for Mac OS. Can we add a "launchd" task to the rake file so that we can start sidekiq as "bundle exec rake sidekiq:launchd" ?
| * | | Merge pull request #2946 from Asquera/fix/access_to_non_existent_branchDmitriy Zaporozhets2013-02-121-0/+1
| |\ \ \ | | | | | | | | | | API: Fixes return code when accessing non existent branch (#2922)
| | * | | Changed function to `not_found`.Sebastian Ziebell2013-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | Instead of using funtion `error!` the function `not_found!` is used to return 404 error. Adjusted documentation accordingly.
| | * | | Status code 404 returned when retrieving non existent branch (issue #2922)Sebastian Ziebell2013-02-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Accessing a repository branch that does not exist returns a 404 error instead of 200 now. Added a test.
| * | | | Merge branch 'easy-to-find-commit-on-network-graph' of ↵Dmitriy Zaporozhets2013-02-122-21/+52
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | https://github.com/hiroponz/gitlabhq into hiroponz-easy-to-find-commit-on-network-graph
| | * | | Sort the commits on network graph by commiter date.Sato Hiroyuki2013-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author date is not updated, if the commits is rebased. So the network graph having many rebased commit turns round and round, that it is very difficult to undarstand history.
| | * | | Fix bug when it has been switched to tag.Sato Hiroyuki2013-02-052-2/+5
| | | | |
| | * | | Enable to display the commit older than 650th commit.Sato Hiroyuki2013-02-051-19/+47
| | | | |
| | * | | Fix typo.Sato Hiroyuki2013-02-051-1/+1
| | | |/ | | |/|
* | | | API: changed status codes for project hooks functionsSebastian Ziebell2013-02-121-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Different status codes in the API lib are returned on hook creation, update or deletion. If a required parameter is not given (e.g. `url` in `/projects/:id/hooks/:hook_id`) status code 400 (Bad request) is returned. On hook deletion a 200 status code is returned, regardless if the hook is present or not. This makes the DELETE function an idempotent operation. Appropriate tests are added to check these status codes.
* | | | Merge branch 'master' into fixes/apiSebastian Ziebell2013-02-1214-434/+93
|\ \ \ \ | |/ / /
| * | | add import repo gitlab_shell callDmitriy Zaporozhets2013-02-111-0/+11
| | | |
| * | | No gitolite in project any moreDmitriy Zaporozhets2013-02-1111-68/+55
| | | |
| * | | FIx gitlab:env:infoDmitriy Zaporozhets2013-02-111-4/+2
| | | |
| * | | Fix gitlab:checkDmitriy Zaporozhets2013-02-111-64/+0
| | | |
| * | | removing outdated checksDmitriy Zaporozhets2013-02-091-229/+0
| | | |