Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-02-01Track and act upon the number of executed queriesYorick Peterse
This ensures that we have more visibility in the number of SQL queries that are executed in web requests. The current threshold is hardcoded to 100 as we will rarely (maybe once or twice) change it. In production and development we use Sentry if enabled, in the test environment we raise an error. This feature is also only enabled in production/staging when running on GitLab.com as it's not very useful to other users.
2018-01-11Merge branch '39214__pipeline_api' into 'master'Sean McGivern
Add `pipelines` endpoint to merge requests API Closes #39214 See merge request gitlab-org/gitlab-ce!15454
2018-01-10Fix styleTony Rom
2018-01-05API: get participants from merge_requests & issuesBrent Greeff
2017-12-20Add optional `search` param for Merge Requests APIMark Fletcher
2017-12-20Employ declared_params in finder methods for MR and Issue API listsMark Fletcher
- Ensure that unwanted params are no passed to actual finder classes
2017-12-15Add `pipelines` endpoint to merge requests APITony Rom
2017-11-25Create issue and merge request destroy servicesGeorge Andrinopoulos
2017-11-23Use latest_merge_request_diff associationSean McGivern
Compared to the merge_request_diff association: 1. It's simpler to query. The query uses a foreign key to the merge_request_diffs table, so no ordering is necessary. 2. It's faster for preloading. The merge_request_diff association has to load every diff for the MRs in the set, then discard all but the most recent for each. This association means that Rails can just query for N diffs from N MRs. 3. It's more complicated to update. This is a bidirectional foreign key, so we need to update two tables when adding a diff record. This also means we need to handle this as a special case when importing a GitLab project. There is some juggling with this association in the merge request model: * `MergeRequest#latest_merge_request_diff` is _always_ the latest diff. * `MergeRequest#merge_request_diff` reuses `MergeRequest#latest_merge_request_diff` unless: * Arguments are passed. These are typically to force-reload the association. * It doesn't exist. That means we might be trying to implicitly create a diff. This only seems to happen in specs. * The association is already loaded. This is important for the reasons explained in the comment, which I'll reiterate here: if we a) load a non-latest diff, then b) get its `merge_request`, then c) get that MR's `merge_request_diff`, we should get the diff we loaded in c), even though that's not the latest diff. Basically, `MergeRequest#merge_request_diff` is the latest diff in most cases, but not quite all.
2017-10-30Fix namespacing for MergeWhenPipelineSucceedsService in MR APIMark Fletcher
2017-10-06Merge branch '18608-lock-issues-v2' into 'master'Sean McGivern
Resolve "Lock issue and merge request" Closes #18608 See merge request gitlab-org/gitlab-ce!14531
2017-10-05Remove 'Repo' prefix from API entitesVitaliy @blackst0ne Klachkov
2017-09-20Merge remote-tracking branch 'origin/master' into 18608-lock-issuesLuke "Jared" Bennett
2017-09-18fix #35290 Make read-only API for public merge requests available without ↵haseeb
authentication
2017-09-14Support discussion lock in the APIJarka Kadlecova
2017-09-05Add my_reaction_emoji param to /merge_requests APIHiroyuki Sato
2017-08-31API: Use defined project requirementsRobert Schilling
2017-08-30Merge branch '28453-add-time-estimate-time-spent-to-api-issue-output' into ↵Robert Speicher
'master' Add time stats to Issue and Merge Request API Closes #28453 See merge request !13335
2017-08-29Add time stats to issue and merge request API end pointsTravis Miller
2017-08-28Conditionally destroy a ressourceRobert Schilling
2017-08-28API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling
2017-07-28Default /merge_request API endpoint to `scope=created-by-me`Toon Claes
This matches the behavior of the /issues endpoint.
2017-07-28Add top-level /merge_requests API endpointToon Claes
And add support for additional query parameters: - `author_id`: Returns merge requests created by the given user `id` - `assignee_id`: Returns merge requests assigned to the given user `id` - `scope`: Return merge requests for the given scope: `created-by-me`, `assigned-to-me` or `all`
2017-07-24Support both internal and external issue trackersJarka Kadlecova
2017-07-20Update grape gemDmitriy Zaporozhets
New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-07-11Use view=simple for simplifying merge requests APIStan Hu
2017-07-11Add a simple mode to merge request APIStan Hu
The current "basic" merge request API still loads too much data. For integrations like the Trello Power-up, we just need the basics. Closes #34920
2017-07-11Fix sort ordering with merge request APIStan Hu
2017-07-10Paginate the merge requests API earlier to avoid eager loading every merge ↵Stan Hu
request Fixes a performance regression introduced in !12732
2017-07-09Remove remaining N+1 queries in merge requests API with emojis and labelsStan Hu
Closes #34159
2017-07-08Remove many N+1 queries with merge requests APIStan Hu
Identified via `ENABLE_BULLET=1 bundle exec rspec spec/requests/api/merge_requests_spec.rb:34` Improves speed of #34159
2017-06-19Merge branch 'add-since-and-until-params-to-issuables' into 'master'Rémy Coutable
add created_after and created_before params to issuables Closes #32901 See merge request !12151
2017-06-19add since and until params to issuablesKyle Bishop
2017-06-16Fix API bug accepting wrong merge requests parametersFelipe Artur
2017-04-27Fix 404 when upstream has disabled merge requestsmhasbini
2017-04-25Ability to filter merge requests by labels and milestonesRobert Schilling
2017-04-24Fix updating merge_when_build_succeeds via merge API endpointChris Wilson
When updating a merge request via the `/merge` endpoint we check the `mergeable` and `mergeable_state` status, these will return `false` if the application option only_allow_merge_if_pipeline_succeeds is enabled. We should skip CI checks if the request uses the merge_when_pipeline_succeeds param Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/22740
2017-04-10Separate CE params on Grape APIOswaldo Ferreira
2017-03-27Remove `:id/merge_requests/:merge_request_iid/comments` endpointsToon Claes
Comments for a merge request should be obtained to the `notes` endpoint.
2017-03-16Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable
API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-07API routes referencing a specific merge request should use the MR `iid`Timothy Andrew
- As opposed to the `id` that was previously being used. - This brings the API routes closer to the web interface's routes. - This is specific to API v4.
2017-03-06Remove "subscribed" field from API responses returning list of issues or ↵Adam Niedzielski
merge requests
2017-03-01Update occurrences of MWBS to MWPSJames Lopez
Rename column in the database Rename fields related to import/export feature Rename API endpoints Rename documentation links Rename the rest of occurrences in the code Replace the images that contain the words "build succeeds" and docs referencing to them Make sure pipeline is green and nothing is missing. updated doc images renamed only_allow_merge_if_build_succeeds in projects and fixed references more updates fix some spec failures fix rubocop offences fix v3 api spec fix MR specs fixed issues with partials fix MR spec fix alignment add missing v3 to v4 doc wip - refactor v3 endpoints fix specs fix a few typos fix project specs copy entities fully to V3 fix entity error more fixes fix failing specs fixed missing entities in V3 API remove comment updated code based on feedback typo fix spec
2017-02-16Paginate all endpoints that return an arrayRobert Schilling
2017-02-09Update MergeRequest API state_event option documentationJames Edwards-Jones
2017-02-06Remove deprecated MR and Issue endpoints and preserve V3 namespaceOswaldo Ferreira
2017-01-23Merge branch 'fix-api-mr-permissions' into 'security'Robert Speicher
Ensure that only privileged users can access merge requests in the API See merge request !2053
2017-01-18Add some API endpoints for time tracking.Ruben Davila
New endpoints are: POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/time_estimate" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/reset_time_estimate" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/add_spent_time" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/reset_spent_time" GET :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/time_stats"
2016-12-13Don't allow blank MR titles in APIRobert Schilling
2016-12-09Merge branch 'api-remove-source-branch' into 'master' Rémy Coutable
API: Ability to remove source branch Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/23577 See merge request !7804