summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'audit_log' into 'master'Dmitriy Zaporozhets2015-07-062-4/+4
|\ | | | | | | | | | | | | | | Audit log for user authentication https://dev.gitlab.org/gitlab/gitlabhq/issues/2318 See merge request !931
| * Audit log for user authenticationValery Sizov2015-07-062-4/+4
| |
* | Merge branch 'add-irker-options' into 'master'Dmitriy Zaporozhets2015-07-061-32/+8
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Irker service configuration options ### What does this MR do? This MR makes a number of hard-coded Irker parameters configurable in the service settings: Irker server host, port, and default IRC URI. It also removes the "max recipient" limit since the recipient list is configurable only by the project owner, and it makes no sense to update the limit when it is implied in the recipient list already. ### Why was this MR needed? The existing service assumed that gitlab.com was running an Irker daemon on `localhost` when it was not. Using Irker on gitlab.com thus did not work at all. This MR allows users to provide their own Irker daemons. ### Are there points in the code the reviewer needs to double check? My main concern is whether allowing a user to specify the server/port combination would have security implications for a host. Given that HipChat and Slack allow users to do this, I didn't think this was doing anything novel. ### What are the relevant issue numbers? * Closes #1713 * Closes #1714 * Closes gitlab-com/support-forum#139 ### Screenshots ### Before ![image](https://gitlab.com/stanhu/gitlab-ce/uploads/2eb3eb815e249e9fb669fc97ecd4f3c8/image.png) ### After ![image](https://gitlab.com/gitlab-org/gitlab-ce/uploads/cceaba951c05bd3df2c842cc68046b87/image.png) See merge request !930
| * | Add Irker service configuration optionsStan Hu2015-07-051-32/+8
| |/ | | | | | | | | | | Closes #1713 Closes #1714 Closes gitlab-com/support-forum#139
* | Allow user to be blocked and unblocked via the APISteve Norman2015-07-031-0/+51
| |
* | Add support for unlocking users in admin settingsStan Hu2015-07-021-0/+15
|/ | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9381
* Refactor can_be_merged logic for merge requestDmitriy Zaporozhets2015-07-011-0/+14
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Extract the longest-matching ref from a commit path when multiple matches occurStan Hu2015-07-011-2/+9
| | | | Closes #1839
* Merge branch 'fix-zero-sha-lookup' into 'master'Dmitriy Zaporozhets2015-07-011-0/+8
|\ | | | | | | | | | | | | | | Repository#blob_at should return nil for 00000000... sha Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !916
| * Repository#blob_at should return nil for 00000000... shafix-zero-sha-lookupDmitriy Zaporozhets2015-07-011-0/+8
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Merge branch 'reporter-manage-issues' into 'master'Dmitriy Zaporozhets2015-07-013-0/+36
|\ \ | |/ |/| | | | | | | | | | | Reporter role can manage issue tracker now Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !908
| * Reporter role can manage issue tracker nowreporter-manage-issuesDmitriy Zaporozhets2015-06-303-0/+36
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Fix ApplicationHelper specsrs-fix-application-helper-specsRobert Speicher2015-06-303-102/+138
| | | | | | | | | | | | | | | | There were several specs that were failing when run by themselves. - Use the `helper` object, as per RSpec 3 standards - Use `assign` to assign instance variables that helpers expect - Add `StubConfiguration` support module
* | Add spec/support/factory_girlRobert Speicher2015-06-302-4/+6
| | | | | | | | | | Just for consistency with our Capybara, DatabaseCleaner, WebMock, etc. setups.
* | Merge branch 'fix-relative-submodule-namespace-path' into 'master'Dmitriy Zaporozhets2015-06-291-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix Error 500 when relative submodule resolves to a namespace that has a different name from its path ### What does this MR do? This MR fixes a bug in resolving a namespace when the `name` differed from `path`. ### Why was this MR needed? The original code was using `name`, when the proper input to `namespace_project_path` was `path`. ### What are the relevant issue numbers? Closes #1849 See merge request !864
| * Fix Error 500 when relative submodule resolves to a namespace that has a ↵Stan Hu2015-06-231-1/+1
| | | | | | | | | | | | different name from its path Closes #1849
* | Remove disableButtonIf[Any]EmptyField calls from formsRobert Speicher2015-06-261-2/+0
| | | | | | | | These have been replaced by the "requiresInput" behavior.
* | Add "Requires Input" JS behaviorRobert Speicher2015-06-262-0/+67
| |
* | Merge branch 'rename-abilities' into 'master'Dmitriy Zaporozhets2015-06-262-4/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename abilities to correspond contoller/model action names write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code ``` def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end ``` See merge request !896
| * | Rename abilities to correspond contoller/model action namesrename-abilitiesDmitriy Zaporozhets2015-06-262-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | Merge branch 'rs-issue-1887' into 'master'Dmitriy Zaporozhets2015-06-261-3/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reorder MergeRequestTabs constructor The tab was being activated before we set the `[commits|diffs]Loaded` variable, so even when the `/diffs` route is accessed directly, like from the "Side-by-side" link, the tab was being loaded from its default source. Fixes #1887 See merge request !892
| * | Fix merge request diff featuresrs-issue-1887Robert Speicher2015-06-251-3/+2
| | |
* | | Update tests and use js-issuable class for context formDmitriy Zaporozhets2015-06-264-7/+7
|/ / | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Merge branch 'rs-random-placeholder-tip' into 'master'Dmitriy Zaporozhets2015-06-251-0/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | Show a random Markdown tip in the textarea placeholder cc @darby See merge request !879
| * | Prefix random Markdown tips with "Tip:"rs-random-placeholder-tipRobert Speicher2015-06-241-1/+1
| | |
| * | Show a random Markdown tip in the textarea placeholderRobert Speicher2015-06-231-0/+7
| | |
* | | Merge branch 'add-2fa-status-to-admin-api' into 'master'Robert Speicher2015-06-241-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add 2FA status to user admin API This MR adds the `two_factor_enabled` field to the admin's API to indicate whether a given user has enabled 2FA. See merge request !881
| * | | Add 2FA status to user admin APIStan Hu2015-06-231-0/+1
| |/ / | | | | | | | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9391
* | | Only look up Commit authors/committers by emailrs-issue-1850Robert Speicher2015-06-231-10/+4
|/ / | | | | | | | | - Removes looking up authors/committers by name - Renames `User.find_for_commit` to `User.find_by_any_email`
* | Fix error when deleting a user who has projectsStan Hu2015-06-231-0/+24
|/ | | | | Closes #1856 Closes https://github.com/gitlabhq/gitlabhq/issues/9394
* Merge branch 'rubocop-for-tests' into 'master'Dmitriy Zaporozhets2015-06-2385-491/+548
|\ | | | | | | | | | | | | | | | | | | Enable rubocop for tests too cc @DouweM @rspeicher Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !862
| * Fix rubocop issues after merge of recent masterDmitriy Zaporozhets2015-06-232-7/+7
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Merge branch 'master' into rubocop-for-testsDmitriy Zaporozhets2015-06-2380-457/+521
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: spec/features/issues_spec.rb spec/models/forked_project_link_spec.rb spec/models/hooks/service_hook_spec.rb spec/models/hooks/web_hook_spec.rb spec/models/project_services/hipchat_service_spec.rb spec/requests/api/project_members_spec.rb spec/requests/api/projects_spec.rb spec/requests/api/system_hooks_spec.rb spec/services/archive_repository_service_spec.rb spec/support/matchers.rb spec/tasks/gitlab/backup_rake_spec.rb
| * | Fix Style/NonNilCheck cop violationsrubocop-for-testsStan Hu2015-06-221-1/+1
| | |
| * | Fix Style/IndentationWidth cop violationsStan Hu2015-06-224-8/+8
| | |
| * | Fix Style/CaseIndentation cop violationsStan Hu2015-06-221-10/+10
| | |
| * | Fix Style/AlignHash cop violationsStan Hu2015-06-2215-80/+178
| | |
| * | Fix bad multi-line split from previous commitRobert Speicher2015-06-221-1/+2
| | |
| * | Fix Style/Blocks cop violationsRobert Speicher2015-06-2234-213/+197
| | |
| * | Fix Style/CommentIndentation cop violationRobert Speicher2015-06-221-7/+7
| | |
| * | Fix Style/HashSyntax violationsRobert Speicher2015-06-223-3/+3
| | |
| * | Fix Style/Not cop violationsRobert Speicher2015-06-221-2/+2
| | |
| * | Fix Style/AsciiComments cop violationRobert Speicher2015-06-221-1/+1
| | |
| * | Fix Style/SpaceInsideHashLiteralBraces cop violationsRobert Speicher2015-06-2218-45/+45
| | | | | | | | | | | | These fixes were performed automatically by Rubocop's `-a` flag.
| * | Fix Style/TrailingBlankLines cop violationsRobert Speicher2015-06-2212-26/+1
| | |
| * | Fix Style/IndentationConsistency cop violationsRobert Speicher2015-06-223-7/+5
| | |
| * | Fix part of api specs for rubocopDmitriy Zaporozhets2015-06-224-84/+84
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Remove unnecessary whitespace between let and (Dmitriy Zaporozhets2015-06-227-19/+19
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | Merge branch 'rs-dev-issue-2414' into 'master'Dmitriy Zaporozhets2015-06-232-36/+78
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Allow Admin to filter users by 2FA status > ![Screen_Shot_2015-06-19_at_4.38.12_PM](https://gitlab.com/gitlab-org/gitlab-ce/uploads/deba7f2a6b8d1548c1d1ac401e0e35a1/Screen_Shot_2015-06-19_at_4.38.12_PM.png) Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2414 See merge request !852
| * | Use alias_attribute to define User#two_factor_enabledrs-dev-issue-2414Robert Speicher2015-06-221-24/+0
| | |