summaryrefslogtreecommitdiff
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
* Fix specssend-incremental-build-logKamil Trzcinski2016-05-121-1/+1
|
* Merge remote-tracking branch 'origin/master' into send-incremental-build-logKamil Trzcinski2016-05-1083-1659/+16
|\
| * Merge branch 'revert-4026' into 'master' Rémy Coutable2016-05-101-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "Merge branch 'wiki-fix' into 'master'" This reverts commit 4cc85a58e8ca00f5a4ecbd2bca40a0cad867b817 (!4026), reversing changes made to 90ae445ba930068d04adc5a009dbdeabe4cb3e34. From https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4026#note_11719950: > 1. On Ruby 2.1.x, the [`uri.path = ::File.join(project_wiki_base_path, uri.path)`](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/banzai/filter/wiki_link_filter.rb#L39) raises an `URI::InvalidComponentError: bad component(expected relative path component): http://bar.com/baz` error in `Banzai::Filter::WikiLinkFilter#rebuild_wiki_uri`, which is then rescued in [`Banzai::Filter::WikiLinkFilter#process_link_attr`](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/banzai/filter/wiki_link_filter.rb#L34), thus the link is not modified and the tests pass. 1. On Ruby 2.2.x, the same line doesn't raise an error anymore, thus tests are broken on Ruby 2.2 only. I didn't really understand yet why having absolute links in the wiki would break some tests vs having relative links as before, but I think the safest course to action is to revert this MR and to find another fix (probably just prepending `ProjectWiki#wiki_base_path` with the relative URL path component if we are in the case of a relative URL... /cc @artem-sidorenko Just a FYI note: no need to pick into `8-7-stable` since the original commit was not picked. See merge request !4105
| | * Revert "Merge branch 'wiki-fix' into 'master' "Rémy Coutable2016-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | This reverts commit 4cc85a58e8ca00f5a4ecbd2bca40a0cad867b817, reversing changes made to 90ae445ba930068d04adc5a009dbdeabe4cb3e34. Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | Merge branch 'remove-annotate-gem' into 'master' Yorick Peterse2016-05-1081-1653/+0
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the annotate gem and delete old annotations In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382 /cc @yorickpeterse See merge request !4099
| | * Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-0981-1653/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
| * | Merge branch 'fix/todos-for-private-group-mentions' into 'master' Douwe Maan2016-05-091-2/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Fix adding a todo for private group memebers See merge request !4081
| | * | Fix adding a todo for private group membersAhmad Sherif2016-05-071-2/+2
| | | | | | | | | | | | | | | | Fixes #14002
| * | | Merge branch 'issue_15394' into 'master' Rémy Coutable2016-05-092-0/+8
| |\ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | Sanitize milestones and labels titles fixes #15394 See merge request !4046
| | * | Make model sanitization methods one linersFelipe Artur2016-05-092-6/+4
| | | |
| | * | Sanitize milestones and label titlesissue_15394Felipe Artur2016-05-052-0/+10
| | | |
| * | | Merge branch '2954-api-expose-issue-user_notes_count' into 'master' Rémy Coutable2016-05-091-0/+4
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API: Expose Issue#user_notes_count and MergeRequest#user_notes_count _Originally opened at !2954 by @cnam812._ - - - Expose `Issue#user_notes_count` and `MergeRequest#user_notes_count` through the API. See merge request !3126
| | * | | API: Expose Issue#user_notes_countcnam-dep2016-05-091-0/+4
| | | | |
| * | | | Merge branch 'fix-secret' into 'master' Rémy Coutable2016-05-091-1/+1
| |\ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't read otp_secret_encryption_key from hardcoded path in models/user Variable `Gitlab::Application.config.secret_key_base` is set in config/initializers/secret_token.rb. It's very bad practice to use hard-coded paths inside an application and really unnecessary in this case. Mirror of https://github.com/gitlabhq/gitlabhq/pull/10311 See merge request !4044
| | * | | Don't read otp_secret_encryption_key from hardcoded path in models/userJakub Jirutka2016-05-041-1/+1
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | Variable `Gitlab::Application.config.secret_key_base` is set in config/initializers/secret_token.rb. It's very bad practice to use hard-coded paths inside an application and really unnecessary in this case.
| * | | Merge branch 'wiki-fix' into 'master' Rémy Coutable2016-05-091-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the proper GitLab URL for links in Wiki Fixes gitlab-org/gitlab-ce#17071 wiki links are proper compiled, e.g. ``` [same-level](same-level) -> <a href="same-level">same-level</a> [sub-level](sub/level) -> <a href="sub/level">sub-level</a> [upper-level](../upper-level) -> <a href="../upper-level">upper-level</a> ``` See merge request !4026
| | * | | Use the proper GitLab URL for links in WikiArtem Sidorenko2016-05-091-1/+1
| | | | |
| * | | | Merge branch 'rs-remove-wall_enabled' into 'master' Dmitriy Zaporozhets2016-05-091-2/+0
| |\ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Remove `wall_enabled` field from Project See merge request !4089
| | * | | Remove `wall_enabled` field from Projectrs-remove-wall_enabledRobert Speicher2016-05-081-2/+0
| | | | |
| * | | | Improve multiple branch push performance by memoizing permission checkingStan Hu2016-05-091-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you attempt to push thousands of branches at once, the 60-second timeout will occur because GitAccess checking does a lot of work to check if the user has permission to push to a branch. This changes does two things: 1. Instead of making 1 DB query per branch push, use a memoized list of protected branches to check 2. Memoize what permissions the user has to perform on this project On a test of 10,000 branch pushes, this prevents gitlab-shell from hitting the 60-second timeout. Closes #17225
* | | | Send trace to a browser incrementally when build is runningKamil Trzcinski2016-05-091-2/+6
|/ / / | | | | | | | | | | | | We send a state of ansi2html to client, client needs to send this state back. The state describes the configuration of generator and position within trace.
* | | Reduce delay in destroying a project from 1-minute to immediatelyStan Hu2016-05-071-0/+7
| |/ |/| | | | | Run ProjectDestroyWorker after pending_delete attribute has been committed to DB
* | Annotate modelsDmitriy Zaporozhets2016-05-065-2/+6
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Merge branch 'remove-unexpected-filtering' into 'master' Grzegorz Bizon2016-05-061-2/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Use outer join for issues ordering by milestones due. This MR contains an implementation for Solution 1 suggested in #14183 Ordering by Milestone due sooner/later ("milestone sort") filters issues without a milestone, which can let users feel like disappearing issues without a milestone. See merge request !3872
| * | Use outer join for issues ordering by milestones due.Takuya Noguchi2016-05-061-2/+3
| |/
* | Annotate the modelsZeger-Jan van de Weg2016-05-0672-323/+485
|/
* Merge branch 'use-rugged-to-create-tag' into 'master' Rémy Coutable2016-05-041-3/+13
|\ | | | | | | | | | | | | | | | | Use Rugged's TagCollection#create instead of gitlab-shell's Repository#add_tag for better performance This was originally opened at !1757 by @pcarranza but I changed it to use Rugged instead of gitlab_git, following @DouweM's request. Once this is merged, https://gitlab.com/gitlab-org/gitlab-shell/merge_requests/26 will be mergeable too. See merge request !3745
| * Use a similar approach to branch creation for tag creationuse-rugged-to-create-tagRémy Coutable2016-05-041-7/+10
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Use Rugged's TagCollection#create instead of gitlab-shell's ↵Rémy Coutable2016-05-041-2/+9
| | | | | | | | | | | | Repository#add_tag for better performance Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'pacoguzman/gitlab-ce-15001-since-and-until-operators-api-commits'Douwe Maan2016-05-041-2/+4
|\ \ | |/ |/| | | | | # Conflicts: # Gemfile.lock
| * API support for the 'since' and 'until' operators on commit requestsPaco Guzman2016-04-291-2/+4
| | | | | | - Parameter validation as ISO8601 format
* | Revert "Remove the Devise Async gem."Connor Shea2016-05-031-1/+1
| | | | | | | | | | | | This reverts commit 1cc614f2bdd30b4fce35ee9e680f9272b9012978. It was causing the ActiveJob integration to fail, so unfortunately we'll have to add the gem again.
* | Merge remote-tracking branch 'dev/master' into 'master'Robert Speicher2016-05-024-4/+6
|\ \
| * | Ensure URL in all Service subclasses are validRémy Coutable2016-04-254-4/+6
| | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Support e-mail notifications for comments on project snippetsStan Hu2016-05-021-0/+2
| | | | | | | | | | | | Closes #2334
* | | Backported minimal safewebhook implementation to GitLab CEGabriel Mazetto2016-04-304-9/+18
| | |
* | | Tweak checking branches in Project#open_branchesYorick Peterse2016-04-291-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes 4 things: 1. Project#protected_branches_names has been renamed to Project#protected_branch_names. 2. Project#open_branches uses a Set for the branch names as checking values in a Set is faster than checking values in a (large) Array. 3. Some redundant code in Project#open_branches has been removed. 4. Project#protected_branch_names now uses #pluck instead of #map, removing the need for loading entire DB records into memory.
* | | Use a query in Project#protected_branch?Yorick Peterse2016-04-291-1/+1
| | | | | | | | | | | | | | | | | | This changes Project#protected_branch? to use a query to check if a branch is protected, instead of loading all ProtectedBranch records into memory just to check if the list of names includes a given branch name.
* | | Merge branch 'gitattributes' into 'master' Rémy Coutable2016-04-292-0/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support supressing text file diffs on the default branch with .gitattributes This change allows users to suppress diffs for text files by adding an entry to the `.gitattributes` file. To take effect the file present at the HEAD of the default branch. When rendering a diff, if the file is text according to the charlock holmes gem (via the `text?` method) but the file is not diffable according to the project repository, then a message is displayed stating that the diff was suppressed. ![image](/uploads/2e119b725875a301e30d9ad482e283b3/image.png) I looked into ways to do this using a `binary` flag as suggested by @stanhu in [this comment](https://gitlab.com/gitlab-org/gitlab-ce/issues/2315#note_4435454), however, there was no good way to seperate what was a real binary file from one that had been marked as not diffable in `.gitattributes`. Fixes and closes gitlab-org/gitlab-ce#2315. See merge request !3806
| * | | Support supressing text file diffs on the default branch with .gitattributesMatt Oakes2016-04-292-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a combination of 3 commits. - Update the bare repositories info/attributes if the default branch is updated - Check the diff attributes of a file before showing a diff - Update CHANGELOG
* | | | Use a better message when milestone is newly createdchange_message_for_newly_created_milestoneArinde Eniola2016-04-291-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | make some changes for the checks to determine when the messages should be displayed add item to changelog and also integration test make some changes to the test make some changes
* | | Properly handle bigger filesZeger-Jan van de Weg2016-04-282-0/+12
| | |
* | | Render canceled status if any of the jobs canceledGrzegorz Bizon2016-04-271-1/+1
| |/ |/| | | | | | | This status will be returned only when there are no failed jobs that are not allowed to fail.
* | Allow alternative names for the CHANGELOG file.Connor Shea2016-04-261-1/+1
| | | | | | | | | | | | | | | | "CHANGELOG", "NEWS", "HISTORY", and "CHANGES" are recognized as Changelog files. Also adds relevant tests for each of these names. Resolves #14864.
* | Remove the Devise Async gem.Connor Shea2016-04-261-1/+1
| | | | | | | | | | | | The extra gem isn’t necessary anymore since Rails 4.2 has ActiveJob integration. Resolves #15575.
* | Throttle the update of `project.last_activity_at` to 1 minute15094-throttle-update-of-last_activity_atRémy Coutable2016-04-251-1/+1
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix Error 500 due to stale cache when projects are renamed or transferredStan Hu2016-04-251-4/+2
| | | | Closes gitlab-org/gitlab-ee#506
* Fix license detection to detect all license files, not only known licensesRémy Coutable2016-04-251-7/+3
| | | | | | Fixes #15470. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'fix/label-filters' into 'master' Douwe Maan2016-04-211-1/+8
|\ | | | | | | | | | | | | Filter labels by including ALL filter titles Fixed query to use `AND` and not `OR`. Refactored relevant specs See merge request !3815
| * Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into fix/label-filtersJames Lopez2016-04-2122-57/+232
| |\ | | | | | | | | | | | | # Conflicts: # spec/features/issues/filter_by_labels_spec.rb