Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-09-17 | Added FromUnion to easily select from a UNION | Yorick 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-11 | Disable existing offenses for the CodeReuse cops | Yorick Peterse | |
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop. | |||
2018-09-07 | Use ResourceLabelEvent for tracking label changes | Jan Provaznik | |
2018-08-16 | Whitelist existing destroy_all offenses | Yorick Peterse | |
This whitelists all existing places where we use "destroy_all". | |||
2018-07-16 | Enable frozen string in apps/services/**/*.rb | gfyoung | |
For directories application_settings --> labels. Partially addresses #47424. | |||
2018-07-04 | Backport from EE !5954 | Mark Chao | |
Allow Labels::FindOrCreateService to find ancestor group labels Add authentication check on API endpoint Update flayignore | |||
2018-04-19 | Fix label links update on project transfer | Jan Provaznik | |
2018-02-26 | Allow to find labels in ancestor groups and better group support in label ↵ | Jan Provaznik | |
service | |||
2018-01-12 | Keep subscribers when promoting labels to group labels | Jarka Kadlecová | |
2017-11-16 | Adds Rubocop rule for line break after guard clause | Jacopo | |
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses. | |||
2017-08-08 | Re-enable SqlInjection and CommandInjection | Brian Neel | |
2017-06-21 | Enable Style/DotPosition Rubocop :cop: | Grzegorz Bizon | |
2017-03-29 | Labels support color names in backend | Dongqing Hu | |
2017-01-31 | Abillity to promote project labels to group labels | Ritave | |
Fixes #24021 | |||
2016-11-29 | Merge 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-28 | Pass user instance to Labels::FindOrCreateService or skip_authorization: true | Adam 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-19 | Avoid touch label links that does not belongs to project when moving it | Douglas Barbosa Alexandre | |
2016-10-19 | Rename Labels::CreateService to Labels::FindOrCreateService | Douglas Barbosa Alexandre | |
2016-10-19 | User Labes::CreateService to create labels | Douglas Barbosa Alexandre | |
2016-10-19 | Add service to create project labels | Douglas Barbosa Alexandre | |
2016-10-19 | Recreates the label priorities when moving project to another group | Douglas Barbosa Alexandre | |
2016-10-19 | Skip update query if label have the same id on Labels::TransferService | Douglas Barbosa Alexandre | |
2016-10-19 | Recreates missing group labels when moving project to another group | Douglas Barbosa Alexandre | |
2015-11-16 | Refactor global and group milestones logic | Dmitriy Zaporozhets | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||
2015-10-14 | Allow dashboard and group issues/MRs to be filtered by label | Douwe Maan | |