Commit Graph

273 Commits

Author SHA1 Message Date
GitLab Bot 5231344d99 Add latest changes from gitlab-org/gitlab@master 2021-02-11 15:09:11 +00:00
GitLab Bot 89b770bb38 Add latest changes from gitlab-org/gitlab@master 2021-02-08 18:09:49 +00:00
GitLab Bot 8f534e1e96 Add latest changes from gitlab-org/gitlab@master 2021-01-14 21:10:37 +00:00
GitLab Bot 35aeb676e8 Add latest changes from gitlab-org/gitlab@master 2020-12-18 00:10:04 +00:00
GitLab Bot 12d3a6f921 Add latest changes from gitlab-org/gitlab@master 2020-12-11 06:10:17 +00:00
GitLab Bot 707742e59c Add latest changes from gitlab-org/gitlab@master 2020-12-08 09:09:41 +00:00
GitLab Bot b4ddc24045 Add latest changes from gitlab-org/gitlab@master 2020-12-08 00:09:45 +00:00
GitLab Bot 839dad17a1 Add latest changes from gitlab-org/gitlab@master 2020-12-04 21:09:29 +00:00
GitLab Bot 8322f05174 Add latest changes from gitlab-org/gitlab@master 2020-12-04 12:09:39 +00:00
GitLab Bot f8bb64721a Add latest changes from gitlab-org/gitlab@master 2020-11-26 06:09:20 +00:00
GitLab Bot c019f48555 Add latest changes from gitlab-org/gitlab@master 2020-11-24 21:09:39 +00:00
GitLab Bot aa874f4242 Add latest changes from gitlab-org/gitlab@master 2020-11-20 12:09:35 +00:00
GitLab Bot 5d066c532d Add latest changes from gitlab-org/gitlab@master 2020-11-09 03:09:03 +00:00
GitLab Bot 74d35955aa Add latest changes from gitlab-org/gitlab@master 2020-11-06 03:09:19 +00:00
GitLab Bot 07c452dfa0 Add latest changes from gitlab-org/gitlab@master 2020-10-30 21:08:52 +00:00
GitLab Bot 3e49ae159a Add latest changes from gitlab-org/gitlab@master 2020-10-28 18:08:52 +00:00
GitLab Bot e72b53e81e Add latest changes from gitlab-org/gitlab@master 2020-10-02 18:08:56 +00:00
GitLab Bot 186e045e14 Add latest changes from gitlab-org/gitlab@master 2020-10-01 00:10:16 +00:00
GitLab Bot 654281e682 Add latest changes from gitlab-org/gitlab@master 2020-09-25 06:09:42 +00:00
GitLab Bot 6de7d2c195 Add latest changes from gitlab-org/gitlab@master 2020-09-16 15:09:32 +00:00
GitLab Bot 766b24b86b Add latest changes from gitlab-org/gitlab@master 2020-09-10 12:08:54 +00:00
GitLab Bot a865379008 Add latest changes from gitlab-org/gitlab@master 2020-09-07 12:08:27 +00:00
GitLab Bot 477c2c2604 Add latest changes from gitlab-org/gitlab@master 2020-09-04 09:08:38 +00:00
GitLab Bot eef9c80f1c Add latest changes from gitlab-org/gitlab@master 2020-08-27 15:10:21 +00:00
GitLab Bot 11a29f1f02 Add latest changes from gitlab-org/gitlab@master 2020-08-25 15:10:17 +00:00
GitLab Bot 77d6584e99 Add latest changes from gitlab-org/gitlab@master 2020-08-21 18:10:24 +00:00
GitLab Bot 9e68395a98 Add latest changes from gitlab-org/gitlab@master 2020-08-21 12:10:22 +00:00
GitLab Bot f2eb66fef8 Add latest changes from gitlab-org/gitlab@master 2020-08-21 03:10:16 +00:00
GitLab Bot 073ebdcae8 Add latest changes from gitlab-org/gitlab@master 2020-08-17 15:10:09 +00:00
GitLab Bot 6df7943512 Add latest changes from gitlab-org/gitlab@master 2020-08-13 15:10:03 +00:00
GitLab Bot 4e33606f01 Add latest changes from gitlab-org/gitlab@master 2020-08-13 09:10:09 +00:00
Robert Speicher 5982b74e32
Add latest changes from gitlab-org/gitlab@master 2020-08-12 13:31:49 -05:00
GitLab Bot 999f47e9e6 Add latest changes from gitlab-org/gitlab@master 2020-08-12 12:10:25 +00:00
GitLab Bot 4ab94bde3a Add latest changes from gitlab-org/gitlab@master 2020-07-22 00:09:26 +00:00
GitLab Bot bf213f07c8 Add latest changes from gitlab-org/gitlab@master 2020-07-20 18:09:27 +00:00
GitLab Bot 000087abd5 Add latest changes from gitlab-org/gitlab@master 2020-07-16 06:09:33 +00:00
GitLab Bot a898b6057e Add latest changes from gitlab-org/gitlab@master 2020-07-15 09:09:34 +00:00
GitLab Bot 18ffa5e881 Add latest changes from gitlab-org/gitlab@master 2020-07-14 18:09:55 +00:00
GitLab Bot 0a319374e7 Add latest changes from gitlab-org/gitlab@master 2020-07-08 06:09:13 +00:00
GitLab Bot 1c75400c24 Add latest changes from gitlab-org/gitlab@master 2020-07-03 09:08:53 +00:00
GitLab Bot 075ce5ae31 Add latest changes from gitlab-org/gitlab@master 2020-07-02 18:09:00 +00:00
GitLab Bot 340f15b402 Add latest changes from gitlab-org/gitlab@master 2020-06-30 15:08:48 +00:00
GitLab Bot 6046a605fd Add latest changes from gitlab-org/gitlab@master 2020-06-22 12:08:47 +00:00
GitLab Bot 6985123d92 Add latest changes from gitlab-org/gitlab@master 2020-05-28 00:08:37 +00:00
GitLab Bot ae5e7e4855 Add latest changes from gitlab-org/gitlab@master 2020-05-27 03:08:26 +00:00
GitLab Bot 0e54270ecf Add latest changes from gitlab-org/gitlab@master 2020-05-21 12:08:08 +00:00
GitLab Bot 8f306a7dc5 Add latest changes from gitlab-org/gitlab@master 2020-05-21 06:08:25 +00:00
GitLab Bot 1902e25626 Add latest changes from gitlab-org/gitlab@master 2020-05-20 21:09:09 +00:00
GitLab Bot 4e81d9c050 Add latest changes from gitlab-org/gitlab@master 2020-05-19 06:08:03 +00:00
GitLab Bot 95e18e3283 Add latest changes from gitlab-org/gitlab@master 2020-04-28 18:09:35 +00:00
GitLab Bot c2908ec6a0 Add latest changes from gitlab-org/gitlab@master 2020-04-27 15:10:16 +00:00
GitLab Bot 0d83264a7a Add latest changes from gitlab-org/gitlab@master 2020-04-15 15:09:17 +00:00
GitLab Bot 1dffba3bd8 Add latest changes from gitlab-org/gitlab@master 2020-04-01 03:07:57 +00:00
GitLab Bot 4560c92ab1 Add latest changes from gitlab-org/gitlab@master 2020-03-27 03:07:56 +00:00
GitLab Bot 4fe93274de Add latest changes from gitlab-org/gitlab@master 2020-03-04 00:07:52 +00:00
GitLab Bot c72e5ebe99 Add latest changes from gitlab-org/gitlab@master 2020-02-27 09:09:01 +00:00
GitLab Bot b98fa9ef3d Add latest changes from gitlab-org/gitlab@master 2020-02-25 09:09:10 +00:00
GitLab Bot 5ee120f467 Add latest changes from gitlab-org/gitlab@master 2020-02-18 03:08:54 +00:00
GitLab Bot 0eb3d2f799 Add latest changes from gitlab-org/gitlab@master 2020-02-06 15:09:11 +00:00
GitLab Bot b042382bbf Add latest changes from gitlab-org/gitlab@master 2020-02-05 18:09:06 +00:00
GitLab Bot 536aa3a1f4 Add latest changes from gitlab-org/gitlab@master 2020-01-30 15:09:15 +00:00
GitLab Bot b0bfadd486 Add latest changes from gitlab-org/gitlab@master 2019-12-30 12:09:15 +00:00
GitLab Bot fb73ca3398 Add latest changes from gitlab-org/gitlab@master 2019-12-27 15:08:16 +00:00
GitLab Bot 6b13a226dd Add latest changes from gitlab-org/gitlab@master 2019-11-29 09:06:31 +00:00
GitLab Bot 3269a20692 Add latest changes from gitlab-org/gitlab@master 2019-11-27 12:06:30 +00:00
GitLab Bot ff67e3ed08 Add latest changes from gitlab-org/gitlab@master 2019-11-11 18:06:27 +00:00
GitLab Bot 82cef8dd1f Add latest changes from gitlab-org/gitlab@master 2019-11-05 21:07:46 +00:00
GitLab Bot 886c682334 Add latest changes from gitlab-org/gitlab@master 2019-10-20 21:06:17 +00:00
GitLab Bot 25989ab7ef Add latest changes from gitlab-org/gitlab@master 2019-10-18 11:11:44 +00:00
GitLab Bot 1bab0ba591 Add latest changes from gitlab-org/gitlab@master 2019-10-01 09:10:39 +00:00
GitLab Bot 80f61b4035 Add latest changes from gitlab-org/gitlab@master 2019-09-18 14:02:45 +00:00
GitLab Bot bd860c22f6 Add latest changes from gitlab-org/gitlab@master 2019-09-17 12:06:48 +00:00
Winnie Hellmann 61515737a5 Add epic_iid to issue API entity
(cherry picked from commit 0bf7fecdee5a200eeb4f27b4888a57ceee63bde9)
2019-09-04 14:44:37 +00:00
Robert Speicher 7698d40550
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq 2019-08-29 17:17:37 -05:00
GitLab Release Tools Bot b01c7ad291 Merge branch 'security-61974-limit-issue-comment-size' into 'master'
Limit the size of issuable description and comments

