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-07-30Make quick action "commands applied" banner more useful🙈 jacopo beschi 🙉
Extends the quick actions "commands applied" banner to show the quick action preview text, but with everything in past tense.
2019-07-24Add where condition to filter out invalid labels with nil typePatrick Derichs
2019-06-07Remove some deprecated codeDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2019-04-23Move scoped_label into label presenterJan Provaznik
When rendering a label we want to check 'scoped_label' feature availability on a project/group where label is being used. For this reason a label presenter is used in UI and information about context project/group is passed to this presenter.
2019-04-02Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵John Jarvis
jarv/dev-to-gitlab-2019-04-02
2019-03-28Inherit from ApplicationRecord instead of ActiveRecord::BaseNick Thomas
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-03-13Allow filtering labels by a single characterSean McGivern
When we use Gitlab::SQL::Pattern, this typically relates to a trigram index. As the 'tri' indicates, we need at least three characters to be able to use that index. Labels don't have a trigram index, because we never allow you to search for them globally: it's always in the context of a project or a group. In that context, it's just as fast to search for a single character (in general) because there is already a pretty specific index being used.
2019-01-18Fix inconsistent label foreground colorNathan Friend
In different parts of the application, the same label was being rendered with a different foreground color. This was due to the "textColor" JSON property not being generated by the backend. This commit adds this property to JSON representation of labels.
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-05Fixed label removal from issueChantal Rollison
2018-10-04Add subscribe filter to labels pageDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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-10Add sort dropdown to project labels page and group labels pageDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-09-07Use optionally_search for group labels index pageDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-08-02Merge branch 'frozen-string-enable-app-models' into 'master'Rémy Coutable
Enable frozen string in app/models/*.rb See merge request gitlab-org/gitlab-ce!20851
2018-07-31Add ability to filter labels by title or descriptionDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-07-27Enable frozen string in app/models/*.rbgfyoung
Partially addresses #47424.
2018-06-18Properly detect label reference if followed by period or question markDouwe Maan
2018-05-28Merge remote-tracking branch 'origin/master' into ↵Luke Bennett
39549-label-list-page-redesign-with-draggable-labels
2018-04-19Add/use Label#priority? and remove weird paddingLuke Bennett
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-03-03Bring one group board to CEFelipe Artur
2018-01-11Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉
2017-11-23Fix link text from group contextJarka Kadlecova
2017-09-12fix another N+1 query for label prioritiesmicael.bergeron
added a QueryRecorder for IssuesController#index.json
2017-09-06Fix failing specFelipe Artur
2017-08-31Continue BE backportFelipe Artur
2017-08-29Group boards CE backportFelipe Artur
2017-07-06Added Cop to blacklist the use of `dependent:`Yorick Peterse
This is allowed for existing instances so we don't end up 76 offenses right away, but for new code one should _only_ use this if they _have_ to remove non database data. Even then it's usually better to do this in a service class as this gives you more control over how to remove the data (e.g. in bulk).
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-02Enable the Style/PreferredHashMethods copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-25Provide default for calculating label text color (!11681)winh
2017-04-28Add board_move slash commandAlex Sanford
2017-04-12Remove heading and trailing spaces from label's color and titleblackst0ne
2017-03-17Added labels to the issue web hookLuke "Jared" Bennett
2017-02-23Revert "Enable Style/DotPosition"Douwe Maan
This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9. # Conflicts: # .rubocop.yml # .rubocop_todo.yml # lib/gitlab/ci/config/entry/global.rb # lib/gitlab/ci/config/entry/jobs.rb # spec/lib/gitlab/ci/config/entry/factory_spec.rb # spec/lib/gitlab/ci/config/entry/global_spec.rb # spec/lib/gitlab/ci/config/entry/job_spec.rb # spec/lib/gitlab/ci/status/build/factory_spec.rb # spec/lib/gitlab/incoming_email_spec.rb
2017-02-23Revert "Prefer leading style for Style/DotPosition"Douwe Maan
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23Prefer leading style for Style/DotPositionDouwe Maan
2017-02-23Enable Style/MutableConstantDouwe Maan
2017-02-23Enable Style/DotPositionDouwe Maan
2017-01-09validate length of label.titleTomáš Kukrál
+ add test for label.title length validation
2017-01-03Fix cross-project references copy to include the project referenceJames Lopez
Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
2016-12-03Add shorthand support to gitlab markdown referencesOswaldo Ferreira
2016-11-01Use label subject to calculate number of issues/mrs within the groupDouglas Barbosa Alexandre
2016-10-19Use join instead of subquery on Label.unprioritized scopeDouglas Barbosa Alexandre
2016-10-19Abstract LabelPriority away into methods on Label modelDouglas Barbosa Alexandre
2016-10-19Fix issue board related controllers to expose label priority per projectDouglas Barbosa Alexandre
2016-10-19Fix sorting by label prioritiesDouglas Barbosa Alexandre