Grzegorz Bizon
bdb86ea6cf
Render canceled status if any of the jobs canceled
...
This status will be returned only when there are no failed jobs
that are not allowed to fail.
2016-04-27 14:16:01 +02:00
Douwe Maan
7ded28ff99
Merge branch 'fix/label-filters' into 'master'
...
Filter labels by including ALL filter titles
Fixed query to use `AND` and not `OR`. Refactored relevant specs
See merge request !3815
2016-04-21 13:13:10 +00:00
James Lopez
b09b175def
refactored specs based on feedback
2016-04-21 13:20:00 +02:00
James Lopez
6865bc16f8
refactored specs, adding more scenarios
2016-04-21 09:12:03 +02:00
James Lopez
976593fa7f
final line missing
2016-04-20 11:50:07 +02:00
James Lopez
c0948396d1
fix rubocop warning
2016-04-20 11:25:33 +02:00
James Lopez
af18cddddf
udpated a few things based on MR feedback. Also added model spec
2016-04-20 10:56:28 +02:00
Kamil Trzcinski
0b1655e7b2
Rename CiStatus to Statusable
2016-04-16 21:46:26 +02:00
Douglas Barbosa Alexandre
9b93f8adc8
Destroy related todos when an issue is deleted
2016-03-30 12:09:34 -03:00
Douglas Barbosa Alexandre
482bfd1a6d
Restrict access for confidential issues on milestone view
2016-03-17 20:55:59 -03:00
Douglas Barbosa Alexandre
43d8bdb4f0
Restrict access to references for confidential issues
2016-03-17 20:55:59 -03:00
Rémy Coutable
54ec7e9599
Improving the original label-subscribing implementation
...
1. Make the "subscribed" text in Issuable sidebar reflect the labels
subscription status
2. Current user mut be logged-in to toggle issue/MR/label subscription
2016-03-15 18:22:02 +01:00
Timothy Andrew and Rémy Coutable
0444fa560a
Original implementation to allow users to subscribe to labels
...
1. Allow subscribing (the current user) to a label
- Refactor the `Subscription` coffeescript class
- The main change is that it accepts a container, and conducts all
DOM queries within its scope. We need this because the labels
page has multiple instances of `Subscription` on the same page.
2. Creating an issue or MR with labels notifies users subscribed to those labels
- Label `has_many` subscribers through subscriptions.
3. Adding a label to an issue or MR notifies users subscribed to those labels
- This only applies to subscribers of the label that has just been
added, not all labels for the issue.
2016-03-15 17:25:37 +01:00
Yorick Peterse and Robert Speicher
0ab9571ad7
Fixed a few spec typos
2016-03-11 15:25:23 -05:00
Yorick Peterse and Robert Speicher
87e7c3e132
Use ILIKE/LIKE for Issuable.search and full_search
2016-03-11 15:25:21 -05:00
Kirill Zaitsev and Rémy Coutable
b123171d3d
Add new data to project in push, issue, merge-request and note webhooks data
...
- Add `avatar_url`, `description`, `git_ssh_url`, `git_http_url`,
`path_with_namespace` and `default_branch` in `project` in push, issue,
merge-request and note webhooks data
- Deprecate the `ssh_url` in favor of `git_ssh_url` and `http_url` in
favor of `git_http_url` in `project` for push, issue, merge-request and
note webhooks data
- Deprecate the `repository` key in push, issue, merge-request and
note webhooks data, use `project` instead
2016-02-11 17:22:11 +01:00
Bram Daams and Rémy Coutable
d146d9fd83
Add assignee data to Issuables' hook_data
2016-02-10 09:40:00 +01:00
James Lopez
902baa2e1c
trick rubocop and temporarily add ruby 2.1 images for any branch
2016-01-28 11:41:58 +01:00
James Lopez
ee209cc936
fix rubocop new 2.2 syntax issues
2016-01-25 11:44:25 +01:00
Valery Sizov
eeba266e3d
Merge branch 'upvote_count_to_api' into 'master'
...
Revert upvotes and downvotes params back to MR API
issue https://gitlab.com/gitlab-org/gitlab-ce/issues/3672
See merge request !2212
2015-12-29 16:07:12 +00:00
Valery Sizov
83d42c1518
Revert upvotes and downvotes params to MR API
2015-12-28 11:41:16 +02:00
Robert Speicher
a97a2d2720
Merge branch 'mention-all' into 'master'
...
Only allow group/project members to mention `@all`
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/3473
See merge request !2205
2015-12-27 21:09:16 +00:00
Douwe Maan
6438c288a8
Satisfy Rubocop
2015-12-25 13:22:32 +01:00
Robert Speicher
ab3d855c0e
Add support for twitter:label meta tags
2015-12-24 17:11:08 -05:00
Douwe Maan
396c5c97dd
Fix specs
2015-12-24 20:34:13 +01:00
Grzegorz Bizon
37731ba1a1
Add method that persist ensured token in TokenAuthenticatable
2015-12-23 10:47:18 +01:00
Grzegorz Bizon
76f7e80455
Fix method that ensures authentication token
...
Until now, `ensure_#{token_filed_name}` method didn't persist new token in database.
This closes #4235 .
2015-12-23 09:37:01 +01:00
Drew Blessing
f177aaa5fa
Backport JIRA service
2015-12-18 14:19:48 -06:00
Grzegorz Bizon
917effb737
Make sure that token ensure_* method always returns a token
2015-12-11 14:39:51 +01:00
Grzegorz Bizon
30e29bb924
Add specs for TokenAuthenticatable concern
2015-12-11 10:39:39 +01:00
Douwe Maan
1e8d703a85
Tag model specs
2015-12-09 10:50:51 +01:00
Jose Corcuera
b9df1a6355
Strip attributes for Milestone and Issuable. #3428
2015-11-26 10:16:50 -05:00
Zeger-Jan van de Weg
94a788f66d
Only accept open issues and merge requests
2015-10-16 09:59:32 +02:00
Douwe Maan
b0164771ec
Simplify code around (cross)-references
2015-10-12 11:54:46 +02:00
Yorick Peterse
03417456f0
Revamp finding projects by namespaces
...
By using a JOIN we can remove the need for using 2 separate queries to
find a project by its namespace. Combined with an index (only needed for
PostgreSQL) this reduces the query time from ~245 ms (~520 ms for the
first call) down to roughly 10 ms (~15 ms for the first call).
2015-10-08 14:35:32 +02:00
Yorick Peterse
1190d0ab3d
Added concern for case-insensitive WHERE queries
...
On PostgreSQL these queries use LOWER(...) to compare columns and
values. For MySQL a regular WHERE is performed as MySQL is already
case-insensitive.
2015-10-07 23:32:14 +02:00
Jungkook Park
e4ac2d582c
add repository field to issue hook data
...
add a test for to_hook_data of issue model
update CHANGELOG
2015-09-17 05:33:37 +09:00
Robert Speicher
f3d4767d0c
Rename notice_added_references to create_new_cross_references!
2015-07-13 21:31:16 -04:00
Robert Speicher
e4c698fd5c
Refactor Mentionable#notice_added_references
...
It now accounts for models that have changed but have already been
persisted, such as when called from an UpdateService.
Closes #1773
2015-07-13 21:31:00 -04:00
Robert Speicher and Dmitriy Zaporozhets
2120e2dd95
Replace remaining references to Note.create_cross_reference_note
2015-06-22 12:13:46 +02:00
Robert Speicher and Dmitriy Zaporozhets
5a9ede4721
Update mock and stub syntax for specs
2015-06-22 12:13:46 +02:00
Robert Speicher
47251b85e0
ensure_length_of -> validate_length_of
2015-06-10 01:31:26 -04:00
Robert Speicher
23954b0f77
Correctly remove already-mentioned commits for cross references
...
Fixes #1778
2015-06-08 18:13:14 -04:00
Jeroen van Baarsen
0c4a70a306
Updated rspec to rspec 3.x syntax
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com >
2015-02-12 19:17:35 +01:00
Dmitriy Zaporozhets
fd17ba9ffc
Mentioned users are not limited by project scope any more
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-10-30 13:26:45 +02:00
Dmitriy Zaporozhets
cce80d04fe
Remove author_id_of_changes from spec
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-03-25 14:02:55 +02:00
skv
d89527839e
fix most of warnings
2013-12-15 00:05:10 +04:00
Dmitriy Zaporozhets
a73e068c06
Fixing tests after adding iid for issues/mr
2013-08-20 16:56:05 +03:00
Andrew8xx8
f97296597c
Issuable consern uses StateMachine now
2013-02-18 14:43:49 +04:00
Dmitriy Zaporozhets
e65731bb7e
Add concerns to autoload
2013-01-03 09:12:24 +02:00