summaryrefslogtreecommitdiff
path: root/spec/models/concerns
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fix/label-filters' into 'master' Douwe Maan2016-04-211-0/+30
|\ | | | | | | | | | | | | Filter labels by including ALL filter titles Fixed query to use `AND` and not `OR`. Refactored relevant specs See merge request !3815
| * refactored specs based on feedbackfix/label-filtersJames Lopez2016-04-211-27/+18
| |
| * refactored specs, adding more scenariosJames Lopez2016-04-211-4/+19
| |
| * final line missingJames Lopez2016-04-201-1/+1
| |
| * fix rubocop warningJames Lopez2016-04-201-2/+2
| |
| * udpated a few things based on MR feedback. Also added model specJames Lopez2016-04-201-1/+25
| |
* | Rename CiStatus to StatusableKamil Trzcinski2016-04-161-0/+103
|/
* Destroy related todos when an issue is deletedDouglas Barbosa Alexandre2016-03-301-0/+1
|
* Restrict access for confidential issues on milestone viewDouglas Barbosa Alexandre2016-03-171-0/+104
|
* Restrict access to references for confidential issuesDouglas Barbosa Alexandre2016-03-171-2/+3
|
* Improving the original label-subscribing implementationRémy Coutable2016-03-152-5/+88
| | | | | | | 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
* Original implementation to allow users to subscribe to labelsTimothy Andrew2016-03-151-0/+16
| | | | | | | | | | | | | | | | | | 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.
* Fixed a few spec typosYorick Peterse2016-03-111-3/+3
|
* Use ILIKE/LIKE for Issuable.search and full_searchYorick Peterse2016-03-111-1/+46
|
* Add new data to project in push, issue, merge-request and note webhooks databugagazavr/gitlab-ce-extend-hooksKirill Zaitsev2016-02-111-11/+12
| | | | | | | | | | | - 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
* Add assignee data to Issuables' hook_databrammeleman/3047-add-assignee-data-to-isuable-hook-dataBram Daams2016-02-101-0/+10
|
* trick rubocop and temporarily add ruby 2.1 images for any branchJames Lopez2016-01-281-6/+6
|
* fix rubocop new 2.2 syntax issuesJames Lopez2016-01-251-6/+6
|
* Merge branch 'upvote_count_to_api' into 'master' Valery Sizov2015-12-291-0/+14
|\ | | | | | | | | | | | | Revert upvotes and downvotes params back to MR API issue https://gitlab.com/gitlab-org/gitlab-ce/issues/3672 See merge request !2212
| * Revert upvotes and downvotes params to MR APIValery Sizov2015-12-281-0/+14
| |
* | Merge branch 'mention-all' into 'master' Robert Speicher2015-12-271-0/+4
|\ \ | |/ |/| | | | | | | | | Only allow group/project members to mention `@all` Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/3473 See merge request !2205
| * Fix specsDouwe Maan2015-12-241-0/+4
| |
* | Satisfy RubocopDouwe Maan2015-12-251-2/+2
| |
* | Add support for `twitter:label` meta tagsrs-opengraphRobert Speicher2015-12-241-0/+18
|/
* Add method that persist ensured token in `TokenAuthenticatable`Grzegorz Bizon2015-12-231-6/+13
|
* Fix method that ensures authentication tokenGrzegorz Bizon2015-12-231-0/+4
| | | | | | Until now, `ensure_#{token_filed_name}` method didn't persist new token in database. This closes #4235.
* Backport JIRA serviceDrew Blessing2015-12-181-0/+13
|
* Make sure that token `ensure_*` method always returns a tokenGrzegorz Bizon2015-12-111-1/+8
|
* Add specs for `TokenAuthenticatable` concernGrzegorz Bizon2015-12-111-0/+50
|
* Tag model specsDouwe Maan2015-12-091-1/+1
|
* Strip attributes for Milestone and Issuable. #3428Jose Corcuera2015-11-261-0/+20
|
* Only accept open issues and merge requestsZeger-Jan van de Weg2015-10-161-1/+0
|
* Simplify code around (cross)-referencesDouwe Maan2015-10-121-1/+1
|
* Revamp finding projects by namespacesYorick Peterse2015-10-081-15/+28
| | | | | | | 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).
* Added concern for case-insensitive WHERE queriesYorick Peterse2015-10-071-0/+176
| | | | | | On PostgreSQL these queries use LOWER(...) to compare columns and values. For MySQL a regular WHERE is performed as MySQL is already case-insensitive.
* add repository field to issue hook dataJungkook Park2015-09-171-0/+16
| | | | | | add a test for to_hook_data of issue model update CHANGELOG
* Rename `notice_added_references` to `create_new_cross_references!`rs-issue-1773Robert Speicher2015-07-131-5/+5
|
* Refactor Mentionable#notice_added_referencesRobert Speicher2015-07-131-0/+49
| | | | | | | It now accounts for models that have changed but have already been persisted, such as when called from an UpdateService. Closes #1773
* Replace remaining references to `Note.create_cross_reference_note`Robert Speicher2015-06-221-1/+1
|
* Update mock and stub syntax for specsRobert Speicher2015-06-221-1/+4
|
* ensure_length_of -> validate_length_ofRobert Speicher2015-06-101-1/+1
|
* Correctly remove already-mentioned commits for cross referencesrs-issue-1778Robert Speicher2015-06-081-2/+19
| | | | Fixes #1778
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-122-25/+25
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Mentioned users are not limited by project scope any moreDmitriy Zaporozhets2014-10-301-0/+14
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove author_id_of_changes from specDmitriy Zaporozhets2014-03-251-5/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* fix most of warningsskv2013-12-151-1/+1
|
* Fixing tests after adding iid for issues/mrDmitriy Zaporozhets2013-08-201-0/+2
|
* Issuable consern uses StateMachine nowAndrew8xx82013-02-181-1/+0
|
* Add concerns to autoloadDmitriy Zaporozhets2013-01-031-0/+70