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-03-28Check if labels are available for target issuableJarka Košanová
- labels have to be in the same project/group as an issuable
2019-01-31Incorporate feedback from NickRobert Schilling
2019-01-24Enable the Layout/ExtraSpacing copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-11Fix several ActionController::Parameters deprecationsJasper Maes
2018-12-13Fix deprecation: Passing ActiveRecord::Base objects to ↵Jasper Maes
sanitize_sql_hash_for_assignment
2018-10-26Replace deprecated uniq on a Relation with distinctJasper Maes
2018-09-17Added FromUnion to easily select from a UNIONYorick Peterse
This commit adds the module `FromUnion`, which provides the class method `from_union`. This simplifies the process of selecting data from the result of a UNION, and reduces the likelihood of making mistakes. As a result, instead of this: union = Gitlab::SQL::Union.new([foo, bar]) Foo.from("(#{union.to_sql}) #{Foo.table_name}") We can now write this instead: Foo.from_union([foo, bar]) This commit also includes some changes to make this new setup work properly. For example, a bug in Rails 4 (https://github.com/rails/rails/issues/24193) would break the use of `from("sub-query-here").includes(:relation)` in certain cases. There was also a CI query which appeared to repeat a lot of conditions from an outer query on an inner query, which isn't necessary. Finally, we include a RuboCop cop to ensure developers use this new module, instead of using Gitlab::SQL::Union directly. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/51307
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-07Use ResourceLabelEvent for tracking label changesJan Provaznik
2018-08-16Whitelist existing destroy_all offensesYorick Peterse
This whitelists all existing places where we use "destroy_all".
2018-07-16Enable frozen string in apps/services/**/*.rbgfyoung
For directories application_settings --> labels. Partially addresses #47424.
2018-07-04Backport from EE !5954Mark Chao
Allow Labels::FindOrCreateService to find ancestor group labels Add authentication check on API endpoint Update flayignore
2018-04-19Fix label links update on project transferJan Provaznik
2018-02-26Allow to find labels in ancestor groups and better group support in label ↵Jan Provaznik
service
2018-01-12Keep subscribers when promoting labels to group labelsJarka Kadlecová
2017-11-16Adds Rubocop rule for line break after guard clauseJacopo
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-08-08Re-enable SqlInjection and CommandInjectionBrian Neel
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-03-29Labels support color names in backendDongqing Hu
2017-01-31Abillity to promote project labels to group labelsRitave
Fixes #24021
2016-11-29Merge branch 'zj-fix-label-creation-non-members' into 'security'Douwe Maan
Fix label creation non members Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23416 See merge request !2006
2016-10-28Pass user instance to Labels::FindOrCreateService or skip_authorization: trueAdam Niedzielski
Do not pass project.owner because it may return a group and Labels::FindOrCreateService throws an error in this case. Fixes #23694.
2016-10-19Avoid touch label links that does not belongs to project when moving itDouglas Barbosa Alexandre
2016-10-19Rename Labels::CreateService to Labels::FindOrCreateServiceDouglas Barbosa Alexandre
2016-10-19User Labes::CreateService to create labelsDouglas Barbosa Alexandre
2016-10-19Add service to create project labelsDouglas Barbosa Alexandre
2016-10-19Recreates the label priorities when moving project to another groupDouglas Barbosa Alexandre
2016-10-19Skip update query if label have the same id on Labels::TransferServiceDouglas Barbosa Alexandre
2016-10-19Recreates missing group labels when moving project to another groupDouglas Barbosa Alexandre
2015-11-16Refactor global and group milestones logicDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-14Allow dashboard and group issues/MRs to be filtered by labelDouwe Maan