See merge request gitlab/gitlabhq!3267
2019-08-29 21:34:15 +00:00
Stan Hu 440635015f Fix N+1 Gitaly calls in /api/v4/projects/:id/issues
This is a follow-up from
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31938.

In GitLab 9.0,
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9661 removed the
`subscribed` flag from the API when the user requested a list of issues
or merge requests since calculating this value triggers extensive
Markdown processing.

In GitLab 12.0 via a4fbf39e, we accidentally reintroduced this
performance regression by changing `IssueBasic` to `Issue` in
`entities.rb`. This showed up as a Gitaly N+1 issue since the Markdown
processing would attempt to extract a commit if it detected a regex that
matched a commit.

We restore the prior behavior by once again removing the `subscribed`
flag for the bulk list of issues and merge requests and add a test to
ensure they aren't reintroduced.

Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/66202
2019-08-23 21:26:50 -07:00
Alexandru Croitor f5b855546e Update sort options for issues list
Increase sort options for issues list from updated_at and create_at,
to include more options close to what is required in actual issue list
UI.

This helps us to use REST API for issues list with sorting capabilities

https://gitlab.com/gitlab-org/gitlab-ce/issues/57402
2019-08-23 11:32:15 +03:00
Alexandru Croitor 5af535d919 Limit the size of issuable description and comments
Limiting the size of issuable description and comments to 1_000_000,
which is close to ~1MB of ASCII characters, which represents 99.9% of
all descriptions and comments we have in DB at the moment. This should
help prevent DoS attacks when comments contain refference strings.

