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-07-10Merge branch 'fork_visibility_level' into 'master'Dmitriy Zaporozhets
Forks should not have more permissive visibility levels than the original https://dev.gitlab.org/gitlab/gitlabhq/issues/2286 See merge request !936
2015-07-09Revert "api: add 'system', 'upvote', and 'downvote' fields to note queries"Stan Hu
This reverts commit dd4fee5fdbda07fbc09234c4b043c3c9939a6a9b.
2015-07-09api: add 'system', 'upvote', and 'downvote' fields to note queriesBen Boeckel
2015-07-09Properly render plain readmeDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-08use teaspoon instead of jasmine for testing javascriptFrancesco Coda Zabetta
2015-07-08Merge branch 'improve-postgres-restore-cleaning' into 'master' Dmitriy Zaporozhets
Use native Postgres database cleaning during backup restore We were using hacks to drop tables etc during a Postgres backup restore. With this change, we let pg_dump insert the DROP TABLE statements it needs at the start of the SQL dump. See merge request !1891
2015-07-07Use native Postgres database cleaning during backup restoreJacob Vosmaer
We were using hacks to drop tables etc during a Postgres backup restore. With this change, we let pg_dump insert the DROP TABLE statements it needs at the start of the SQL dump.
2015-07-07Merge branch 'compress-db' into 'master'Kamil Trzciński
Compress database backup Restore handles both cases: uncompressed and compressed backup. As an improvement `IO.popen` can be used. /cc @jacobvosmaer See merge request !873
2015-07-07Merge branch 'settings-via-api' into 'master'Dmitriy Zaporozhets
API to set application settings for admin Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !934
2015-07-06Compress database backupKamil Trzcinski
2015-07-06Add tests and improve logicDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-06Fork visibility level fixValery Sizov
2015-07-06Add docs and empty specs for applicaiton settings APIDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-06Merge pull request #9430 from gitlabhq/fix-rake-test-ciDmitriy Zaporozhets
Use teaspoon instead of jasmine:ci
2015-07-03API to set application settings for adminDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-03Allow user to be blocked and unblocked via the APISteve Norman
2015-07-03Use teaspoon instead of jasmine:ciDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-01Extract the longest-matching ref from a commit path when multiple matches occurStan Hu
Closes #1839
2015-06-30Reuse HTML Pipeline object in Markdown parserKamil Trzcinski
The patches reduces pressure on GC and reduces markdown processing time
2015-06-29Merge branch '1791-fix-github-issue-order' into 'master'Stan Hu
Fix wrong order of issues when importing from github ### 1. What does this MR do? The order of issues imported from GitHub is fixed. ### 2. Are there points in the code the reviewer needs to double check? Nothing. ### 3. Why was this MR needed? The default behaviors of GitHub API at listing issues are sort: :created and direction: :desc. See GitHub API details at https://developer.github.com/v3/issues/#list-issues. ### 4. What are the relevant issue numbers / Feature requests? Fixes #1791 ### 5. Screenshots (if relevant) Nothing See merge request !898
2015-06-28Remove jasmine:ci task, execute teaspoon directly on CIRobert Speicher
2015-06-27Fix wrong order of issues when importing from githubHiroyuki Sato
See API details at https://developer.github.com/v3/issues/. Refs #1791
2015-06-26Merge branch 'rename-abilities' into 'master'Dmitriy Zaporozhets
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
2015-06-26Only people who can manage issue can assign labels to itDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-26Rename abilities to correspond contoller/model action namesDmitriy Zaporozhets
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>
2015-06-24Add 2FA status to user admin APIStan Hu
Closes https://github.com/gitlabhq/gitlabhq/issues/9391
2015-06-23Merge branch 'split-tests' into 'master'Dmitriy Zaporozhets
Split rspec and spinach tests in parallel For https://dev.gitlab.org/gitlab/gitlabhq/issues/2386 See merge request !874
2015-06-23Merge branch 'fix-diff-patch-public-mr' into 'master'Dmitriy Zaporozhets
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
2015-06-23Replace GITLAB with GitLab in rake task descriptionsDmitriy Zaporozhets
2015-06-23Refactor rake tasks for testsDmitriy Zaporozhets
2015-06-23Merge branch 'admin-edit-identities' into 'master'Dmitriy Zaporozhets
Admin can see, edit and remove user identities Related to #1415 and https://dev.gitlab.org/gitlab/gitlabhq/issues/2224 Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !843
2015-06-23Fix downloading of patches on public merge requests when user logged outStan Hu
Closes #1225 Closes #1854 Closes #1858
2015-06-23Fix error when deleting a user who has projectsStan Hu
Closes #1856 Closes https://github.com/gitlabhq/gitlabhq/issues/9394
2015-06-22Merge branch 'master' into admin-edit-identitiesDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: app/views/admin/users/show.html.haml
2015-06-22Make provider a select for identities form in admin areaDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-22Merge branch 'nginx_defaulthost_documentation' into 'master'Dmitriy Zaporozhets
Close #178 Nginx conf default_host documentation This closes #178 We're just making it clear that some nginx installs such as by default on recent Ubuntu's, the /etc/nginx/sites-enabled/default file will conflict the listen line of the gitlab nginx conf's due to the default_server directive. changed installation.md to identify the issue to a user added notes to both nginx configs for gitlab and gitlab-ssl [ci-skip See merge request !225
2015-06-22Merge branch 'restore_uploads_fix' into 'master'Dmitriy Zaporozhets
Avoid "cannot copy directory ... to itself" error on restore (on Docker?) rake gitlab:backup:restore fails for me in my Docker-hosted Gitlab-CE instance; during the restore, any existing "uploads" directory is backed up by [this code](https://gitlab.com/gitlab-org/gitlab-ce/blob/833bc30/lib/backup/uploads.rb#L23) -- ```ruby def backup_existing_uploads_dir timestamped_uploads_path = File.join(app_uploads_dir, '..', "uploads.#{Time.now.to_i}") if File.exists?(app_uploads_dir) FileUtils.mv(app_uploads_dir, timestamped_uploads_path) end end ``` When this executes for me, the ```FileUtils.mv``` parameters are "/home/git/gitlab/public/uploads" and "/home/git/gitlab/public/uploads/../uploads.1407019546"; an exception is raised, producing this double stacktrace: ``` ArgumentError: cannot copy directory /home/git/gitlab/public/uploads to itself /home/git/gitlab/public/uploads/../uploads.1407019546 /home/git/gitlab/lib/backup/uploads.rb:26:in `backup_existing_uploads_dir' /home/git/gitlab/lib/backup/uploads.rb:18:in `restore' /home/git/gitlab/lib/tasks/gitlab/backup.rake:73:in `block (4 levels) in <top (required)>' /home/git/gitlab/lib/tasks/gitlab/backup.rake:30:in `block (3 levels) in <top (required)>' Errno::EXDEV: Invalid cross-device link @ sys_fail2 - (/home/git/gitlab/public/uploads, /home/git/gitlab/public/uploads/../uploads.1407019546) /home/git/gitlab/lib/backup/uploads.rb:26:in `backup_existing_uploads_dir' /home/git/gitlab/lib/backup/uploads.rb:18:in `restore' /home/git/gitlab/lib/tasks/gitlab/backup.rake:73:in `block (4 levels) in <top (required)>' /home/git/gitlab/lib/tasks/gitlab/backup.rake:30:in `block (3 levels) in <top (required)>' Tasks: TOP => gitlab:backup:uploads:restore (See full trace by running task with --trace) ``` I'm guessing from the first message that ```mv``` walks the destination path to ensure that we're not moving the source into itself -- it doesn't get as far as interpreting the '..', but throws when it sees that the destination appears to start with the source path. The second stacktrace I have no clue about - maybe it's AUFS- or Docker-related? I attempted to reproduce this separately with the omnibus distribution in a fresh Ubuntu 14.04 install without Docker involved, and was unable to - backup and restore worked fine. I then tested my theory by FileUtils.expand_path-ing the destination in my own Docker setup code, and that made the problem go away, so that's what this merge request does. (I'm using backups created and restored on gitlab-ce 7-1-stable, at facfec4b2; this is on Ubuntu 14.04 with Docker 1.1.1) I know I'd look askance at a PR without tests for an unreproducable problem, but even if this is rejected, I'm submitting it anyway because maybe someone else will Google it and find it useful. I'm happy to do more work to improve this if you have suggestions. See merge request !165
2015-06-17Fix behavior of ldap_person method in Gitlab::OAuth::UserAlex Lossent
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.
2015-06-15Dont set checkout sha for removed branch/tagDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-15Merge branch 'update_ssl_ciphers' into 'master'Dmitriy Zaporozhets
Update ssl ciphers Removing all DHE suites from Nginx template SSL ciphers. This will deny forward secrecy for Android 2.3.7, Java 6 and OpenSSL 0.9.8. but will give A+ rating on SSL labs. Google sites also do not have DHE suites, [source](https://community.qualys.com/blogs/securitylabs/2013/06/25/ssl-labs-deploying-forward-secrecy) > Google's sites, for example, tend to not have any DHE suites in their configuration. [2013] See merge request !814
2015-06-15Update SSL ciphers per logjam vulnerability recommendations.Marin Jankovski
2015-06-14Add Gitlab::Themes module; remove Gitlab::ThemeRobert Speicher
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.
2015-06-12Merge branch 'feature-session-expire-seconds-ui' into 'master'Douwe Maan
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
2015-06-12Merge branch 'note_about_omnibus_changes' into 'master'Dmitriy Zaporozhets
Add a note that changing example configuration files requires changing omnibus-gitlab. Keeping track of changes in these files is not easy and they usually require change in omnibus-gitlab. Added a note so everyone is aware of this. Similar is added to gitlab-shell and gitlab-ci. Discussed in gitlab-org/omnibus-gitlab#605 See merge request !800
2015-06-12Merge pull request #9371 from zenati/patch-2Dmitriy Zaporozhets
An `in_namespace` scope is already present
2015-06-11Add a note that changing example configuration files requires changing ↵Marin Jankovski
omnibus-gitlab.
2015-06-11session_expire_seconds => session_expire_delaythemaze75
delay is in seconds more legible code in session_store Added `GitLab restart required` help block to session_expire_delay
2015-06-10Merge branch 'rs-pre-rspec-3' into 'master'Dmitriy Zaporozhets
Changes back-ported from rspec3 branch This is just breaking up the large `road-to-rspec-3` branch a bit. Each of these commits have been cherry-picked and would be good to have in place before the upgrade. See merge request !792
2015-06-10Merge branch 'master' into 'master'Dmitriy Zaporozhets
update fog to 1.25.0 and add multipart upload support This merge will fix backup uploading problems to s3, closing gitlab-org/gitlab-ce#1059 See merge request !789
2015-06-10Define GITORIOUS_HOST only onceRobert Speicher