summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | Missing parameters of docker payloadKamil Trzcinski2016-04-291-2/+21
| | | | | | | |
| | * | | | | | AudienceKamil Trzcinski2016-04-291-0/+1
| | | | | | | |
| | * | | | | | Auth tokenKamil Trzcinski2016-04-291-1/+2
| | | | | | | |
| | * | | | | | Try to fix auth serviceKamil Trzcinski2016-04-291-17/+17
| | | | | | | |
| | * | | | | | Make images_enabled configurableKamil Trzcinski2016-04-292-1/+7
| | | | | | | |
| | * | | | | | Added authentication service for docker registryKamil Trzcinski2016-04-292-0/+167
| | | | | | | |
| * | | | | | | Clean up LegacyDiffNote somewhatDouwe Maan2016-05-131-1/+1
| | | | | | | |
| * | | | | | | Extract LegacyDiffNote out of NoteDouwe Maan2016-05-132-3/+5
| | |_|/ / / / | |/| | | | |
| * | | | | | Codestyle: make sure we have space around operatorsGabriel Mazetto2016-05-131-1/+1
| | | | | | |
| * | | | | | Add API endpoints for un/subscribing from/to a labelAhmad Sherif2016-05-127-77/+80
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | Closes #15638
| * | | | | Merge branch '17249-starred' into 'master' Robert Speicher2016-05-111-1/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restrict starred projects to viewable ones `User#starred_projects` doesn't perform any visibility checks. This has a couple of problems: 1. It assumes a user can always view all of their starred projects in perpetuity (project not changed to private, access revoked, etc.). 2. It assumes that we'll only ever allow a user to star a project they can view. This is currently the case, but bugs happen. Add `User#viewable_starred_projects` to filter the starred projects by those the user either has explicit access to, or are public or internal. Then use that in all places where we list the user's starred projects. Closes #17249. See merge request !4108
| | * | | | | Restrict starred projects to viewable onesSean McGivern2016-05-101-1/+1
| | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `User#starred_projects` doesn't perform any visibility checks. This has a couple of problems: 1. It assumes a user can always view all of their starred projects in perpetuity (project not changed to private, access revoked, etc.). 2. It assumes that we'll only ever allow a user to star a project they can view. This is currently the case, but bugs happen. Add `User#viewable_starred_projects` to filter the starred projects by those the user either has explicit access to, or are public or internal. Then use that in all places where we list the user's starred projects.
* | | | | | Reuse the private token param and header for personal access tokens.Timothy Andrew2016-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3749#note_11626427 - Personal access tokens are still a separate entity as far as the codebase is concerned - they just happen to use the same entry point as private tokens. - Update tests and documentation to reflect this change
* | | | | | Merge remote-tracking branch 'origin/master' into 2979-personal-access-tokensTimothy Andrew2016-05-118-178/+216
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Fix a few places where autoloading would failRémy Coutable2016-05-103-169/+172
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix naming of API::CommitStatuses - Ensure we use require_dependency instead of require - Ensure the namespace is right in lib/api/api.rb, otherwise, we might require Grape::API::Helpers which defines the `#params` method. This is to avoid requiring a file multiple times and getting an "Already initialized constant" error. Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | Expose MergeRequest#user_notes_count in the API and use the method in issues ↵Rémy Coutable2016-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | list Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | API: Expose Issue#user_notes_countcnam-dep2016-05-091-1/+1
| | |/ / | |/| |
| * | | Merge branch 'pacoguzman/gitlab-ce-15001-since-and-until-operators-api-commits'Douwe Maan2016-05-042-1/+23
| |\ \ \ | | | | | | | | | | | | | | | | | | | | # Conflicts: # Gemfile.lock
| | * | | API support for the 'since' and 'until' operators on commit requestsPaco Guzman2016-04-292-1/+23
| | | | | | | | | | | | | | | - Parameter validation as ISO8601 format
| * | | | Merge remote-tracking branch 'dev/master' into 'master'Robert Speicher2016-05-022-6/+19
| |\ \ \ \ | | |_|/ / | |/| | |
| | * | | Merge branch '15579-filter-milestone-confidential-issues-api' into 'master' Robert Speicher2016-04-261-1/+9
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevent information disclosure via milestone API Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15579 See merge request !1961
| | | * | | Filter confidential issues from milestones API if user does not have accessStan Hu2016-04-251-1/+9
| | | |/ / | | | | | | | | | | | | | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15579
| | * | | Prevent private snippets in public/internal projects from being leaked via APIStan Hu2016-04-251-5/+10
| | |/ / | | | | | | | | | | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15580
* | | | Combine `API::Helpers::Core` and `API::Helpers::Authentication` back into ↵Timothy Andrew2016-04-284-407/+398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `API::Helpers` - Makes the MR easier to read; this can go in a separate MR - This is a (sort of) revert of 99bea01
* | | | Make fixes based on @vsizov's comments on MR !3749Timothy Andrew2016-04-281-1/+1
| | | |
* | | | Fix rubocop complaints.Timothy Andrew2016-04-282-11/+11
| | | |
* | | | Allow revoking personal access tokens.Timothy Andrew2016-04-281-1/+1
| | | |
* | | | Allow personal access tokens to be specified in a header.Timothy Andrew2016-04-281-4/+4
| | | | | | | | | | | | | | | | - In addition to a param.
* | | | Allow personal access tokens to be used for API authentication.Timothy Andrew2016-04-281-2/+14
| | | |
* | | | Refactor `API::Helpers` into `API::Helpers::Core` and ↵Timothy Andrew2016-04-284-386/+395
|/ / / | | | | | | | | | `API::Helpers::Authentication`
* | | Use ActionDispatch Remote IP for Akismet checkingStan Hu2016-04-271-2/+2
|/ / | | | | | | | | | | | | | | Previously all remote IPs appeared at 127.0.0.1, which made Akismet not very useful. Using the ActionDispatch Remote IP (http://api.rubyonrails.org/classes/ActionDispatch/RemoteIp.html) should provide more reliable results. Closes #16629
* | Prevent users from deleting Webhooks via API they do not ownStan Hu2016-04-241-2/+2
| | | | | | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15576
* | Merge branch 'ci-commit-as-pipeline' into 'master' Kamil Trzciński2016-04-211-4/+17
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ci::Commit becomes a Pipeline object 1. Ci::Commit receives context: ref, :tag. 1. One Ci::Commit describes a one Pipeline 1. Pipeline is created from `.gitlab-ci.yml` 1. Pipeline is a ordered group of builds 1. We test MR against Pipeline 1. Pipelines have a separate view (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Pipeline can be triggered from UI (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Later we change `Trigger -> TriggerRequest -> Build` to `Trigger -> Pipeline` (future) 1. We add a Pipeline Hook that will be triggered on Pipeline status change (future) 1. We extend notifications to use `Pipeline Hook` to send summary on pipeline changes (future) After merging that I'll prepare a separate MR that will unify naming, database columns, table names: ``` Ci::Commit -> Pipeline Ci::Build -> Build CommitStatus -> Job GenericCommitStatus -> ExternalJob ci_commits -> pipelines ci_builds -> jobs ``` This MR implements first 5 points. This is made to solve this issue https://gitlab.com/gitlab-org/gitlab-ce/issues/14149. See merge request !3653
| * \ Merge remote-tracking branch 'origin/master' into ci-commit-as-pipelineci-commit-as-pipelineKamil Trzcinski2016-04-193-5/+13
| |\ \ | | | | | | | | | | | | | | | | # Conflicts: # db/schema.rb
| * | | Write specs for this featureKamil Trzcinski2016-04-161-6/+13
| | | |
| * | | Merge remote-tracking branch 'origin/master' into ci-commit-as-pipelineKamil Trzcinski2016-04-165-2/+120
| |\ \ \ | | | |/ | | |/| | | | | | | | | # Conflicts: # db/schema.rb
| * | | Merge remote-tracking branch 'origin/master' into ci-commit-as-pipelineKamil Trzcinski2016-04-139-15/+104
| |\ \ \
| * | | | Fix specsKamil Trzcinski2016-04-111-4/+10
| | | | |
| * | | | Use Ci::Commit as PipelineKamil Trzcinski2016-04-111-1/+1
| | | | |
* | | | | Fix setting of "action" for Grape transactionsYorick Peterse2016-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merely setting the "action" tag will only result in the transaction itself containing a value for this tag. To ensure other metrics also contain this tag we must set the action using Transaction#action= instead.
* | | | | Merge branch 'license-templates-and-api-12804' into 'master' Robert Speicher2016-04-203-0/+71
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | License templates when creating/editing a LICENSE file Closes #12804 See merge request !3660
| * | | | Rename License entity to RepoLicense to avoid conflict with EElicense-templates-and-api-12804Rémy Coutable2016-04-192-3/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | Update to licensee 8.0.0 and fix API specsRémy Coutable2016-04-181-4/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | Fix features specs (hopefully)Rémy Coutable2016-04-181-3/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | Continue implementation of the license template selector and /licenses API ↵Rémy Coutable2016-04-182-13/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | endpoint Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | Initial implementation if license template selector and /licenses/:key API ↵Anton Davydov2016-04-182-0/+28
| | |_|/ | |/| | | | | | | | | | endpoint
* | | | Merge branch 'api-fix-annotated-tags' into 'master' Rémy Coutable2016-04-191-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API: Present an array of Gitlab::Git::Tag instead of array of rugged tags The annotated message was always `null` because the wrong array was presented. The entity requires an array of `Gitlab::Git::Tags` instead an array of raw rugged tags was presented. Since a rugged tag does not respond to `message` to get the annotated message, this was always `null`. See merge request !3764
| * | | | API: Present an array of Gitlab::Git::Tag instead of array of rugged tagsRobert Schilling2016-04-171-1/+1
| |/ / /
* | | | Add "action" tag to /internal/allowed APIYorick Peterse2016-04-181-2/+4
| | | | | | | | | | | | | | | | | | | | This allows us to re-use any other analytics that rely on the "action" tag having a value set.
* | | | Add changelog entryFelipe Artur2016-04-181-1/+1
| | | |