Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2015-03-17Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets
2015-03-17Merge branch 'last-deploy-key' into 'master'Dmitriy Zaporozhets
Delete deploy key when last connection to a project is destroyed. Addresses #1959. See merge request !1710
2015-03-17Merge branch 'issue_subscription' into 'master'Dmitriy Zaporozhets
Subscription to issue/mr Fixes #1911 and #1909 ![joxi_screenshot_1426601822159](https://dev.gitlab.org/gitlab/gitlabhq/uploads/53021bc5783271322ab2dfba7598eaa3/joxi_screenshot_1426601822159.png) ![joxi_screenshot_1426601836423](https://dev.gitlab.org/gitlab/gitlabhq/uploads/244ff360fbd6f30980f8dad699400814/joxi_screenshot_1426601836423.png) See merge request !1702
2015-03-17Delete deploy key when last connection to a project is destroyed.Douwe Maan
2015-03-17Merge branch 'atom-xhtml-squashed' into 'master'Douwe Maan
Fix invalid Atom feeds when using emoji, horizontal rules, or images This is a fix for issues #880, #723, #1113. Markdown must be rendered to XHTML, not HTML, when generating summary content for Atom feeds. Otherwise, content-less tags like *img* and *hr* are not terminated and make the Atom XML invalid. Such tags are generated when issue descriptions, merge request descriptions, comments, or commit messages use emoji, horizontal rules, or images. To pass this option through from the relevant Haml templates to the proper place in the `gfm()` method, a new method `gfm_with_options()` is introduced. It reuses the options dictionary passed to `markdown()` and interprets options `xhtml` and `parse_tasks` from it (the latter was a convenient replacement for `gfm_with_tasks()`). `xhtml` is already interpreted by Redcarpet::Render::HTML, but that alone was not sufficient, because the post-processing in `gfm()` would convert its XHTML tags back to HTML. I found no way of passing additional optional options to the existing `gfm()` method without requiring updates to existing callers and without getting in the way of the existing optional arguments, but maybe someone who knows more about Ruby than I can think of one. Thorough review appreciated since this is the first time I have used Ruby. See merge request !344
2015-03-17Revert "Merge branch 'backup-permissions' into 'master'"Dmitriy Zaporozhets
This reverts commit c42262b43b009af990e5769840391862d64a1c2d, reversing changes made to c6586b1283a94c8f08bc669f4d8a9384b263073e.
2015-03-17Merge branch 'backup-permissions' into 'master'Dmitriy Zaporozhets
Change permissions on backup files Use more restrictive permissions for backup tar files and for the db, uploads, and repositories directories inside the tar files. See #1894. Now the backup task recursively `chmod`s the `db/`, `uploads/`, and `repositories/` folders with 0700 permissions, and the tar file is created as 0600. cc @sytse See merge request !1703
2015-03-17Fix invalid Atom feeds when using emoji, horizontal rules, or images.Christian Walther
Fixes issues #880, #723, #1113: Markdown must be rendered to XHTML, not HTML, when generating summary content for Atom feeds. Otherwise, content-less tags like <img> and <hr>, generated when issue descriptions, merge request descriptions, comments, or commit messages use emoji, horizontal rules, or images, are not terminated and make the Atom XML invalid.
2015-03-16testsValery Sizov
2015-03-16Merge branch 'post-receive-base64' into 'master'Dmitriy Zaporozhets
Prevent gitlab-shell character encoding issues by receiving its changes as raw data. Depends on gitlab/gitlab-shell!65. Fixes: - https://github.com/gitlabhq/gitlabhq/issues/7486 - https://gitlab.com/gitlab-org/gitlab-ce/issues/858 - https://gitlab.com/gitlab-org/gitlab-ce/issues/877 - https://gitlab.com/gitlab-org/gitlab-ce/issues/965 See merge request !1701
2015-03-16Merge branch 'fix-restricted-visibility' into 'master'Dmitriy Zaporozhets
Restricted visibility levels - bug fix and new feature This allows admin users to override restricted visibility settings when creating and updating projects and snippets, and moves the restricted visibility configuration from gitlab.yml to the web UI. See #1903. ## Move configuration location I added a new section to the application settings page for restricted visibility levels. Each level has a checkbox, styled with Bootstrap to look like a toggle button. A checked box means that the level is restricted. I added a glowing text shadow and changed the background color for checked buttons because the default styles made it hard to distinguish between checked and unchecked. This image shows the new section with the "Public" box checked: ![restricted_visibility_settings](https://dev.gitlab.org/Okada/gitlabhq/uploads/629562e4313f89b795e81c3bb0f95893/restricted_visibility_settings.png) ## Allow admins to override To allow admin users to override the restricted visibility levels, I had to remove the `visibility_level` validation from the `Project` class. The model doesn't know about the `current_user`, which should determine whether the restrictions can be overridden. We could use the creator in the validation, but that wouldn't work correctly for projects where a non-admin user is the creator and an admin tries to change the project to a restricted visibility level. The `Project::UpdateService` and `Project::CreateService` classes already had code to determine whether the current user is allowed to use a given visibility level; now all visibility level validation is done in those classes. Currently, when a non-admin tries to create or update a project using a restricted level, these classes silently set the visibility level to the global default (create) or the project's existing value (update). I changed this behavior to be more like an Active Model validation, where using a restricted level causes the entire request to be rejected. Project and personal snippets didn't have service classes, and restricted visibility levels weren't being enforced in the model or the controllers. The UI disabled radio buttons for restricted levels, but that wouldn't be difficult to circumvent. I created the `CreateSnippetService` and `UpdateSnippetService` classes to do the same restricted visibility check that the project classes do. And since I was dealing with snippet visibility levels, I updated the API endpoints for project snippets to allow users to set and update the visibility level. ## TODO * [x] Add more tests for restricted visibility functionality cc @sytse @dzaporozhets See merge request !1655
2015-03-15Change permissions on backup filesVinnie Okada
Use more restrictive permissions for backup tar files and for the db, uploads, and repositories directories inside the tar files.
2015-03-15Prevent gitlab-shell character encoding issues by receiving its changes as ↵Douwe Maan
raw data.
2015-03-15Move group members index from `/members` to `/group_members`.Douwe Maan
2015-03-15Move project members index from `/team` to `/project_members`Douwe Maan
2015-03-15Use `project_member` instead of `team_member`.Douwe Maan
2015-03-15Use `group_member` instead of `users_group` or `membership`.Douwe Maan
2015-03-14Merge branch 'master' into fix-restricted-visibilityVinnie Okada
Conflicts: db/schema.rb
2015-03-14Add tests for snippet servicesVinnie Okada
Add Rspec tests for the new UpdateSnippetService and CreateSnippetService classes.
2015-03-14Unblock user if they were unblocked in AD.Douwe Maan
2015-03-13Merge branch 'group-icon-performance' into 'master'Dmitriy Zaporozhets
Prevent database query each time we render group avatar Fixes #2118 See merge request !1688
2015-03-13Fix specsDmitriy Zaporozhets
2015-03-12Block user if he/she was blocked in Active DirectoryDmitriy Zaporozhets
2015-03-12Merge branch 'fix_email_images' into 'master'Douwe Maan
Fix email images ## Dependencies: This MR Depends on gitlab-org/html-pipeline-gitlab!4 being **merged and published** to rubygems.org ## What does this MR do? This MR fixes the broken images in emails that occured scince we introduced access control for all attachments in 7.8. The access control lead to broken images, because the user usually isn't logged into gitlab when opening the email in his mail client. The solution to fix this, is to replace all images that were uploaded to gitlab as attachemnts with inline images in emails. I only added one test for images in notes, because all notes share the same view. If it works fine for a note on a commit, then it'll also work the same for notes on a MR or on issues. @DouweM can you review this please? Closes #1161 See merge request !373
2015-03-12Merge branch 'github-org-repos' into 'master'Dmitriy Zaporozhets
Fix missing GitHub organisation repositories on import page. Private repositories belonging to organizations rather than users can't be imported because `client.repos(org.login)` was requesting `/users/:org_login/repos` (which only returns public org repo's), while we need `/orgs/:org_login/repos` (which includes both public and private). The `client.org_repos` method does this. cc @marin This is a bug in 7.8.x, but I'm not sure if it needs a minor release now or if it can go in 7.9. See merge request !1683
2015-03-12Fix missing GitHub organisation repositories on import page.Douwe Maan
2015-03-12replace images in emails with inline imagesHannes Rosenögger
This adds the functionality of replacing all images that were uploaded to gitlab with inline images(base64) in emails. This change fixes the broken images in emails that 7.8 introduced
2015-03-12Fix tests for emojioneDmitriy Zaporozhets
2015-03-11Merge branch 'fix-code-preview' into 'master'Marin Jankovski
Fix code preview theme setting for comments, issues, merge requests, and snippets User color scheme was not being used: default white color scheme was always chosen. Also, default background for code in notes was always overriding the user color scheme. Closes #1139 See merge request !357
2015-03-11Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets
2015-03-11Merge branch 'master' into 'master'Hannes Rosenögger
Make email display name configurable #216 See merge request !80
2015-03-11Make email display name configurableVyacheslav Slinko
2015-03-11Rename dashboard landing page to Your projectsDmitriy Zaporozhets
2015-03-10Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets
2015-03-10Merge branch 'uploads-authorization' into 'master'Dmitriy Zaporozhets
Reject access to group/project avatar if the user doesn't have access. Closes #2050. I'll add tests for EE logos once this is merged here and merged into EE. See merge request !1671
2015-03-10Reject access to group/project avatar if the user doesn't have access.Douwe Maan
2015-03-10Fix code preview theme setting for comments, issues, merge requests, and ↵Stan Hu
snippets. Also preserve code preview color scheme in events dashboard. Assign default colors to all code blocks shown as <pre class="code highlight [color_scheme]"> Closes #1139
2015-03-10Use Gitlab::Git helper methods and constants as much as possible.Douwe Maan
2015-03-10This MR extends the commit calendar so it searches for commits made with ↵Stan Hu
every email address the user has associated with his account. This fixes one of the problems mentioned in gitlab-org/gitlab-ce#1162 and makes the behavior of the commit calendar as described in the profile. "All email addresses will be used to identify your commits."
2015-03-09Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets
2015-03-09fix mass SQL statements on initial pushHannes Rosenögger
This commit disables process_commit_messages() for the initial push to the default branch. This fixes the mass SQL statements (~500000) that were executed during the initial push of the linux kernel for example.
2015-03-09Move Profile groups tests to Dashboard group testsDmitriy Zaporozhets
2015-03-09Enforce restricted visibilities for snippetsVinnie Okada
Add new service classes to create and update project and personal snippets. These classes are responsible for enforcing restricted visibility settings for non-admin users.
2015-03-09Merge branch 'emails-on-push'Dmitriy Zaporozhets
Conflicts: app/controllers/projects/services_controller.rb app/models/project_services/emails_on_push_service.rb
2015-03-09Merge branch 'commit-range-reference' into 'master'Dmitriy Zaporozhets
Automatically link commit ranges to compare page. Closes #2103 Implemented as proposed in the last paragraph of the issue: > We could do something similar to Ruby, where `1..5` means `1,2,3,4,5` and `1...5` means `1,2,3,4`: `..` means inclusive, `...` means exclusive. In our case, `sha1...sha4` would mean `sha2,sha3,sha4` (exclusive with regards to `sha1`) and `sha1..sha4` would mean `sha1^...sha4`, i.e. `sha1,sha2,sha3,sha4` (inclusive to `sha1`). - `sha1...sha4` now links to `compare/sha1...sha4` - `sha1..sha4` now links to `compare/sha1^...sha4`. See merge request !1649
2015-03-09Allow admins to override restricted visibilityVinnie Okada
Allow admins to use restricted visibility levels when creating or updating projects.
2015-03-07Move restricted visibility settings to the UIVinnie Okada
Add checkboxes to the application settings page for restricted visibility levels, and remove those settings from gitlab.yml.
2015-03-07Merge branch 'mass-change-comments' into 'master'Dmitriy Zaporozhets
Send notifications and leave system comments when bulk updating issues. Resolves https://dev.gitlab.org/gitlab/gitlabhq/issues/1885. See merge request !1646
2015-03-07Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets
2015-03-07Merge branch 'condensed-mr-commits' into 'master'Dmitriy Zaporozhets
Condense commits already in target branch when updating merge request source branch. Resolves https://dev.gitlab.org/gitlab/gitlabhq/issues/2043. ![Screen_Shot_2015-03-06_at_17.17.13](https://dev.gitlab.org/gitlab/gitlabhq/uploads/8d03540b7b7294ce07005e6f3db6ed3d/Screen_Shot_2015-03-06_at_17.17.13.png) (Not shown in screenshot, but works fine with rebases as well) See merge request !1648