summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Removed old comment from update_column_in_batchesfix-migration-helper-race-conditionsYorick Peterse2016-06-131-2/+0
|
* Update columns in batches until no rows are leftYorick Peterse2016-06-131-2/+5
| | | | | | | | | | | | Instead of updating a fixed number of rows (based on the amount of rows available at the start of the update) the method "update_column_in_batches" will now continue updating rows until it runs out of rows to process. For a table with a high rate of inserts this may result in the migration taking quite some time. However, the alternative is not all rows being updated or the "change_column_null" method raising an error due to there being NULL values.
* Handle NULL migration errors in migration helpersYorick Peterse2016-06-132-2/+15
| | | | | This ensures that whenever changing the NULL constraint of a column fails we still drop the column.
* Merge branch ↵Rémy Coutable2016-06-135-9/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '18446-when-this-merge-request-is-accepted-this-issue-will-be-closed-automatically-rendered-twice' into 'master' Resolve ""When this merge request is accepted, this issue will be closed automatically" rendered twice" ## What does this MR do? 1. Only show the above text when there is an MR that will close the issue, and even then, only show it once. 2. Apply 98f147e84d2bd8f2278452ac0852118452c76d4a to a bunch of other places that need it. ## Are there points in the code the reviewer needs to double check? ¯\_(ツ)_/¯ ## Why was this MR needed? Some pages were broken. ## What are the relevant issue numbers? Fixes #18446. ## Screenshots (if relevant) Before: ![image](/uploads/23cfaf95b7c798f22963ff67f78a803b/image.png) After: ![image](/uploads/ca9c538069ba52e53858c69387738521/image.png) ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - [ ] Tests - [ ] Added for this feature/bug - [ ] All builds are passing - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if you do - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !4594
| * Don't try to count a relation with aliases18446-when-this-merge-request-is-accepted-this-issue-will-be-closed-automatically-rendered-twiceSean McGivern2016-06-104-7/+7
| | | | | | | | | | 98f147e84d2bd8f2278452ac0852118452c76d4a fixed this for issues in HTML, but not MRs or Atom feeds.
| * Only show issues closing MR when presentSean McGivern2016-06-101-2/+0
| |
* | Merge branch 'bug/svg_sanitizer' into 'master' Robert Speicher2016-06-133-13/+130
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve SVG sanitizer to handle namespaced attributes * Small refactor in the SVG sanitizer * Enable already whitelisted namespaced attributes to be allowed * Disable `xlink:href`to reference any external resource Fixes #18100 See merge request !4427
| * | Improved SVG sanitizer specs to include smoke tests for clean.bug/svg_sanitizerGabriel Mazetto2016-06-121-0/+16
| | |
| * | Refactored SVG sanitizerGabriel Mazetto2016-06-122-24/+41
| | |
| * | Added SVG sanitizer fix to the changelogGabriel Mazetto2016-06-121-0/+1
| | |
| * | Refactor SVG sanitizer and prevent `xlink:href` to refer to external resourcesGabriel Mazetto2016-06-122-8/+30
| | |
| * | Fix SVG whitelisting to allow namespaced attributesGabriel Mazetto2016-06-122-5/+66
|/ /
* | Merge branch 'fix-closes-issues-error-500' into 'master' Robert Speicher2016-06-126-2/+42
|\ \ | | | | | | | | | | | | | | | | | | Fix Error 500 when using closes_issues API with an external issue tracker Closes #18484 See merge request !4608
| * | Fix Error 500 when using closes_issues API with an external issue trackerStan Hu2016-06-116-2/+42
| | | | | | | | | | | | Closes #18484
* | | Merge branch 'nav-offscreen-dz-patch' into 'master' Dmitriy Zaporozhets2016-06-115-27/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Improvements to offscreen navigation Improvements on top of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4579 based on mockups from https://gitlab.com/gitlab-org/gitlab-ce/issues/18417#note_12389766 See merge request !4607
| * | | Center layout navigation and remove iconsnav-offscreen-dz-patchDmitriy Zaporozhets2016-06-115-27/+3
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Merge branch '18417-nav-offscreen' into 'master' Dmitriy Zaporozhets2016-06-1118-182/+130
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "Hide Left sidebar paradigm" ## What does this MR do? Hides the nav bar by default & centers the tanuki logo in the top nav ## Why was this MR needed? UX ## What are the relevant issue numbers? Closes #18417 ## Screenshots (if relevant) ![Screen_Shot_2016-06-10_at_12.49.10_PM](/uploads/c281e4c9de1c1bc9af59ebfa8d2bd18b/Screen_Shot_2016-06-10_at_12.49.10_PM.png) ![Screen_Shot_2016-06-10_at_12.49.27_PM](/uploads/635e0a88230105faa5527f6632899ddb/Screen_Shot_2016-06-10_at_12.49.27_PM.png) <img src="/uploads/3001a9c723037012f1b86cfacfb1225e/Screen_Shot_2016-06-10_at_12.51.41_PM.png" width="500px"> See merge request !4579
| * | | Fix preferences_spec test18417-nav-offscreenAnnabel Dunstone2016-06-103-8/+6
| | | |
| * | | Add back sidebar counters and usernameAnnabel Dunstone2016-06-109-15/+33
| | | |
| * | | Fix safari logo loading animation safari bugAnnabel Dunstone2016-06-102-8/+1
| | | |
| * | | Revert side nav to full width; remove border under nav; remove tooltips on ↵Annabel Dunstone2016-06-1012-145/+52
| | | | | | | | | | | | | | | | nav links; stop page content shifting with side nav; put project nav in container
| * | | Update media queriesAnnabel Dunstone2016-06-101-3/+3
| | | |
| * | | Fix profile testAnnabel Dunstone2016-06-102-1/+2
| | | |
| * | | Fix logo at all screen widths, update sidebar textAnnabel Dunstone2016-06-107-56/+78
| | | |
| * | | Move tanuki icon to center of nav bar; keep nav closed by default; remove ↵Annabel Dunstone2016-06-108-36/+44
| | | | | | | | | | | | | | | | collapsed nav cookie
* | | | Merge branch '18463-search-form-padding-is-too-damn-high' into 'master' Dmitriy Zaporozhets2016-06-111-1/+0
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed search form padding ## What does this MR do? Corrects the padding of the search form. ## Are there points in the code the reviewer needs to double check? Ney. ## Why was this MR needed? UX ## What are the relevant issue numbers? Closes #18463. ## Screenshots (if relevant) ![Screen_Shot_2016-06-10_at_14.07.32](/uploads/e4d127c66cf7fa3286279367d6e4ea7c/Screen_Shot_2016-06-10_at_14.07.32.png) ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - [ ] Tests - [ ] Added for this feature/bug - [ ] 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 !4591
| * | | Fixed search form paddingLuke "Jared" Bennett2016-06-101-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Updated CHANGELOG Removed CHANGELOG entry
* | | | Merge branch 'create-backup-dir-for-local' into 'master' Robert Speicher2016-06-101-3/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only create the backup directory if it is local Closes #12710 See merge request !4551
| * | | | Only create the backup directory if it is localStan Hu2016-06-101-3/+18
| | | | | | | | | | | | | | | | | | | | Closes #12710
* | | | | Merge branch 'finding-multiple-projects-by-paths' into 'master' Robert Speicher2016-06-102-11/+93
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Project.where_paths_in In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4410 I'm working on reducing the SQL queries needed to render Markdown. One reason for the large amount of queries is executing a large number of queries needed to find projects and related data. Basically `Project.find_with_namespace` is called in a loop and then any relations have to be retrieved separately. By using `Project.where_paths_in` we can work around this by doing something like: ```ruby project_paths = [...] # populated by some method projects = Project.where_paths_in(project_paths).includes(:namespace, ...) ``` Ref: https://gitlab.com/gitlab-org/gitlab-ce/issues/18042 See merge request !4535
| * | | | Add Project.where_paths_infinding-multiple-projects-by-pathsYorick Peterse2016-06-102-11/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This method can be used to find multiple projects for multiple paths. For example, take this snippet: Project.where_paths_in(%w{gitlab-org/gitlab-ce gitlab-org/gitlab-ee}) This will return an ActiveRecord::Relation containing the GitLab CE and GitLab EE projects. This method takes care of matching rows both case-sensitively and case-insensitively where needed. Project.find_with_namespace in turn has been modified to use Project.where_paths_in without nuking any scoping (instead it uses reorder(nil)). This means that any default scopes (e.g. those used for "pending_delete" stay intact). The method Project.where_paths_in was added so the various Markdown filters can use a single query to grab all the projects referenced in a set of documents, something Project.find_with_namespace didn't allow.
* | | | | Merge branch 'changelog-search-arrow-keys' into 'master' Robert Speicher2016-06-101-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog fix for search dropdown arrow keys fix [ci skip] See merge request !4580
| * | | | | Changelog fix for search dropdown arrow keys fixchangelog-search-arrow-keysPhil Hughes2016-06-101-1/+1
| | | | | |
* | | | | | Merge branch '18462-remove-unused-mergerequest-gitlab_merge_status-method' ↵Robert Speicher2016-06-101-8/+0
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into 'master' Remove unused MergeRequest#gitlab_merge_status method Closes #18462. See merge request !4593
| * | | | | Remove unused MergeRequest#gitlab_merge_status methodRémy Coutable2016-06-101-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | | | Merge branch 'labels-placement' into 'master' Dmitriy Zaporozhets2016-06-1011-105/+127
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move Labels and Milestones as sub tab to Issues/MR ## What does this MR do? UI/UX change. Moves project labels and milestone tabs under Issues and Merge request tabs. ## Why was this MR needed? To solve problem of having to many tabs in top navigation. Since Labels and Milestones depends on Issue/MR feature it belongs to it and can be removed from top nav. ## What are the relevant issue numbers? Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/18368 ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - not needed - [x] API support added - not needed - [x] Tests - [x] Added for this feature/bug - changed existing tests to match new behaviour - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) cc @jschatz1 @annabeldunstone @skyruler See merge request !4592
| * | | | | Add CHANGELOG item for labels/milestones navigation changeDmitriy Zaporozhets2016-06-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | | | Render issues link on issues subnav unless you visit merge request controllerDmitriy Zaporozhets2016-06-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | | | Render only issues/mr in subnav depends on contextDmitriy Zaporozhets2016-06-105-17/+21
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | | | Move Labels and Milestones as sub tab to Issues/MRDmitriy Zaporozhets2016-06-107-90/+107
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | | | Merge branch 'workhorse-helpers' into 'master' Robert Speicher2016-06-1014-34/+61
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add workhorse controller and API helpers Adds `send_git_blob` and `send_git_archive` controller and API helpers to reduce duplication and make Workhorse easier for a developer to work with. See merge request !4486
| * | | | | Satisfy Rubocopworkhorse-helpersDouwe Maan2016-06-101-2/+2
| | | | | |
| * | | | | Merge branch 'master' into workhorse-helpersDouwe Maan2016-06-10175-950/+2237
| |\ \ \ \ \ | | |/ / / /
| * | | | | Add send_git_diff helperDouwe Maan2016-06-08231-2052/+5316
| |\ \ \ \ \
| * | | | | | Move changelog itemDouwe Maan2016-06-061-1/+1
| | | | | | |
| * | | | | | Add changelog itemDouwe Maan2016-06-061-0/+1
| | | | | | |
| * | | | | | Add workhorse controller and API helpersDouwe Maan2016-06-0612-24/+45
| | | | | | |
* | | | | | | Merge branch 'ci-page-ui-update' into 'master' Jacob Schatz2016-06-1016-247/+305
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CI build page UI update Closes #2569 See merge request !3829
| * | | | | | Updated testsci-page-ui-updatePhil Hughes2016-06-101-1/+1
| | | | | | |
| * | | | | | Fixed merge conflict that caused tests to fail with buildPhil Hughes2016-06-101-1/+1
| | | | | | |