Commit Graph

96 Commits

Author SHA1 Message Date
Alex Sanford 85bb4d6b86 Add board_move slash command 2017-04-28 12:11:53 +00:00
blackst0ne 9a048a6ea2 Remove heading and trailing spaces from label's color and title 2017-04-12 08:56:33 +11:00
Luke "Jared" Bennett f2be76f3e8
Added labels to the issue web hook 2017-03-17 12:14:26 +00:00
Douwe Maan 56de781a2c Revert "Enable Style/DotPosition"
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-23 09:33:19 -06:00
Douwe Maan 1fe7501b49 Revert "Prefer leading style for Style/DotPosition"
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23 09:33:05 -06:00
Douwe Maan 206953a430 Prefer leading style for Style/DotPosition 2017-02-23 09:32:22 -06:00
Douwe Maan b7d8df503c Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
Douwe Maan 3dadf306dd Enable Style/DotPosition 2017-02-23 09:31:56 -06:00
Tomáš Kukrál 7808c9cb50 validate length of label.title
+ add test for label.title length validation
2017-01-09 12:16:36 +01:00
James Lopez 112f470572 Fix cross-project references copy to include the project reference
Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
2017-01-03 13:01:46 +01:00
Oswaldo Ferreira f272ee6eba Add shorthand support to gitlab markdown references 2016-12-02 19:18:17 -02:00
Douglas Barbosa Alexandre bc7895fff8 Use label subject to calculate number of issues/mrs within the group 2016-10-31 23:27:49 -02:00
Douglas Barbosa Alexandre f99744d00d Use join instead of subquery on Label.unprioritized scope 2016-10-19 14:58:27 -02:00
Douglas Barbosa Alexandre 530aae9080 Abstract LabelPriority away into methods on Label model 2016-10-19 14:58:27 -02:00
Douglas Barbosa Alexandre 86e0b5d643 Fix issue board related controllers to expose label priority per project 2016-10-19 14:58:27 -02:00
Douglas Barbosa Alexandre 3c2aaec1f2 Fix sorting by label priorities 2016-10-19 14:58:27 -02:00
Douglas Barbosa Alexandre 67314e95ae Add support to group labels prioritization on project level 2016-10-19 14:58:27 -02:00
Douglas Barbosa Alexandre 2978920113 Add LabelPriority model 2016-10-19 14:58:27 -02:00
Douglas Barbosa Alexandre de9d3915d2 Remove `::` for method call on Label#text_color 2016-10-19 14:58:26 -02:00
Douglas Barbosa Alexandre 5912251e61 Use reverse_merge on Label#issues_count and Label#merge_requests_count 2016-10-19 14:58:26 -02:00
Douglas Barbosa Alexandre 0e8dd59913 Move common logic to reference group/project label to Label#to_reference 2016-10-19 14:58:26 -02:00
Douglas Barbosa Alexandre 07709c5576 Unfold references for group labels when moving issue to another project 2016-10-19 14:58:25 -02:00
Douglas Barbosa Alexandre e28058c410 Validate if project label title does not exist at group level 2016-10-19 14:58:24 -02:00
Douglas Barbosa Alexandre cfedd42bad Add ProjectLabel model 2016-10-19 14:58:24 -02:00
Douglas Barbosa Alexandre 9463551ece Validates uniqueness of title unless label is a template 2016-10-19 14:58:24 -02:00
Douglas Barbosa Alexandre bdb7bf4b51 List group labels on project labels page 2016-10-19 14:58:24 -02:00
Douglas Barbosa Alexandre 398ab263fd Allow users to apply group labels on Issues/MRs 2016-10-19 14:58:24 -02:00
Nick Thomas e94cd6fdfe Add markdown cache columns to the database, but don't use them yet
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.
2016-10-07 02:54:25 +01:00
Douglas Barbosa Alexandre e23d1706fa Destroy related lists when a label is removed 2016-08-17 12:58:58 -03:00
Douglas Barbosa Alexandre a4147af674 Simplify regex for string-based multi-word label surrounded in quotes 2016-07-13 16:01:27 -03:00
Douglas Barbosa Alexandre 677bc4438c Doesn't match empty label references surrounded in quotes 2016-07-13 11:48:59 -03:00
Douglas Barbosa Alexandre 1167ef4089 Fix markdown rendering for label references that contains `.` 2016-07-13 11:42:31 -03:00
Douglas Barbosa Alexandre f682c0975b Fix markdown rendering for label references that begin with a digit 2016-07-13 11:42:31 -03:00
Douglas Barbosa Alexandre c88075f467 Fix markdown rendering for consecutive label references 2016-07-13 11:42:31 -03:00
Douglas Barbosa Alexandre 5d11cf2e98 Use CGI.unescapeHTML rather than doing the gsub with a map 2016-07-05 20:57:09 -03:00
Douglas Barbosa Alexandre d6b60e83ed Move `unescape_html_entities` from LabelsHelper to Label model 2016-07-05 20:57:09 -03:00
Douglas Barbosa Alexandre ab811b6ab9 Render references for labels that name contains ?, or & 2016-07-05 20:57:09 -03:00
Douglas Barbosa Alexandre e186626d25 Allow '?', or '&' for label titles 2016-07-05 20:57:09 -03:00
Sean McGivern ee26c3cab4 Fix label order by priority on labels page 2016-06-07 14:01:30 +01:00
Sean McGivern bf193eb78b Remove unnecessary null-specific order 2016-06-06 11:59:49 -05:00
Alfredo Sumaran 4ac907ee77 typo 2016-06-06 11:59:49 -05:00
Alfredo Sumaran f011f038cd Update method name 2016-06-06 11:59:49 -05:00
Alfredo Sumaran 8f0bf29767 Add unprioritized scope 2016-06-06 11:59:49 -05:00
Rémy Coutable 499bb9f305 Improve Issuable.order_labels_priority
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-06 11:59:49 -05:00
Thijs Wouters d8263b2851 Sort by label priority
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-06 11:59:49 -05:00
Alfredo Sumaran 0e2f26dd2a Prioritize labels functionality 2016-06-06 11:59:49 -05:00
Yorick Peterse f96c34ec45 Merge branch 'remove-annotate-gem' into 'master'
Remove the annotate gem and delete old annotations

In 8278b763d9 the default behaviour of annotation
has changes, which was causing a lot of noise in diffs. We decided in #17382
that it is better to get rid of the whole annotate gem, and instead let people
look at schema.rb for the columns in a table.

Fixes: #17382 

/cc @yorickpeterse 

See merge request !4099
2016-05-10 09:08:30 +00:00
Jeroen van Baarsen f1479b56b7
Remove the annotate gem and delete old annotations
In 8278b763d9 the default behaviour of annotation
has changes, which was causing a lot of noise in diffs. We decided in #17382
that it is better to get rid of the whole annotate gem, and instead let people
look at schema.rb for the columns in a table.

Fixes: #17382
2016-05-09 18:00:28 +02:00
Rémy Coutable 0c2bb8d1d7 Merge branch 'issue_15394' into 'master'
Sanitize milestones and labels titles

fixes #15394 

See merge request !4046
2016-05-09 15:47:48 +00:00
Felipe Artur 32811d98fe Make model sanitization methods one liners 2016-05-09 12:00:32 -03:00