Also this change updates regexp matching the namespaces paths by
limiting the namespaces paths to Namespace::NUMBER_OF_ANCESTORS_ALLOWED,
as we allow 20 levels deep groups.

see https://gitlab.com/gitlab-org/gitlab-ce/issues/61974#note_191274234
2019-08-22 10:43:13 +03:00
Evan Read d35788d74b Merge branch 'docs-fix-soft-deletion' into 'master'
Fix outdated references to soft deletion

See merge request gitlab-org/gitlab-ce!31982
2019-08-21 01:04:09 +00:00
Markus Koller 44ca24f4f2
Fix outdated references to soft deletion
We stopped using soft deletion for issues and merge requests in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15789,
and for boards we apparently never used it.
2019-08-19 21:01:40 +02:00
Stan Hu ba7c501fef Fix Gitaly N+1 calls with listing issues/MRs via API
In GitLab 9.0,
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9661 removed the
`subscribed` flag from the API when the user requested a list of issues
or merge requests since calculating this value triggers extensive
Markdown processing.

In GitLab 12.0 via a4fbf39e, we accidentally reintroduced this
performance regression by changing `IssueBasic` to `Issue` in
`entities.rb`. This showed up as a Gitaly N+1 issue since the Markdown
processing would attempt to extract a commit if it detected a regex that
matched a commit.

We restore the prior behavior by once again removing the `subscribed`
flag for the bulk list of issues and merge requests and add a test to
ensure they aren't reintroduced.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66202
2019-08-17 20:35:37 -07:00
Marcel Amirault 4121c63676 Remove extra blank lines from docs
Removing extra blank lines in docs that serve
no purpose, as well as some --- lines that also
are not needed.
2019-07-15 01:04:35 +00:00
Marcel Amirault 25aa4e0322 Remove extra whitespaces in docs
Removes all the extra whitespaces at end of lines,
inside tags, and removes extra newlines
2019-07-09 03:28:41 +00:00
Marcel Amirault 73c6477b7e Changing badges to use parentheses not brackets
Previously, we used brackets to denote the tier badges,
but this made Kramdown, the docs site Markdown renderer,
show many warnings when building the site. This is now
fixed by using parentheses instead of square brackets.

This was caused by [PREMIUM] looking like a link to
Kramdown, which couldn't find a URL there.

