| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
due to the usage in EE this attempt to more DRYness is not worth it.
|
|
|
|
|
|
| |
as the params block is evaluated when loading the class and the db
connection is not available yet we can't use the feature toggle inside
that block.
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Resolve CE to EE differences in the lib/api directory
See merge request gitlab-org/gitlab-ce!25430
|
| |
| |
| |
| |
| | |
This allows EE to customize the parameters used in two places, without
having to modify the source code directly.
|
| |
| |
| |
| |
| | |
This backports a line from EE so that both the CE and EE code are
identical.
|
| |
| |
| |
| |
| | |
This refactors API::Settings so that EE can more easily extend its
behaviour, without having to modify the CE source code directly.
|
| |
| |
| |
| |
| |
| |
| | |
This moves various constants previously defined in API::Services to the
API::Helpers::ServicesHelpers module, using class methods instead of
constants. This allows EE to extend the returned values, without having
to modify the CE source code directly.
|
| |
| |
| |
| |
| | |
This refactors API::Search so that Enterprise Edition can more easily
extend its functionality, without having to modify the file directly.
|
| |
| |
| |
| |
| |
| | |
This moves API::ResourceLabelEventsHelpers::EVENTABLE_TYPES to a class
method in a separate helper module, allowing EE to redefine it without
having to directly modify the source code.
|
| |
| |
| |
| |
| |
| | |
This adds a method to API::Internal that returns the URL to use for LFS
authentication tokens. This makes it possible for EE to redefine this
behaviour, without having to directly modify the source code.
|
| |
| |
| |
| |
| |
| | |
Similar to creating groups in the groups API, EE injects custom code
just before we update an existing group. Moving the update logic to a
separate method in CE allows EE to more easily extend it.
|
| |
| |
| |
| |
| |
| |
| | |
EE has some custom behaviour that needs to run before and after creating
a group in the API. By moving the group creation logic to a separate
method, EE can easily extend this behaviour; without having to directly
modify the API source code.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This replaces API::Notes::NOTEABLE_TYPES and
API::Discussions::NOTEABLE_TYPES with class methods defined in a
separate helper modules. This allows EE to extend the list of noteable
types, without having to modify the constant in-place. We can't define
these methods directly in the API classes, as they would be used before
we're able to extend them in EE.
|
| |
| |
| |
| |
| |
| | |
The repository_path is no longer needed since
https://gitlab.com/gitlab-org/gitlab-shell/merge_requests/231, which closes
https://gitlab.com/gitlab-org/gitlab-shell/issues/135.
|
| |
| |
| |
| |
| | |
Instead of mixing in the shared secret into the querystring or body,
we could also specify it in a header.
|
| |
| |
| |
| |
| | |
Adds custom validator for ArrayNoneAny param
Extracts some logic in js into separate files
|
| |
| |
| |
| | |
This reverts merge request !24982
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Significantly reduce N+1 queries in /api/v4/todos endpoint
Closes #40378
See merge request gitlab-org/gitlab-ce!25711
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
By preloading associations and batching issuable metadata lookups,
we can significantly cut the number of SQL queries needed to load
the Todos API endpoint.
On GitLab.com, my own tests showed my user's SQL queries went
from 365 to under 60 SQL queries.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/40378
|
| | |
| | |
| | |
| | |
| | | |
Adds custom validator for ArrayNoneAny param
Extracts some logic in js into separate files
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Allow all snippets to be accessed by API
Closes #41888
See merge request gitlab-org/gitlab-ce!25772
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously, you could only access personal snippets in the API if you
had authored them. The documentation doesn't state that this is the
case, and it's quite surprising.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This style change enforces `return if ...` instead of
`return nil if ...` to save maintainers a few minor review points
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
PUT MergeRequest API endpoint - accept labels as an array
See merge request gitlab-org/gitlab-ce!19914
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* Support label parameter as comma separated and array of strings
for merge requests and issues api endpoints
|
| | | | | |
|
|/ / / / |
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | | |
When `force` is set to `true` and `start_branch` is set, the
branch will be ovewritten with the new commit based on the
`HEAD` of the `start_branch`.
This commit includes changes to update the `gitaly-proto` gem.
|
|/ / |
|
|\ \
| |/
|/| |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
Don't allow non-members to see private related MRs
Closes #2787
See merge request gitlab/gitlabhq!2866
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| | | |
| | | |
| | | |
| | | | |
Fix leaking private repository information in API
See merge request gitlab/gitlabhq!2881
|
| | | |
| | | |
| | | |
| | | |
| | | | |
default_branch, statistics and config_ci_path are now only exposed if
the user has permissions to the repository.
|
| |\ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Prevent Releases links API to leak tag existence
Closes #2795
See merge request gitlab/gitlabhq!2893
|
| | | | | |
|
| |\ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
'2802-security-add-public-internal-groups-as-members-to-your-project-idor' into 'master'
Add public/internal groups as members to your Project(IDOR)
See merge request gitlab/gitlabhq!2898
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Resolve "Project fetch statistics API (HTTP only)"
Closes #42086
See merge request gitlab-org/gitlab-ce!23596
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The API get projects/:id/traffic/fetches allows user with write
access to the repository to get the number of clones for the
last 30 days.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
API support for MR merge to temporary merge ref path
Closes #57252
See merge request gitlab-org/gitlab-ce!24918
|