summaryrefslogtreecommitdiff
path: root/spec/models
Commit message (Collapse)AuthorAgeFilesLines
* "expect { }.not_to raise_error" no longer takes a specific classRobert Speicher2015-06-101-6/+2
|
* ensure_length_of -> validate_length_ofRobert Speicher2015-06-105-10/+10
|
* Correctly remove already-mentioned commits for cross referencesrs-issue-1778Robert Speicher2015-06-081-2/+19
| | | | Fixes #1778
* Merge branch 'make-namespaces-api-available-to-all-users' into 'master'Dmitriy Zaporozhets2015-06-041-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make namespace API available to all users ### What does this MR do? This MR makes it possible for a user to query namespaces to which he/she has access. Also, it adds documentation for the existing API. ### Why was this MR needed? Even though the `groups` API exists, it might still be useful to have an endpoint that tells the namespace type (e.g. `user` vs. `group`), especially if a user has access to a number of different projects. ### What are the relevant issue numbers? Closes https://github.com/gitlabhq/gitlabhq/issues/9328 See merge request !708
| * Make namespace API available to all usersStan Hu2015-05-281-0/+2
| | | | | | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9328
* | GitLab CI service sends gitlab-ci.yml fileci_yml_fileValery Sizov2015-06-021-0/+15
| |
* | You can not remove user if he/she is an only owner of groupDmitriy Zaporozhets2015-05-281-1/+17
|/ | | | | | | To prevent loose of group data you need to transfer or remove group first before you can remove user Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'rs-to_reference' into 'master'Dmitriy Zaporozhets2015-05-2710-56/+257
|\ | | | | | | | | | | | | | | Add to_reference method to referable models Now there is a single source of information for which attribute a model uses to be referenced, and its special character. See merge request !641
| * Make use of to_reference in more specsRobert Speicher2015-05-261-1/+1
| |
| * Support only double quotes for multi-word label referencesRobert Speicher2015-05-261-5/+14
| |
| * Update CommitRange#to_reference to use full SHAsRobert Speicher2015-05-261-13/+13
| | | | | | | | We only want them shortened by the filter, which calls to_s
| * Minor model spec cleanupsRobert Speicher2015-05-264-26/+15
| | | | | | | | Snippet model was missing project association
| * Add `to_reference` for models that support referencesRobert Speicher2015-05-2610-36/+239
| | | | | | | | | | Now there is a single source of information for which attribute a model uses to be referenced, and its special character.
* | Merge branch 'fix-hipchat-default-api-version' into 'master'Douwe Maan2015-05-271-4/+27
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow HipChat API version to be blank and default to v2 ### What does this MR do? This MR fixes a regression introduced in v7.11 that requires a HipChat API version to be specified when it is supposed to be optional. ### Why was this MR needed? The "optional" HipChat API version in 57c724558 passed in a blank `api_version` when nothing was specified, and the code was not tested. This would cause a 500 Error. ### What are the relevant issue numbers? Closes #772 See merge request !718
| * Allow HipChat API version to be blank and default to v2Stan Hu2015-05-261-4/+27
| | | | | | | | Closes #772
* | Change percent_complete rescue value from 100 to 0Jonah Bishop2015-05-261-1/+1
|/ | | | | | | | | The percent_complete method returns a value of 100 when a ZeroDivisionError occurs. That seems like a very strange default for an error case, and results in a bug when a milestone has no corresponding issues (new, empty milestones show 100% completion). This commit changes the rescue value to 0, and subsequently fixes #1656, which reported this problem.
* Add support for Webhook note eventsStan Hu2015-05-214-0/+4
| | | | Closes https://github.com/gitlabhq/gitlabhq/issues/6745
* Merge branch 'rs-system-note' into 'master'Dmitriy Zaporozhets2015-05-121-486/+49
|\ | | | | | | | | | | | | | | | | | | Add SystemNoteService class The Note model was basically two models crammed together - one handling user-created notes (i.e., comments on things) and one handling system-created notes (i.e., references). This splits out the system-specific stuff to a new SystemNoteService class. See merge request !595
| * Simplify Note model specsRobert Speicher2015-05-111-213/+34
| |
| * Add a SystemNoteService classRobert Speicher2015-05-111-256/+0
| | | | | | | | | | There's a lot of code in the Note model that only deals with creating system notes, so we're going to split that into its own class.
| * Note's voting specs don't need to persist to the databaseRobert Speicher2015-05-101-18/+16
| |
* | Re-annotate User modelRobert Speicher2015-05-091-0/+5
|/
* Added X-GitLab-Event header for web hooksbugagazavr2015-05-083-15/+74
|
* fix gitlab CI linksfix_ci_servicesValery Sizov2015-05-051-0/+2
|
* Re-annotate modelsStan Hu2015-05-0321-4/+72
|
* Add application setting to restrict user signups to e-mail domainsStan Hu2015-05-022-0/+71
| | | | | | | | | | | This feature was requested long ago: http://feedback.gitlab.com/forums/176466-general/suggestions/4118466-ability-to-register-only-from-ceratain-domains This MR is based off !253 but changed to use application settings and use wildcard strings to give more flexibility in pattern matching. Regexps seemed overkill and easy to get wrong. Only restrict e-mail addresses upon creation
* Improve/add specs for `Project#get_issue` and `#issue_exists?`rs-more-pipeline-filtersRobert Speicher2015-05-011-19/+42
|
* Don't allow a merge request to be merged when its title starts with "WIP".Douwe Maan2015-04-301-0/+26
|
* Revert "Added X-GitLab-Event header for web hooks"Valery Sizov2015-04-271-9/+5
| | | | This reverts commit 548f182814acd0f7a110e6c165c186e345901b00.
* Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2015-04-271-0/+120
|\
| * Rename `CommitRange#inclusive?` to `#exclude_start?`Robert Speicher2015-04-251-3/+3
| |
| * Remove CommitRange#to_aRobert Speicher2015-04-251-27/+0
| |
| * Include caret in CommitRange#reference_titleRobert Speicher2015-04-251-1/+5
| |
| * Remove param from CommitRange#to_sRobert Speicher2015-04-251-16/+4
| |
| * CommitRange improvementsRobert Speicher2015-04-251-2/+2
| |
| * Add CommitRange classRobert Speicher2015-04-251-0/+155
| |
* | Merge pull request #8644 from Bugagazavr/hook-eventsDmitriy Zaporozhets2015-04-271-5/+9
|\ \ | | | | | | Add X-GitLab-Event header for web hooks
| * | Added X-GitLab-Event header for web hooksbugagazavr2015-04-251-5/+9
| |/
* | Add notify and color options to HipchatServiceDominik Sander2015-04-261-0/+16
|/ | | | | | When notify is set to true send messages will trigger a notification for all room members. Color changes the background color of the message.
* Link cross-project cross-reference notes to correct project.Douwe Maan2015-04-241-11/+11
|
* No longer needed to pass project argument to commit methods.Douwe Maan2015-04-241-2/+2
|
* Use project.commit convenience method.Douwe Maan2015-04-242-4/+4
|
* Update mentionable shared examples to be (a bit) more understandableRobert Speicher2015-04-161-1/+1
|
* Correct usage of `subject` in specsRobert Speicher2015-04-164-5/+9
|
* Merge branch 'emailsonpush-hellip' into 'master'Dmitriy Zaporozhets2015-04-151-1/+1
|\ | | | | | | | | | | | | | | | | | | Don't use HTML ellipsis in EmailsOnPush subject truncated commit message. Addresses private issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2229. Since the page is encoded as UTF-8, we don't need HTML entities anymore and can just use the character. See merge request !521
| * Don't use HTML ellipsis in EmailsOnPush subject truncated commit message.emailsonpush-hellipDouwe Maan2015-04-141-1/+1
| |
* | Follow newline guidelines.Douwe Maan2015-04-141-3/+0
| |
* | Remove duplication between Group and ProjectMember.Douwe Maan2015-04-141-2/+37
| |
* | Let invites be declined.Douwe Maan2015-04-141-0/+17
| |
* | Add invite logic to Member.Douwe Maan2015-04-141-0/+79
|/