See:
- https://gitlab.com/gitlab-com/gitlab-docs/merge_requests/484
- https://gitlab.com/gitlab-org/gitlab-ce/issues/63800
2019-07-08 08:50:38 +00:00
Marcel Amirault e108f0d961 Small markdown tweaks to clear kramdown warnings
Fixing square brackets, links, etc in:
  merge_requests.md
  vulnerabilities.md
  issues.md
  issues_statistics.md
  pipelines.md
  services.md
  group_milestones.md
  milestones.md
  runners.md
  changelog.md
  issue_workflow.md
  elasticsearch.md
  api_graphql_styleguide.md
  automatic_ce_ee_merge.md
  file_storage.md
  architecture.md
  database_debugging.md
  index.md
  index.md
  frontend_testing.md
  pry_debugging.md
  vue.md
  development_process.md
2019-07-04 22:46:12 +00:00
Marcel Amirault a347d15972 Update api docs to finish aligning EE and CE docs
Squashing a few commits and continuing work
on merging the 12 api docs that have not
been ported to CE yet.
2019-07-03 09:32:54 +00:00
Patrick Derichs b70d23c25a Add task count and completed count to responses of Issue and MR
Add spec for task_completion_status

Add test cases for task_completion_status result

Extracted shared samples

Add new spec file for task completion status response

Fix style errors

Add changelog entry

Changed samples to Hashes

Remove test for successful request

Remove not nil expectation

Add task_completion_status to api documentation for issues

Add task_completion_status to api documentation for merge_requests

Refactor spec so it just requests one specific item

Add task_completion_status to Taskable

Simplified task completion status in entities

Refactor spec so it separates status code check and content check

Fix spec description text and field name
2019-06-07 11:15:55 +02:00
Alexandru Croitor 9ff6edf690 Review updates and cleanup
* Cleaned issues and issues_statistics docs
* Renamed param with_labels_data to with_labels_details
* Added spec for N+1 check when retrieving labels from issue
* Refactoed CheckAssigneesCount validation class
2019-05-17 13:56:25 +03:00
Alexandru Croitor f117c032ac Add params validations and remove extra params support
Remove label_name and milestone_title params support
Add mutually_exclusive validation for author_id and author_username
Add mutually_exclusive validation for assignee_id and assignee_username
Add validation to allow single value for asignee_username on CE
Add separate issue_stats_params helper for statistics params and
reuse in issues_params.
2019-05-15 10:15:17 +03:00
Kamil Trzciński a555a227dd
Merge branch 'filter-confidential-issues' into 'master'
Ability to filter confidential issues

Closes #50747

See merge request gitlab-org/gitlab-ce!24960
2019-02-26 12:24:39 +01:00
Michael Kozono 9ffdd736f8
Revert "Merge branch '49449-add-an-api-endpoint-for-bulk-updating-issues-and-mrs' into 'master'"
This reverts commit 7981c0292b, reversing
changes made to 9202bbd129.
2019-02-25 12:43:14 -08:00
Michael Kozono e95b88a06d
Revert "Merge branch 'filter-confidential-issues' into 'master'"
This reverts commit d133bf84c6, reversing
changes made to 7981c0292b.
2019-02-25 12:42:34 -08:00
Kamil Trzciński d133bf84c6 Merge branch 'filter-confidential-issues' into 'master'
Ability to filter confidential issues

Closes #50747

See merge request gitlab-org/gitlab-ce!24960
2019-02-25 11:00:24 +00:00
Rémy Coutable 7981c0292b Merge branch '49449-add-an-api-endpoint-for-bulk-updating-issues-and-mrs' into 'master'
API endpoint for bulk updating issues and MRs

Closes #49449

See merge request gitlab-org/gitlab-ce!25201
2019-02-25 10:51:58 +00:00
Robert Schilling 73e3a1cd02 Add API support for filtering confidential issues 2019-02-21 14:02:38 +01:00
Patrick Derichs 4235620170 Add related merge request count to api response 2019-02-19 11:30:07 +00:00
Robert Schilling 64ed7069c7 Incorporate review feedback
Use shared examples for issues and merge requests
rather than a loop creating common specs.
2019-02-18 14:38:14 +01:00
Evan Read 47fb1c5235 Remove consecutive blank lines from markdown files
For the sake of consistency, removes any extraneous
consecutive blank lines from the doc suite.
2019-02-18 09:36:13 +00:00
Robert Schilling 6b2673bc7a Add new to test bulk_update endpoint for issues and MRs
Add documentation for issues and MRs. Add shared tests
for both bulk updating issues and MRs.
2019-02-14 23:14:23 +01:00
Sean McGivern 068b41275f Merge branch 'search-title' into 'master'
Add 'in' filter that modifies scope of 'search' filter  to issues and merge requests API

See merge request gitlab-org/gitlab-ce!24350
2019-02-05 09:52:40 +00:00