summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fixup! Fix attr reader to force the intended values for source and target shasfix-gh-pull-requestsDouglas Barbosa Alexandre2016-07-311-6/+2
|
* Update CHANGELOGDouglas Barbosa Alexandre2016-07-311-0/+1
|
* Fix attr reader to force the intended values for source and target shasDouglas Barbosa Alexandre2016-07-312-3/+19
| | | | | | | | | | | When importing a pull request from GitHub, the old and new branches may no longer actually exist by those names, but we need to recreate the merge request diff with the right source and target shas. We use these `target_branch_sha` and `source_branch_sha` attributes to force these to the intended values. But the reader methods were always looking up to the target/source branch head instead of check if these values was previously set.
* Merge branch 'clarify-deletion-message' into 'master' Robert Speicher2016-07-301-1/+1
|\ | | | | | | | | | | | | | | | | Clarify which project is deleted to avoid alarm Some users were alarmed when navigating after deleting a project. Add the project name to avoid cause for alarm. Closes #13654 See merge request !5574
| * Clarify which project is deleted to avoid alarmclarify-deletion-messageStan Hu2016-07-291-1/+1
| | | | | | | | Closes #13654
* | Merge branch 'reject-merge-conflicts' into 'master' Robert Speicher2016-07-303-1/+19
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Properly abort a merge when merge conflicts occur If somehow a user attempted to accept a merge request that had conflicts (e.g. the "Accept Merge Request" button or the MR itself was not updated), `MergeService` did not properly detect that a conflict occurred. It would assume that the MR went through without any issues and close the MR as though everything was fine. This could cause data loss if the source branch were removed. Closes #20425 See merge request !5569
| * | Properly abort a merge when merge conflicts occurreject-merge-conflictsStan Hu2016-07-293-1/+19
| |/ | | | | | | | | | | | | | | | | | | | | If somehow a user attempted to accept a merge request that had conflicts (e.g. the "Accept Merge Request" button or the MR itself was not updated), `MergeService` did not properly detect that a conflict occurred. It would assume that the MR went through without any issues and close the MR as though everything was fine. This could cause data loss if the source branch were removed. Closes #20425
* | Merge branch 'remove-redundant-blob-text-calls' into 'master' Yorick Peterse2016-07-305-6/+27
|\ \ | |/ |/| | | | | Improve diff performance by eliminating redundant checks for text blobs See merge request !5575
| * Improve diff performance by eliminating redundant checks for text blobsremove-redundant-blob-text-callsStan Hu2016-07-295-6/+27
|/ | | | | | | On a merge request with over 1000 changed files, there were redundant calls to blob_text_viewable?, which incurred about 7% of the time. Improves #14775
* Merge branch 'fix/import-project-hooks' into 'master' Douwe Maan2016-07-294-2/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix repo hooks missing on import Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/19556 Repo hooks are missing from imported projects - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5549
| * fix repo hooks missing on importfix/import-project-hooksJames Lopez2016-07-284-2/+22
| | | | | | | | fix spec and added changelog
* | Merge branch 'ability-batch-issue-checking' into 'master' Robert Speicher2016-07-298-10/+355
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optimize checking if a user can read multiple issues ## What does this MR do? This optimizes various parts of the code so it can more efficiently check if a user can read a list of issues. ## Are there points in the code the reviewer needs to double check? Yes, in particular `Ability.issues_readable_by_user` should be checked to make sure it correctly allows/restricts access to issues. ## Why was this MR needed? Currently the general approach to checking if one can read an issue is to iterate over the issues to check and call `can?(user, :read_issue, issue)` for every issue. This is not efficient as the same work has to be done for every issue. ## What are the relevant issue numbers? * #15607 * #17463 See merge request !5370
| * | Method for returning issues readable by a userability-batch-issue-checkingYorick Peterse2016-07-298-10/+355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The method Ability.issues_readable_by_user takes a list of users and an optional user and returns an Array of issues readable by said user. This method in turn is used by Banzai::ReferenceParser::IssueParser#nodes_visible_to_user so this method no longer needs to get all the available abilities just to check if a user has the "read_issue" ability. To test this I benchmarked an issue with 222 comments on my development environment. Using these changes the time spent in nodes_visible_to_user was reduced from around 120 ms to around 40 ms.
* | | Merge branch 'rubocop/enable-access-modifiers-cops' into 'master' Robert Speicher2016-07-2916-177/+184
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable Rubocop cops that check access modifiers ## What does this MR do? This MR enables Rubocop cops that detect methods that should be restricted but are the part of public API because of access modifiers used improperly. This also fixes existing offenses. ## Why was this MR needed? Some method in our codebase are public instead of being private because it is sometimes difficult to get it right without static analysis. ## What are the relevant issue numbers? See #17478 Closes #17372 See merge request !5014
| * | | Enable Rubocop cops for invalid access modifiersrubocop/enable-access-modifiers-copsGrzegorz Bizon2016-07-194-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables following cops: Check for useless access modifiers Lint/UselessAccessModifier Checks for attempts to use `private` or `protected` to set the visibility of a class method, which does not work. Lint/IneffectiveAccessModifier This also disables two false possitives in concerns.
| * | | Fix method visiblity in emoji filter classGrzegorz Bizon2016-07-191-5/+5
| | | |
| * | | Fix methods visibility in markdown filter classGrzegorz Bizon2016-07-191-7/+7
| | | |
| * | | Fix method visibility in gitlab metrics classGrzegorz Bizon2016-07-191-2/+2
| | | |
| * | | Make banzai module that handles markdown singletonGrzegorz Bizon2016-07-191-7/+9
| | | |
| * | | Fix method visibility in inline diff classGrzegorz Bizon2016-07-191-35/+39
| | | |
| * | | Fix methods visibility in gitlab database moduleGrzegorz Bizon2016-07-191-2/+4
| | | |
| * | | Refactor gitlab themes module to make it singletonGrzegorz Bizon2016-07-191-7/+9
| | | |
| * | | Refactor system notes service to make it singletonGrzegorz Bizon2016-07-191-76/+78
| | | |
| * | | Fix private method visibility in container registryGrzegorz Bizon2016-07-191-6/+6
| | | |
| * | | Fix some useless access modifiers in the codeGrzegorz Bizon2016-07-194-20/+14
| | | |
* | | | Merge branch 'refactor/ci-config-move-job-entries' into 'master' Rémy Coutable2016-07-2933-343/+1147
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move CI job config entries from legacy to new config ## What does this MR do? This MR extracts jobs configuration logic from legacy CI config processor to the new code. ## What are the relevant issue numbers? #15060 ## Does this MR meet the acceptance criteria? - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) See merge request !5087
| * | | | Improve code, remove unused validator, improve namesGrzegorz Bizon2016-07-2911-36/+22
| | | | |
| * | | | Merge branch 'master' into refactor/ci-config-move-job-entriesGrzegorz Bizon2016-07-22233-2300/+3694
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (183 commits) Add a spec for #20079. Skip repository storage path valitaions on test environment Use Pathname to make the repository storage path validations more robust Update to gitlab_git 10.4.1 and take advantage of preserved Ref objects Change nav link snippet controller Reduce min width of pipeline table Retrieve rendered HTML from cache in one request Explain CI_PROJECT_NAMESPACE better Bump vmstat version to fix issues reporting on FreeBSD Fix sha icon positioning on safari Don't drop in DropAndReaddHasExternalWikiInProjects Mobile view for commit status Fix ci icons getting cut off Update CHANGELOG Extract helper methods to clean up RepositoryArchiveCleanUpService spec Use Dir.mktmpdir instead of FileUtils.mkdir_p in the spec Fix firefox rendering of SVGs Fix icons on commits page and builds page Add new fork SVG to fix weird styling of other SVGs Bug fixes ...
| * | | | | Move job dependencies entry to the new CI configGrzegorz Bizon2016-07-203-16/+14
| | | | | |
| * | | | | Add minor readability, style improvements in CI configGrzegorz Bizon2016-07-208-20/+21
| | | | | |
| * | | | | Merge branch 'master' into refactor/ci-config-move-job-entriesGrzegorz Bizon2016-07-20211-8884/+15259
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (321 commits) Fix the Sentry spam from CSP violations by disabling it. Limit git rev-list output count to one in forced push check Ensure Owners are included in the scope for authorized_projects Fix alignment of icons on project page Fix ci_status_helper_spec to look for new SVGs use 2.0.5, actually (2.0.4 was a bad release) upgrade rouge to 2.0.4 Fix help page paths to make sure shortcuts and the UI help page work. fixes an issue cause by a bad merge Vertically align status icon within table Add new icons for every CI status Add global style for running icon Align running icon in merge request Add new running icon; add a bunch of styles to get svg to match existing fa icons Improve code design Fix broken builds_for_ref Move when tests before to make it no conflict with manual-actions Use value of `yaml_variables` and `when` from config_processor if undefined Add CHANGELOG entry CHANGELOG item ... Conflicts: lib/ci/gitlab_ci_yaml_processor.rb spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
| * | | | | | Move job environment validation to new CI configGrzegorz Bizon2016-07-195-20/+18
| | | | | | |
| * | | | | | Move tags and allow_failure CI entries to new configGrzegorz Bizon2016-07-183-10/+10
| | | | | | |
| * | | | | | Validate allowed keys only in new CI configGrzegorz Bizon2016-07-183-19/+15
| | | | | | |
| * | | | | | Improve valid keys validation for CI config nodesGrzegorz Bizon2016-07-186-29/+28
| | | | | | |
| * | | | | | Move job artifacts configuration new CI config codeGrzegorz Bizon2016-07-188-27/+154
| | | | | | |
| * | | | | | Move job variables config entry to new CI configGrzegorz Bizon2016-07-183-18/+6
| | | | | | |
| * | | | | | Move except and only job nodes to new CI configGrzegorz Bizon2016-07-184-3/+93
| | | | | | |
| * | | | | | Move job image and services nodes to new CI configGrzegorz Bizon2016-07-183-13/+14
| | | | | | |
| * | | | | | Merge branch 'master' into refactor/ci-config-move-job-entriesGrzegorz Bizon2016-07-18606-6485/+15078
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (522 commits) Fix CI yaml example Align cancel and retry buttons Remove deploy to production button Fix a bug where the project's repository path was returned instead of the wiki path Don't fail to highlight when Rouge doesn't have a lexer Revert "Merge branch 'gl-dropdown-issuable-form' into 'master'" Update tests Don't fail when Ci::Pipeline doesn't have a project Don't fail when a LegacyDiffNote didn't store the right diff Update CHANGELOG Use cattr_accessor instead duplicating code on NoteOnDiff concern Fix mentioned users list on diff notes Don't ask Heather to review documentation MR's add project name and namespace to filename on project export navbar_icon was renamed to custom_icon in: use %(...) and %[...] in favor of %<...> Fix spec Don't attempt to disable statement timeout on a MySQL DB Disable statement timeout outside of transaction and during adding concurrent index Disable PostgreSQL statement timeout during migrations Add visibility icon ...
| * | | | | | | Simplify abstract class for CI config entry nodesGrzegorz Bizon2016-07-155-43/+33
| | | | | | | |
| * | | | | | | Simplify CI config and remove logical validationGrzegorz Bizon2016-07-156-37/+12
| | | | | | | |
| * | | | | | | Add metadata to new CI config and expose job nameGrzegorz Bizon2016-07-1511-69/+60
| | | | | | | |
| * | | | | | | Remove job cache configfrom legacy yaml processorGrzegorz Bizon2016-07-143-25/+8
| | | | | | | |
| * | | | | | | Remove references to global entry in new CI configGrzegorz Bizon2016-07-145-15/+5
| | | | | | | |
| * | | | | | | Revert logical validation in CI job stage entryGrzegorz Bizon2016-07-145-84/+15
| | | | | | | |
| * | | | | | | Revert references to global node in CI job entryGrzegorz Bizon2016-07-145-144/+8
| | | | | | | |
| * | | | | | | Improve CI job entry validations in new configGrzegorz Bizon2016-07-149-39/+54
| | | | | | | |
| * | | | | | | Expose CI job commands and use in legacy processorGrzegorz Bizon2016-07-135-21/+33
| | | | | | | |
| * | | | | | | Add before script and commands to CI job entryGrzegorz Bizon2016-07-132-8/+124
| | | | | | | |