summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Reject ruby interpolation in externalized stringsbvl-correct-interpolation-i18nBob Van Landuyt2018-08-259-7/+185
| | | | | | | | | | | | | | | | When using ruby interpolation in externalized strings, they can't be detected. Which means they will never be presented to be translated. To mix variables into translations we need to use `sprintf` instead. Instead of: _("Hello #{subject}") Use: _("Hello %{subject}) % { subject: 'world' }
* Merge branch 'winh-fix-dummy-badge-id' into 'master'Fatih Acet2018-08-231-1/+2
|\ | | | | | | | | Fix transient failure of badge_list_spec.js See merge request gitlab-org/gitlab-ce!21363
| * Use _.uniqueId() instead of Math.random() for dummy badgesWinnie Hellmann2018-08-231-1/+2
|/
* Merge branch '6965-backport-to-ce' into 'master'Stan Hu2018-08-234-79/+118
|\ | | | | | | | | Backport LDAP changes to CE See merge request gitlab-org/gitlab-ce!21361
| * Backport LDAP changes to CEDouglas Barbosa Alexandre2018-08-234-79/+118
| |
* | Merge branch ↵Nick Thomas2018-08-2310-188/+222
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | '43096-controller-projects-issuescontroller-referenced_merge_requests-json-executes-more-than-100-sql-queries' into 'master' Resolve "Controller Projects::IssuesController#referenced_merge_requests.json executes more than 100 SQL queries" Closes #43096 See merge request gitlab-org/gitlab-ce!21237
| * | Only load issue notes once when getting related MRs43096-controller-projects-issuescontroller-referenced_merge_requests-json-executes-more-than-100-sql-queriesSean McGivern2018-08-212-4/+17
| | | | | | | | | | | | | | | | | | | | | As we always call both methods from the controller - and elsewhere we call the more general method - and one uses all notes and the other uses system notes, then we should just load the notes and their authors once, and filter on the Ruby side.
| * | Add changelog entry for related MRs fixesSean McGivern2018-08-211-0/+5
| | |
| * | Fix CI pipelines N+1 in Issues::ReferencedMergeRequestsServiceSean McGivern2018-08-212-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | Whether the preloading belongs in the service or the controller is arguable, here. As the service is only used for one controller action, it seems reasonable to put it in the service, but that is not a definitive answer. Adding the preloads for MR project routes here doesn't seem to work, perhaps because of https://github.com/rails/rails/issues/32140.
| * | Fix routes N+1 in Issues::ReferencedMergeRequestsService#executeSean McGivern2018-08-212-2/+16
| | | | | | | | | | | | | | | Sorting here needs the project routes to be loaded, including the namespace routes.
| * | Fix authors N+1 in Issues::ReferencedMergeRequestsServiceSean McGivern2018-08-212-15/+37
| | | | | | | | | | | | | | | | | | | | | | | | `#referenced_merge_requests` preloaded too many associations. Award emoji, for instance, are completely unnecessary here. `#closed_by_merge_requests` had the opposite problem: `#all_references` needs each item's author, and these weren't preloaded.
| * | Move Issue#{referenced,closed_by}_merge_requests to serviceSean McGivern2018-08-218-186/+144
| | | | | | | | | | | | | | | | | | | | | | | | These methods don't really need to be on the Issue model. Issue#related_branches can also be moved to a service, but we can do that in a separate commit. This commit does not change any behaviour; it just moves code around, renames the service, and refactors the specs.
* | | Merge branch 'remove-scss-variables-5' into 'master'Dmitriy Zaporozhets2018-08-2317-118/+55
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Finish cleaning up reassigned variables Closes #49807 See merge request gitlab-org/gitlab-ce!21349
| * | Finish cleaning up reassigned variablesAnnabel Dunstone Gray2018-08-2217-118/+55
| | |
* | | Merge branch 'docs-update-prod-architecture-links' into 'master'Nick Thomas2018-08-231-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Fixes doc/development/architecture.md prod links. See merge request gitlab-org/gitlab-ce!20455
| * | | Fixes doc/development/architecture.md prod links.Jamie Gordon2018-07-061-2/+2
| | | |
* | | | Merge branch 'sh-limit-commit-renderering' into 'master'Sean McGivern2018-08-2313-19/+112
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Speed up diff comparisons by limiting number of commit messages rendered See merge request gitlab-org/gitlab-ce!21335
| * | | | Speed up diff comparisons by limiting number of commit messages renderedStan Hu2018-08-2213-19/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a diff has a significant number of commits, the previous behavior would attempt to render the Markdown on all the commit messages but only display 1000 of them. To avoid additional work, we only need to render the Markdown on the set that is displayed.
* | | | | Merge branch 'ccr/48800/ping_for_boards' into 'master'Sean McGivern2018-08-235-0/+29
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added count for label, assignee, and milestone lists Closes #48800 See merge request gitlab-org/gitlab-ce!21208
| * | | | | Added count for label, assignee, and milestone listsccr/48800/ping_for_boardsChantal Rollison2018-08-215-0/+29
| | | | | |
* | | | | | Merge branch 'jprovazn-fix-form-uploads' into 'master'Kamil Trzciński2018-08-233-3/+32
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add public/uploads/tmp to allowed upload paths Closes #49585 See merge request gitlab-org/gitlab-ce!20942
| * | | | | | Add public/uploads/tmp to allowed upload pathsjprovazn-fix-form-uploadsJan Provaznik2018-08-213-3/+32
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When direct_upload is enabled and a for file is being uploaded, then workhorse uses `public/uploads/tmp` path. If `uploads.storage_path` i sset to a different directory, then upload fails because `public/uploads/tmp` is not in allowed paths.
* | | | | | Update CHANGELOG.md for 11.2.1GitLab Release Tools Bot2018-08-224-15/+12
| | | | | | | | | | | | | | | | | | [ci skip]
* | | | | | Merge branch 'sh-fix-broken-ldap-clones' into 'master'Alejandro Rodríguez2018-08-223-0/+48
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix broken Git over HTTP clones with LDAP users Closes #50579 See merge request gitlab-org/gitlab-ce!21352
| * | | | | | Fix broken Git over HTTP clones with LDAP usersStan Hu2018-08-223-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a regression in !20608, the LDAP authenticator was not being used unless OmniAuth was enabled. This change allows the LDAP provider to be used if it is configured regardless of the OmniAuth setting. Closes #50579
* | | | | | | Merge branch 'sh-fix-wrong-commit-count-in-push' into 'master'Alejandro Rodríguez2018-08-223-13/+46
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix wrong commit count in push event payload Closes #49971 See merge request gitlab-org/gitlab-ce!21338
| * | | | | | Fix wrong commit count in push event payloadStan Hu2018-08-223-13/+46
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20916. We now only use the full commit count for the initial push to the default branch. Otherwise, we rely on the number of commits that we calculated occurred in the push. The original behavior in 11.1.4: 1. When a new branch is pushed, `@push_commits_count` was set to the total number of refs available for the branch. 2. For other branches, `@push_commits_count` would remain `nil`. 3. `GitPushService#build_push_data` would build the push data with `@push_commits_count`. 4. If this were `nil`, it would be set to the right value here: https://gitlab.com/gitlab-org/gitlab-ce/blob/v11.1.4/lib/gitlab/data_builder/push.rb#L60 Broken behavior: 1. `GitPushService#push_commits_count` is always called. 2. The total number of commits is therefore always equal to the total number of refs available. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/49971
* | | | | | Merge branch 'sh-improve-system-hook-spec' into 'master'Stan Hu2018-08-221-3/+3
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | Improve system hook spec in spec/services/git_push_service_spec.rb See merge request gitlab-org/gitlab-ce!21347
| * | | | | Improve system hook spec in spec/services/git_push_service_spec.rbStan Hu2018-08-221-3/+3
| | |/ / / | |/| | |
* | | | | Merge branch 'dz-bump-gitlab-svg' into 'master'50575-instance-statistics-should-be-available-without-usage-pingFilipa Lacerda2018-08-222-2/+6
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Update gitlab-svgs to 1.2.8 See merge request gitlab-org/gitlab-ce!21346
| * | | | Update gitlab-svgs to 1.2.8Dmitriy Zaporozhets2018-08-222-2/+6
|/ / / / | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Merge branch 'sh-conditional-system-hook-push' into 'master'Sean McGivern2018-08-223-4/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate unnecessary and duplicate system hook fires Closes #50549 See merge request gitlab-org/gitlab-ce!21337
| * | | | Eliminate unnecessary and duplicate system hook firesStan Hu2018-08-213-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously `SystemHookPushWorker` would always be called after a push event, and this would queue a Sidekiq job regardless of whether any system hooks needed that event. Moreover, another call inside `Project#execute_hooks` would also fire system hooks if they existed. This change both removes the duplicate system hook calls. For installations without system hooks for push events, this change also can save significant amount of RAM used by Redis. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50549
* | | | | Merge branch 'ide-file-templates-store' into 'master'Filipa Lacerda2018-08-2211-0/+591
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Added store for file templates in the Web IDE See merge request gitlab-org/gitlab-ce!21272
| * | | | | added rewire comment to action default exportide-file-templates-storePhil Hughes2018-08-211-0/+1
| | | | | |
| * | | | | fixed static-analysisPhil Hughes2018-08-171-0/+6
| | | | | |
| * | | | | Added store for file templates in the Web IDEPhil Hughes2018-08-1710-0/+584
| | | | | | | | | | | | | | | | | | | | | | | | #47947
* | | | | | Merge branch 'qa-317' into 'master'Rémy Coutable2018-08-224-4/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [QA] Fix a 'superclass must be a Class' error Closes gitlab-qa#317 See merge request gitlab-org/gitlab-ce!21340
| * | | | | | [QA] Fix a 'superclass must be a Class' errorRémy Coutable2018-08-224-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | | | | Merge branch 'yisiliang/gitlab-ce-avoid-nil-safe_message' into 'master'Rémy Coutable2018-08-223-0/+12
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid nil safe message See merge request gitlab-org/gitlab-ce!21326
| * | | | | | | Fix changelog's MR referenceSean McGivern2018-08-211-1/+1
| | | | | | | |
| * | | | | | | Make it clearer when Commit#description returns no_commit_messageSean McGivern2018-08-212-9/+7
| | | | | | | |
| * | | | | | | add 16889 MR change log, Avoid nil safe message.yisiliang2018-08-211-0/+5
| | | | | | | |
| * | | | | | | to avoid “NoMethodError (undefined method `split' for nil:NilClass)” ↵yisiliang2018-08-211-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | while safe_message is nil.
| * | | | | | | use #blank? instead #nil?yisiliang2018-08-211-1/+1
| | | | | | | |
| * | | | | | | to avoid “NoMethodError (undefined method `split' for nil:NilClass)” ↵yisiliang2018-08-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | while safe_message is nil.
* | | | | | | | Merge branch 'sh-bump-fog-google' into 'master'Rémy Coutable2018-08-225-15/+20
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump fog-google to 1.7.1 and google-api-client to 0.23.0 See merge request gitlab-org/gitlab-ce!21295
| * | | | | | | | Bump fog-google to 1.7.1 and google-api-client to 0.23.0sh-bump-fog-googleStan Hu2018-08-215-15/+20
| | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed to support query parameters in `Fog::Storage::Google`. See https://github.com/fog/fog-google/pull/409. Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/49957
* | | | | | | | Merge branch '41441-add-target-branch-name-to-cherrypick-confirmation' into ↵Sean McGivern2018-08-224-6/+11
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Resolve "Cherry-picking: Confirmation message should include target branch name" Closes #41441 See merge request gitlab-org/gitlab-ce!20846
| * | | | | | | | Fix failing testGeorge Andrinopoulos2018-08-201-1/+1
| | | | | | | | |