summaryrefslogtreecommitdiff
path: root/lib/gitlab
Commit message (Collapse)AuthorAgeFilesLines
...
* | Remove satellitesDmitriy Zaporozhets2015-07-156-423/+0
|/
* Merge branch 'fork_visibility_level' into 'master'Dmitriy Zaporozhets2015-07-101-0/+4
|\ | | | | | | | | | | | | | | Forks should not have more permissive visibility levels than the original https://dev.gitlab.org/gitlab/gitlabhq/issues/2286 See merge request !936
| * Fork visibility level fixfork_visibility_levelValery Sizov2015-07-061-0/+4
| |
* | Properly render plain readmeDmitriy Zaporozhets2015-07-091-0/+10
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Reuse HTML Pipeline object in Markdown parserKamil Trzcinski2015-06-301-2/+2
| | | | The patches reduces pressure on GC and reduces markdown processing time
* Fix wrong order of issues when importing from githubHiroyuki Sato2015-06-281-1/+3
| | | | | See API details at https://developer.github.com/v3/issues/. Refs #1791
* Rename abilities to correspond contoller/model action namesrename-abilitiesDmitriy Zaporozhets2015-06-261-1/+1
| | | | | | | | | | | | | | | | | 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 'fix-diff-patch-public-mr' into 'master'Dmitriy Zaporozhets2015-06-232-3/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix downloading of patches on public merge requests when user logged out ### What does this MR do? This MR makes it possible to download a diff patch on a public merge request when a user is logged out. ### Why was this MR needed? An Error 500 would result when a user attempted to click on the "Email Patches" or "Plain Diff" button: ``` NoMethodError - undefined method `id' for nil:NilClass: lib/gitlab/backend/shell_env.rb:9:in `set_env' lib/gitlab/satellite/action.rb:20:in `in_locked_and_timed_satellite' lib/gitlab/satellite/merge_action.rb:49:in `diff_in_satellite' app/models/merge_request.rb:219:in `to_diff' app/controllers/projects/merge_requests_controller.rb:42:in `block (2 levels) in show' ``` ### What are the relevant issue numbers? * Closes #1225 * Closes #1854 (dup) * Closes #1858 (dup) See merge request !872
| * Fix downloading of patches on public merge requests when user logged outStan Hu2015-06-232-3/+7
| | | | | | | | | | | | Closes #1225 Closes #1854 Closes #1858
* | Make provider a select for identities form in admin areaDmitriy Zaporozhets2015-06-221-0/+19
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix behavior of ldap_person method in Gitlab::OAuth::UserAlex Lossent2015-06-171-4/+5
| | | | | Code tweaks in 45e9150a caused the ldap_person method to not return expected results. Improved tests to cover the ldap_person method, which was previously stubbed.
* Dont set checkout sha for removed branch/tagDmitriy Zaporozhets2015-06-151-2/+5
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add Gitlab::Themes module; remove Gitlab::ThemeRobert Speicher2015-06-132-50/+67
| | | | | | | 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 'feature-session-expire-seconds-ui' into 'master'Douwe Maan2015-06-121-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+2
| | | | | | settings
* | Define GITORIOUS_HOST only onceRobert Speicher2015-06-103-4/+5
| |
* | Revert "No need to check if `repository_ref` is present"Jeroen van Baarsen2015-06-091-1/+5
| |
* | No need to check if `repository_ref` is presentzenati2015-06-081-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no need to check if `repository_ref` is present as: ``` @repository_ref = if repository_ref.present? repository_ref else nil end ``` is as same as doing: ``` @repository_ref = repository_ref ```
* | Merge branch 'cernvcs/gitlab-ce-feature/auto_link_ldap_omniauth'Douwe Maan2015-06-051-3/+60
|\ \
| * | Tweak code.cernvcs/gitlab-ce-feature/auto_link_ldap_omniauthDouwe Maan2015-06-051-21/+24
| | |
| * | Add option to automatically link omniauth and LDAP identitiesAlex Lossent2015-06-031-4/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until now, a user needed to first sign in with his LDAP identity and then manually link his/her account with an omniauth identity from their profile. Only when this is done can the user authenticate with the omniauth provider and at the same time benefit from the LDAP integration (HTTPS authentication with LDAP username/password and in EE: LDAP groups, SSH keys etc.). This feature automates the process by looking up a corresponding LDAP person when a user connects with omniauth for the first time and then automatically linking the LDAP and omniauth identities (of course, like the existing allow_single_sign_on setting, this is meant to be used with trusted omniauth providers). The result is identical to a manual account link. Add config initializers for other omniauth settings.
* | | Merge branch 'fix-upgrader-script' into 'master'Dmitriy Zaporozhets2015-06-041-3/+8
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix upgrader script This is a fix for upgrader script not guessing the latest version correctly. Upgrader now handles versions where a version part (major/minor/patch) can have multi-digit number, also ensures that the latest version is chosen from git tags by converting tag to Gitlab::VersionInfo and than selecting the latest/greatest version. Fixes: #1476 See merge request !695
| * | Fix upgrader scriptMartins Polakovs2015-05-231-3/+8
| | |
* | | Merge branch 'repo-remove'Dmitriy Zaporozhets2015-06-031-4/+10
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: spec/features/projects_spec.rb
| * | Move repository when project is removedDmitriy Zaporozhets2015-06-031-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ths commit does next: * When we remove project we move repository to path+deleted.git * Then we schedule removal of path+deleted with sidekiq * If repository move failed we abort project removal This should help us with NFS issue when project get removed but repository stayed. The full explanation of problem is below: * rm -rf project.git * rm -rf removes project.git/objects/foo * NFS server renames foo to foo.nfsXXXX because some NFS client (think * Unicorn) still has the file open * rm -rf exits, but project.git/objects/foo.nfsXXX still exists * Unicorn closes the file, the NFS client closes the file (foo), and the * NFS server removes foo.nfsXXX * the directory project.git/objects/ still exists => problem So now we move repository and even if repository removal failed Repository directory is moved so no bugs with project removed but repository directory taken. User still able to create new project with same name. From administrator perspective you can easily find stalled repositories by searching `*+deleted.git` Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | Merge branch 'ignore-references' into 'master'Dmitriy Zaporozhets2015-06-022-39/+29
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't notify users mentioned in code blocks or blockquotes. cc @rspeicher See merge request !753
| * | | Ignore references in blockquotes.Douwe Maan2015-06-022-5/+12
| | | |
| * | | Actually ignore references in code blocks etc.Douwe Maan2015-06-021-34/+17
| |/ /
* | | Further limit the limited whitelist for project/group descriptionsrs-more-nofollowRobert Speicher2015-06-021-0/+1
| | |
* | | Add a `pipeline` context option for SanitizationFilterRobert Speicher2015-06-022-21/+40
|/ / | | | | | | | | When this option is `:description`, we use a more restrictive whitelist. This is used for Project and Group description fields.
* | Remove unnecessary satellite files and add CHANGELOG itemDmitriy Zaporozhets2015-06-022-67/+0
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Remove now unnecessary satelittes logic for creating and editing file with ↵web-editor-ruggedDmitriy Zaporozhets2015-06-023-143/+0
| | | | | | | | | | | | web editor Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Add ExternalLinkFilter to Markdown pipeliners-dont-follow-meRobert Speicher2015-05-272-0/+35
| | | | | | | | Forces a `rel="nofollow"` attribute on all external links.
* | Make use of to_reference in more specsRobert Speicher2015-05-266-8/+11
| |
* | Support only double quotes for multi-word label referencesRobert Speicher2015-05-261-2/+1
| |
* | Add `reference_pattern` to Referable modelsRobert Speicher2015-05-269-65/+16
| |
* | Correct the ReferenceFilter html/pipeline/filter requireRobert Speicher2015-05-261-1/+1
| |
* | Merge branch 'rs-issue-1690' into 'master'Dmitriy Zaporozhets2015-05-261-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | Better handle label references that aren't actually references Fixes #1690 See merge request !705
| * | Better handle label references that aren't actually referencesrs-issue-1690Robert Speicher2015-05-251-3/+3
| |/ | | | | | | Fixes #1690
* | Remove Rack Attack monkey patches and bump to version 4.3.0Stan Hu2015-05-222-32/+0
|/
* Customize the sanitization whitelist only oncers-issue-1651Robert Speicher2015-05-201-13/+22
| | | | Fixes #1651
* Subclass TaskList::Filter to fix a bugrs-issue-1645Robert Speicher2015-05-202-2/+25
| | | | | | | | | Instead of using a fork, we subclass the filter and only apply the `task-list` class to list items that actually are task lists. Closes #1645 See https://github.com/github/task_list/pull/60
* Simplify and unify helpers for rendering markupJakub Jirutka2015-05-181-3/+5
|
* Rename MarkdownHelper to MarkupHelperJakub Jirutka2015-05-181-1/+1
|
* Handle AsciiDoc better, reuse HTML pipeline filters (fixes #9263)Jakub Jirutka2015-05-182-1/+70
|
* Add search issues/MR by numberNikita Verkhovin2015-05-181-2/+14
|
* Merge branch 'dashboard-references' into 'master'Dmitriy Zaporozhets2015-05-151-7/+9
|\ | | | | | | | | | | | | | | | | | | | | | | Fix reference links in dashboard activity and ATOM feeds. References like `@user` were not linked on the dashboard activity feed and in Atom feeds, because the reference parser depends on `@project` which isn't set in those situations. This MR passes the project in question to the reference parsers in an option. cc @rspeicher See merge request !653
| * Fix reference links in dashboard activity and ATOM feeds.dashboard-referencesDouwe Maan2015-05-141-7/+9
| |
* | Merge branch 'rs-relative-link-filter' into 'master'Dmitriy Zaporozhets2015-05-142-17/+31
|\ \ | |/ |/| | | | | | | Minor RelativeLinkFilter cleanup See merge request !649