summaryrefslogtreecommitdiff
path: root/app/models/label.rb
Commit message (Collapse)AuthorAgeFilesLines
* Added Cop to blacklist the use of `dependent:`Yorick Peterse2017-07-061-2/+2
| | | | | | | | 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).
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-6/+6
|
* Enable the Style/PreferredHashMethods coprc/enable-PreferredHashMethods-copRémy Coutable2017-06-021-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Provide default for calculating label text color (!11681)winh2017-05-251-0/+4
|
* Add board_move slash commandAlex Sanford2017-04-281-0/+1
|
* Remove heading and trailing spaces from label's color and titleblackst0ne2017-04-121-0/+6
|
* Added labels to the issue web hookLuke "Jared" Bennett2017-03-171-0/+4
|
* Revert "Enable Style/DotPosition"Douwe Maan2017-02-231-3/+3
| | | | | | | | | | | | | | | 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
* Revert "Prefer leading style for Style/DotPosition"Douwe Maan2017-02-231-9/+9
| | | | This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
* Prefer leading style for Style/DotPositionDouwe Maan2017-02-231-9/+9
|
* Enable Style/MutableConstantDouwe Maan2017-02-231-1/+1
|
* Enable Style/DotPositionDouwe Maan2017-02-231-3/+3
|
* validate length of label.titleTomáš Kukrál2017-01-091-0/+1
| | | | + add test for label.title length validation
* Fix cross-project references copy to include the project referencefix/cross-project-ref-pathJames Lopez2017-01-031-5/+5
| | | | Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
* Add shorthand support to gitlab markdown referencesOswaldo Ferreira2016-12-021-9/+6
|
* Use label subject to calculate number of issues/mrs within the groupDouglas Barbosa Alexandre2016-10-311-15/+15
|
* Use join instead of subquery on Label.unprioritized scopeDouglas Barbosa Alexandre2016-10-191-1/+8
|
* Abstract LabelPriority away into methods on Label modelDouglas Barbosa Alexandre2016-10-191-1/+15
|
* Fix issue board related controllers to expose label priority per projectDouglas Barbosa Alexandre2016-10-191-0/+6
|
* Fix sorting by label prioritiesDouglas Barbosa Alexandre2016-10-191-0/+11
|
* Add support to group labels prioritization on project levelDouglas Barbosa Alexandre2016-10-191-4/+6
|
* Add LabelPriority modelDouglas Barbosa Alexandre2016-10-191-6/+1
|
* Remove `::` for method call on Label#text_colorDouglas Barbosa Alexandre2016-10-191-1/+1
|
* Use reverse_merge on Label#issues_count and Label#merge_requests_countDouglas Barbosa Alexandre2016-10-191-2/+2
|
* Move common logic to reference group/project label to Label#to_referenceDouglas Barbosa Alexandre2016-10-191-0/+28
|
* Unfold references for group labels when moving issue to another projectDouglas Barbosa Alexandre2016-10-191-24/+0
|
* Validate if project label title does not exist at group levelDouglas Barbosa Alexandre2016-10-191-2/+3
|
* Add ProjectLabel modelDouglas Barbosa Alexandre2016-10-191-7/+0
|
* Validates uniqueness of title unless label is a templateDouglas Barbosa Alexandre2016-10-191-4/+2
|
* List group labels on project labels pageDouglas Barbosa Alexandre2016-10-191-6/+18
|
* Allow users to apply group labels on Issues/MRsDouglas Barbosa Alexandre2016-10-191-1/+5
|
* Add markdown cache columns to the database, but don't use them yetNick Thomas2016-10-071-0/+3
| | | | | | | | | | | | This commit adds a number of _html columns and, with the exception of Note, starts updating them whenever the content of their partner fields changes. Note has a collision with the note_html attr_accessor; that will be fixed later A background worker for clearing these cache columns is also introduced - use `rake cache:clear` to set it off. You can clear the database or Redis caches separately by running `rake cache:clear:db` or `rake cache:clear:redis`, respectively.
* Destroy related lists when a label is removedDouglas Barbosa Alexandre2016-08-171-0/+2
|
* Simplify regex for string-based multi-word label surrounded in quotesfix-label-reference-filterDouglas Barbosa Alexandre2016-07-131-1/+1
|
* Doesn't match empty label references surrounded in quotesDouglas Barbosa Alexandre2016-07-131-1/+1
|
* Fix markdown rendering for label references that contains `.`Douglas Barbosa Alexandre2016-07-131-2/+2
|
* Fix markdown rendering for label references that begin with a digitDouglas Barbosa Alexandre2016-07-131-1/+4
|
* Fix markdown rendering for consecutive label referencesDouglas Barbosa Alexandre2016-07-131-1/+1
|
* Use CGI.unescapeHTML rather than doing the gsub with a mapDouglas Barbosa Alexandre2016-07-051-11/+1
|
* Move `unescape_html_entities` from LabelsHelper to Label modelDouglas Barbosa Alexandre2016-07-051-1/+11
|
* Render references for labels that name contains ?, or &Douglas Barbosa Alexandre2016-07-051-13/+3
|
* Allow '?', or '&' for label titlesDouglas Barbosa Alexandre2016-07-051-3/+17
|
* Fix label order by priority on labels pageissue_14189Sean McGivern2016-06-071-2/+2
|
* Remove unnecessary null-specific orderSean McGivern2016-06-061-2/+2
|
* typoAlfredo Sumaran2016-06-061-1/+1
|
* Update method nameAlfredo Sumaran2016-06-061-2/+2
|
* Add unprioritized scopeAlfredo Sumaran2016-06-061-3/+5
|
* Improve Issuable.order_labels_priorityRémy Coutable2016-06-061-19/+6
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Sort by label priorityThijs Wouters2016-06-061-0/+23
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Prioritize labels functionalityAlfredo Sumaran2016-06-061-0/+2
|