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
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-04Create an event on epic actionsJan Provaznik
Creates new event when an epic is created, closed, reopened or commented.
2019-08-30Merge branch 'security-61974-limit-issue-comment-size' into 'master'GitLab Release Tools Bot
Limit the size of issuable description and comments See merge request gitlab/gitlabhq!3267
2019-08-23Update sort options for issues listAlexandru Croitor
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-22Limit the size of issuable description and commentsAlexandru Croitor
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-07-18CE port for milestones should not be set on epics issue promotionEugenia Grieff
2019-07-04Ignore min_chars_for_partial_matching unles trigrmMario de la Ossa
If we're not using a trigram index, then ignore the min_chars_for_partial_matching setting
2019-06-18Expose merge requests count based on user accessAlexandru Croitor
Count issues related merge requests based on user access level. And issue can have related MRs from projects where user does not have access so the number of related merge requests should be adjusted based on user's ability to access the related MRs. https://gitlab.com/gitlab-org/gitlab-ce/issues/59581
2019-04-30Remove deprecated uses of attribute_changed?Heinrich Lee Yu
Prepares us for upgrade to Rails 5.2
2019-04-18Aligned changes to Issuable with EEPatrick Derichs
2019-04-09[CE] Support multiple assignees for merge requestsOswaldo Ferreira
Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
2019-04-04Extend CTE search optimisation to projectsSean McGivern
When we use the `search` param on an `IssuableFinder`, we can run into issues. We have trigram indexes to support these searches. On GitLab.com, we often see Postgres's optimiser prioritise the (global) trigram indexes over the index on `project_id`. For group and project searches, we know that it will be quicker to filter by `project_id` first, as it returns fewer rows in most cases. For group issues search, we ran into this issue previously, and went through the following iterations: 1. Use a CTE on the project IDs as an optimisation fence. This prevents the planner from disregarding the index on `project_id`. Unfortunately it breaks some types of sorting, like priority and popularity, as they sort on a joined table. 2. Use a subquery for listing issues, and a CTE for counts. The subquery - in the case of group lists - didn't help as much as the CTE, but was faster than not including it. We can safely use a CTE for counts as they don't have sorting. Now, however, we're seeing the same issue in a project context. The subquery doesn't help at all there (it would only return one row, after all). In an attempt to keep total code complexity under control, this commit removes the subquery optimisation and applies the CTE optimisation only for sorts we know that are safe. This means that for more complicated sorts (like priority and popularity), the search will continue to be very slow. If this is a high-priority issue, we can consider introducing further optimisations, but this finder is already very complicated and additional complexity has a cost. The group CTE optimisation is controlled by the same feature flag as before, `attempt_group_search_optimizations`, which is enabled by default. The new project CTE optimisation is controlled by a new feature flag, `attempt_project_search_optimizations`, which is disabled by default.
2019-03-27Merge masterFelipe Artur
2019-03-04Merge dev master into GitLab.com masterYorick Peterse
2019-03-04Merge branch 'security-2773-milestones-fix' into 'master'Yorick Peterse
[master] Check issue milestone availability See merge request gitlab/gitlabhq!2788
2019-02-27Reduce code duplicationAlexander Koval
Move logic of obtaining Issuable data to separate method
2019-02-26Revert "Merge branch '56726-fix-n+1-in-issues-and-merge-requests-api' into ↵Heinrich Lee Yu
'master'" This reverts merge request !25042
2019-02-26Reduce code duplicationAlexander Koval
Move logic of obtaining Issuable data to separate method
2019-02-21Allow IssuableFinder to filter by closed_atRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-02-14Check issue milestone availabilityJarka Košanová
Add project when creating milestone in specs We validate milestone is from the same project/parent group as issuable -> we need to set project in specs correctly Improve methods names and specs organization
2019-02-13Code improvementsFelipe Artur
2019-02-11Migrate issuable states to integer patch 1Felipe Artur
Patch 1 that migrates issues/merge requests states from integer to string. On this commit we are only adding the state_id column and syncing it with a backgroud migration. On Patch 2 the code to use the new integer column will be deployed and the old column will be removed.
2019-02-05Merge branch 'search-title' into 'master'Sean McGivern
Add 'in' filter that modifies scope of 'search' filter to issues and merge requests API See merge request gitlab-org/gitlab-ce!24350
2019-01-31Add back call to execute_hooksBrett Walker
2019-01-14Add 'in' filter that modifies scope of 'search' filter to issues and merge ↵Hiroyuki Sato
requests API
2018-12-06Sort issues and merge requests in ascending and descending orderFatih Acet
2018-11-23Filter by `None`/`Any` for labels in issues/mrs APIJacopo
By using the parameters `?labels=None|Any` the user can filter issues/mrs from the API that has `none/any` label. Affected endpoints are: - /api/issues - /api/projects/:id/issues - /api/groups/:id/issues - /api/merge_requests - /api/projects/:id/merge_requests - /api/groups/:id/merge_requests
2018-11-01Fix typos in comments and specsGeorge Tsiolis
2018-10-23Redact unsubscribe links in issuable textsJan Provaznik
It's possible that user pastes accidentally also unsubscribe link which is included in footer of notification emails. This unsubscribe link contains personal token which attacker then use to act as the original user (e.g. for sending comments under his/her identity).
2018-10-03Allows to filter issues by `Any milestone` in the APIJacopo
In GET `api/v4/projects/:id/issues` the user can filter issues that have an assigned milestone through the parameter `milestone=Any+Milestone`.
2018-09-07Use ResourceLabelEvent for tracking label changesJan Provaznik
2018-09-06Resolve "Migrate issue labels and milestone to related merge request"Tiago Botelho
2018-08-29Updates code using class_methods over module ClassMethodsJacopo
2018-08-08Merge branch 'frozen-string-enable-app-models-even-more' into 'master'Stan Hu
Enable more frozen string in app/models/**/*.rb See merge request gitlab-org/gitlab-ce!21019
2018-08-07Merge branch 'osw-fix-missing-and-duplicated-milestones-on-list' into 'master'Sean McGivern
Fix missing and duplicates on project milestone listing page Closes #37078 See merge request gitlab-org/gitlab-ce!21058
2018-08-07Fix missing and duplicates on project milestone listing pageOswaldo Ferreira
2018-08-07Enable more frozen string in app/models/**/*.rbgfyoung
Partially addresses #47424.
2018-08-02Revert "Revert "Merge branch 'ee-5481-epic-todos' into 'master'""Jarka Kadlecová
This reverts commit 8717c7dad9b5a8fa21ec9a652c54718a6b4c2175.
2018-07-11Revert "Merge branch 'ee-5481-epic-todos' into 'master'"Jarka Kadlecová
This reverts commit 4d9a3f42f1fd3be21555e19872b7121cca65015e, reversing changes made to ecf9c145f6e4d170cd059df88743393d9e63c489.
2018-07-03[backend] Addressed review commentsJan Provaznik
* Group filtering now includes also issues/MRs from subgroups/subprojects * fixed due_date * Also DRYed todo controller specs
2018-06-21Changes tab VUE refactoringFelipe Artur
2018-05-30Ensure metrics regardless of being imported on MRsOswaldo Ferreira
2018-04-18Revert the addition of goldiloaderYorick Peterse
This reverts the addition of the "goldiloader" Gem and all use of it. While this Gem is very promising it's causing a variety of problems on GitLab.com due to it eager-loading too much data in places where we don't expect/can handle this. At least for the time being this means we have to go back to manually fixing N+1 query problems, but at least those should not cause a negative impact on availability.
2018-04-09Use Goldiloader for handling N+1 queriesYorick Peterse
Goldiloader (https://github.com/salsify/goldiloader) can eager load associations automatically. This removes the need for adding "includes" calls in a variety of different places. This also comes with the added benefit of not having to eager load data if it's not used.
2018-04-04[Rails5] Rename `sort` methods to `sort_by_attribute`blackst0ne
2018-03-07Merge branch 'jprovazn-api' into 'master'Sean McGivern
Add discussion API See merge request gitlab-org/gitlab-ce!17510
2018-03-07Add discussion APIJan Provaznik
* adds basic discussions API for issues and snippets * reorganizes notes specs (so same tests can be used for all noteable types - issues, MRs, snippets)
2018-03-05Adds updated_at filter to issues and merge_requests APIJacopo
2018-01-11Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉
2018-01-02Cache merged and closed events data in merge_request_metrics tableOswaldo Ferreira