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/lib
AgeCommit message (Collapse)Author
2015-03-24Merge branch 'notes-count-without-system' into 'master'Dmitriy Zaporozhets
Don't include system notes in issue/MR comment count. Addresses private issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2163. See merge request !430
2015-03-23Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets
2015-03-23Merge branch 'improve-contributions-calendar' into 'master'Dmitriy Zaporozhets
Replace commits calendar with contributions calendar * count opening of issues and merge requests * dont trigger git repository - use events from database * count pushes instead of commits for faster and easier counting * much-much faster since does not affected by repository size See merge request !420
2015-03-23Don't include system notes in issue/MR comment count.Douwe Maan
2015-03-23Merge pull request #8995 from MichaelAlt/patch-1Douwe Maan
Faulty LDAP DN name escaping removed
2015-03-23Fix OAuth2 issue importing a new project from GitHub and GitLabStan Hu
Closes #1268
2015-03-23Merge branch 'disable-ref-generation-in-code-blocks' into 'master'Dmitriy Zaporozhets
Disable reference generation in preformatted/code blocks ### Summary If a user adds text in code or preformatted text via Markdown or HTML that contains `#XXX`, the system adds a note that issue `XXX` was mentioned. This is particularly annoying because we often list gdb backtrace dumps into our issues, and many issues get mentioned as a result. For example: ``` (gdb) bt #0 0x00000000004004c4 in second () at main.cc:6 #1 0x00000000004004d2 in first () at main.cc:11 #2 0x00000000004004dd in main () at main.cc:17 (gdb) ``` ### Steps to reproduce 1. In an issue, write the above text using Markdown or HTML tags (e.g. `<code>`, `<pre>`). 2. Observe that [issue 1](https://gitlab.com/gitlab-org/gitlab-ce/issues/1) and [issue 2](https://gitlab.com/gitlab-org/gitlab-ce/issues/2) have a note that says they were mentioned. ### Expected behavior Everything enclosed in the code blocks should be ignored as references. ### Observed behavior Issues get referenced unnecessarily. ### Fix I've made `reference_extractor.rb` strip out HTML and Markdown blocks before processing. I considered running the raw text through the entire Markdown processor, but this seems overkill and perhaps could lead to some unintended side effects. See merge request !365
2015-03-23Improve contribution calendar per day infoDmitriy Zaporozhets
2015-03-23Contribution calendar will use events instead of commits to count contributionsDmitriy Zaporozhets
2015-03-22Refactor contributions events and write tests for calendarDmitriy Zaporozhets
2015-03-22Replace commits calendar with contributions calendarDmitriy Zaporozhets
* count opening of issues and merge requests * dont trigger git repository - use events from database * much-much faster since does not affected by repository size
2015-03-22Merge branch 'backup-permissions' into 'master'Dmitriy Zaporozhets
Change permissions on backup files - #2 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. This is a followup to !1703, which was reverted because it broke Rspec tests. The test failures were due to the rake task changing directories and not changing back, which I fixed with this commit. cc @sytse See merge request !1716
2015-03-22Faulty LDAP DN name escaping removedMichael Alt
The Net::LDAP::Filter.escape function can not be used to escape the DN name because the backslash is required to escape special chars in the DN name. This leads to the error message "Access denied for your LDAP account." and prevents the user from logging in to gitlab. Example DN: CN=Test\, User,OU=Organization,DC=Company CN=Test User,OU=Organization,DC=Company http://www.ietf.org/rfc/rfc4514.txt
2015-03-21Extend push_tag event to include tag message and last commitKamil Trzcinski
2015-03-20Call chdir() with a blockVinnie Okada
2015-03-20Revert "Increase timeout for Git-over-HTTP requests."Dmitriy Zaporozhets
This reverts commit 516bcabbf42d60db2ac989dce4c7187b2a1e5de9. Conflicts: Gemfile
2015-03-20Disable reference creation for comments surrounded by code/preformatted blocksStan Hu
2015-03-20Merge branch 'bugfix/block_ldap_users_cronjob' into 'master'Dmitriy Zaporozhets
Fixed rake task gitlab:cleanup:block_removed_ldap_users Maybe not the most elegant solution, but it works for us. This closes issue gitlab-org/gitlab-ce#955. See merge request !338
2015-03-19Merge branch 'rake_backup' into 'master'Dmitriy Zaporozhets
Backup repo with tar instead of git bundle Fixes gitlab/gitlab-ee#246 See merge request !1723
2015-03-19Merge branch 'fewer-constants-more-helpres' into 'master'Dmitriy Zaporozhets
Fewer Git constants, more Git helpers. See merge request !1727
2015-03-19Dont exit from brakeman rake taskDmitriy Zaporozhets
2015-03-19backup repo with tar instead of git bundleValery Sizov
2015-03-19Fewer constants, more helpers.Douwe Maan
2015-03-18Move application setting to separate variable.Marin Jankovski
2015-03-18Handle nil restricted visibility settingsVinnie Okada
Return `true` from `non_restricted_level?` when the `restricted_visibility_levels` setting is nil.
2015-03-18Merge branch 'new-branch-commits' into 'master'Dmitriy Zaporozhets
List new commits for newly pushed branch in activity view. When someone pushes commits, I want to see them, regardless if it's a new or existing branch. If it's a new branch, we compare with the default branch (usually master). ![Screen_Shot_2015-03-17_at_15.49.13](https://dev.gitlab.org/gitlab/gitlabhq/uploads/4cb7e0d833bc83a30197db81d4b273bc/Screen_Shot_2015-03-17_at_15.49.13.png) See merge request !1711
2015-03-18List new commits for newly pushed branch in activity view.Douwe Maan
2015-03-18Extend the commit calendar to show the actual commits for a dateHannes Rosenögger
2015-03-18Change 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-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-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-16Let the server fix unconfigured gitZeger-Jan van de Weg
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-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-14Fix typoVasilij Schneidermann
2015-03-14Merge branch 'ldap-unblock-user' into 'master'Dmitriy Zaporozhets
Unblock user if they were unblocked in AD. Fixes problem with !1687. See merge request !1694
2015-03-14Unblock user if they were unblocked in AD.Douwe Maan
2015-03-13Merge branch 'tag-branch-hooks' into 'master'Dmitriy Zaporozhets
Execute hooks and services when branch or tag is created or deleted through web interface. Fixes #2095. Split up into commits to make it easier to see why what was changed :) See merge request !1692
2015-03-13Set push data object kind in PushDataBuilder.Douwe Maan
2015-03-13Fix import pages not working after first load.Douwe Maan
2015-03-12Block user if he/she was blocked in Active DirectoryDmitriy Zaporozhets
2015-03-12Merge branch 'blue-theme' into 'master'Dmitriy Zaporozhets
Add blue theme to GitLab See merge request !1682
2015-03-12Add blue theme to GitLabDmitriy Zaporozhets
2015-03-12Merge branch 'markdown-smb-link' into 'master'Dmitriy Zaporozhets
Allow smb:// links in Markdown text. As requested by Sam McLeod at https://gitlab.com/gitlab-org/gitlab-ce/issues/1184 See merge request !1669
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