summaryrefslogtreecommitdiff
path: root/spec/models
Commit message (Collapse)AuthorAgeFilesLines
* Look for .gitlab-ci.yml only if checkout_sha is presentfix-gitlab-ci-ymlDmitriy Zaporozhets2015-06-151-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'rs-dev-issue-2228' into 'master'Dmitriy Zaporozhets2015-06-151-3/+4
|\ | | | | | | | | | | | | | | | | | | Allow user to customize default Dashboard page Renames the "Design" profile page to "Preferences" and adds a field to customize the default Dashboard page: > ![Screen_Shot_2015-06-11_at_11.12.53_PM](https://gitlab.com/gitlab-org/gitlab-ce/uploads/b5282a3be7861d1148528c6bc9e7a0e0/Screen_Shot_2015-06-11_at_11.12.53_PM.png) See merge request !778
| * Add `dashboard` attribute to User modelRobert Speicher2015-06-131-1/+2
| |
| * Add Gitlab::Themes module; remove Gitlab::ThemeRobert Speicher2015-06-131-2/+2
| | | | | | | | | | | | | | Now we can simply loop through all themes, among other things. This also removes the `dark_theme` / `light_theme` classes and the `theme_type` helper, since they weren't used anywhere.
* | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2015-06-142-6/+6
|\ \
| * | Change `foo.should` syntax to `expect(foo).to` in specsRobert Speicher2015-06-132-5/+5
| | |
| * | Change `foo.should_not` syntax to `expect(foo).not_to` in specsRobert Speicher2015-06-131-1/+1
| |/
* | Merge pull request #9340 from jvanbaarsen/update-noteableDmitriy Zaporozhets2015-06-141-1/+1
|\ \ | |/ |/| Update noteable after a new note is added
| * Update noteable after a new note is addedJeroen van Baarsen2015-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | **What does this do?** It makes sure that whenever a new note is added to an noteable item, the updated_at of that item is also updated. **Why is this needed?** At this moment when you post a comment on an issue or add a label to an issue, the updated_at is not changed. Because of this the filtering for least recently updated is not really useful (since it only takes in account the original text from the noteable). Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* | Merge branch 'feature-session-expire-seconds-ui' into 'master'Douwe Maan2015-06-121-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add session expiration delay configuration through UI application Setting is accessible by the administrator through the UI and defaults to 1 week (the current setting) Answers the following suggestions: * http://feedback.gitlab.com/forums/176466-general/suggestions/6210719-make-session-length-configurable * http://feedback.gitlab.com/forums/176466-general/suggestions/6730512-automatic-logout-after-a-time-being-idle See merge request !774
| * | session_expire_seconds => session_expire_delaythemaze752015-06-101-1/+1
| | | | | | | | | | | | | | | delay is in seconds more legible code in session_store Added `GitLab restart required` help block to session_expire_delay
| * | Add session expiration delay configuration through UI applicationEric Maziade2015-06-051-0/+1
| | | | | | | | | settings
* | | "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
| |/