summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Allow suggesting single line changes in diffsOswaldo Ferreira2018-12-1323-5/+1050
|
* Merge branch '51994-disable-merging-labels-in-dropdowns' into 'master'Fatih Acet2018-12-134-172/+22
|\ | | | | | | | | | | | | Resolve "Fix labels dropdown with multiple same names" Closes #51994 See merge request gitlab-org/gitlab-ce!23265
| * Fix failed tests and add extra testHeinrich Lee Yu2018-12-062-3/+22
| |
| * Disable duplicate label merging in search bar dropdownHeinrich Lee Yu2018-12-062-169/+0
| |
* | Merge branch 'diff-empty-state-fixes' into 'master'Filipa Lacerda2018-12-132-25/+107
|\ \ | | | | | | | | | | | | | | | | | | Fix diff changes empty state Closes #48635 See merge request gitlab-org/gitlab-ce!23767
| * | Fix diff changes empty statePhil Hughes2018-12-132-25/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | The empty state now only gets shown when no files exist in the branch. If the user is reviewing 2 versions with no files, we don't show the state. Refactors the diff app spec to use Vue test utils. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/48635
* | | Add List-Id to notification emailsOlivier Crête2018-12-132-1/+58
| | |
* | | Merge branch 'zj-backup-restore-object-pools' into 'master'Douwe Maan2018-12-132-0/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Restore Object Pools when restoring an object pool Closes gitaly#1355 See merge request gitlab-org/gitlab-ce!23682
| * | | Restore Object Pools when restoring an object poolZeger-Jan van de Weg2018-12-132-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pool repositories are persisted in the database, and when the DB is restored, the data need to be restored on disk. This is done by resetting the state machine and rescheduling the object pool creation. This is not an exact replica of the state like at the time of the creation of the backup. However, the data is consistent again. Dumping isn't required as internally GitLab uses git bundles which bundle all refs and include all objects in the bundle that they require, reduplicating as more repositories get backed up. This does require more data to be stored. Fixes https://gitlab.com/gitlab-org/gitaly/issues/1355
* | | | Re-define default only except policyKamil Trzciński2018-12-138-203/+207
| |/ / |/| |
* | | Added testPhil Hughes2018-12-121-0/+81
| | |
* | | Fixed notes not being applied to diff linesPhil Hughes2018-12-121-0/+4
| | | | | | | | | | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55248, https://gitlab.com/gitlab-org/gitlab-ce/issues/55245
* | | Merge branch 'database-deprecation-warnings' into 'master'Robert Speicher2018-12-124-11/+11
|\ \ \ | | | | | | | | | | | | | | | | Resolve various database deprecation warnings See merge request gitlab-org/gitlab-ce!23772
| * | | Fix ActiveRecord::Migration deprecationsYorick Peterse2018-12-124-11/+11
| | | | | | | | | | | | | | | | | | | | Extending from ActiveRecord::Migration is deprecated, but was still used in a bunch of places.
* | | | Merge branch 'refactor-create-or-update-import-data' into 'master'Robert Speicher2018-12-121-0/+42
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Refactor Project#create_or_update_import_data See merge request gitlab-org/gitlab-ce!23701
| * | | | Refactor Project#create_or_update_import_dataYorick Peterse2018-12-111-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In https://gitlab.com/gitlab-org/release/framework/issues/28 we found that this method was changed a lot over the years: 43 times if our calculations were correct. Looking at the method, it had quite a few branches going on: def create_or_update_import_data(data: nil, credentials: nil) return if data.nil? && credentials.nil? project_import_data = import_data || build_import_data if data project_import_data.data ||= {} project_import_data.data = project_import_data.data.merge(data) end if credentials project_import_data.credentials ||= {} project_import_data.credentials = project_import_data.credentials.merge(credentials) end project_import_data end If we turn the || and ||= operators into regular if statements, we can see a bit more clearly that this method has quite a lot of branches in it: def create_or_update_import_data(data: nil, credentials: nil) if data.nil? && credentials.nil? return else project_import_data = if import_data import_data else build_import_data end if data if project_import_data.data # nothing else project_import_data.data = {} end project_import_data.data = project_import_data.data.merge(data) end if credentials if project_import_data.credentials # nothing else project_import_data.credentials = {} end project_import_data.credentials = project_import_data.credentials.merge(credentials) end project_import_data end end The number of if statements and branches here makes it easy to make mistakes. To resolve this, we refactor this code in such a way that we can get rid of all but the first `if data.nil? && credentials.nil?` statement. We can do this by simply sending `to_h` to `nil` in the right places, which removes the need for statements such as `if data`. Since this data gets written to a database, in ProjectImportData we do make sure to not write empty Hash values. This requires an `unless` (which is really a `if !`), but the resulting code is still very easy to read.
* | | | | Do not save user preferences on read-only modeFelipe Artur2018-12-123-0/+36
| |/ / / |/| | |
* | | | Merge branch 'feature/gb/ci-pipeline-bridge' into 'master'Kamil Trzciński2018-12-122-0/+42
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Add basic implementation of CI/CD bridge job See merge request gitlab-org/gitlab-ce!23730
| * | | | Add basic implementation of CI/CD bridge jobGrzegorz Bizon2018-12-122-0/+42
| | | | |
* | | | | Fix creation query for pools repositoryZeger-Jan van de Weg2018-12-121-0/+23
| | | | |
* | | | | Merge branch ↵Nick Thomas2018-12-123-4/+81
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '54650-send-an-email-to-project-owners-when-a-mirror-update-fails' into 'master' Send a notification email on mirror update errors Closes #54650 See merge request gitlab-org/gitlab-ce!23595
| * | | | | Send a notification email on mirror update errorsAlejandro Rodríguez2018-12-113-4/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The email is sent to project maintainers containing the last mirror update error. This will allow maintainers to set alarms and react accordingly.
* | | | | | Merge branch 'issue_55133' into 'master'Sean McGivern2018-12-121-1/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issuables sort direction button parameters Closes #55133 See merge request gitlab-org/gitlab-ce!23744
| * | | | | | Fix issuables sort direction button parametersFelipe Artur2018-12-111-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix labels parameter being deleted from filter when clicking sort direction button on issues/merge requests search bar.
* | | | | | | Merge branch 'fixed-note-awards-js' into 'master'Filipa Lacerda2018-12-122-0/+35
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed emoji awards not being added to notes Closes #55141 See merge request gitlab-org/gitlab-ce!23720
| * | | | | | | Fixed emoji awards not being added to notesPhil Hughes2018-12-112-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55141
* | | | | | | | Merge branch 'winh-markdown-preview-lists' into 'master'Phil Hughes2018-12-121-1/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unnecessary div from MarkdownField to apply list styles correctly Closes #55190 See merge request gitlab-org/gitlab-ce!23733
| * | | | | | | | Remove unnecessary div from MarkdownField to apply list styles correctlyWinnie Hellmann2018-12-121-1/+1
| | | | | | | | |
* | | | | | | | | Merge branch ↵Stan Hu2018-12-112-9/+10
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '55183-frozenerror-can-t-modify-frozen-string-in-app-mailers-notify-rb' into 'master' Fix a potential frozen string error in app/mailers/notify.rb Closes #55183 See merge request gitlab-org/gitlab-ce!23728
| * | | | | | | | | Fix a potential frozen string error in app/mailers/notify.rbRémy Coutable2018-12-112-9/+10
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | | | | | | Merge branch 'winh-timeline-entry-jest' into 'master'Fatih Acet2018-12-112-1/+0
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrate timeline_entry_item_spec.js to Jest See merge request gitlab-org/gitlab-ce!23686
| * | | | | | | | | Delete dummy specWinnie Hellmann2018-12-111-1/+0
| | | | | | | | | |
| * | | | | | | | | Move timeline_entry_item_spec.js to JestWinnie Hellmann2018-12-111-0/+0
| |/ / / / / / / /
* | | | | | | | | Update GitLab Workhorse to v8.0.0Nick Thomas2018-12-111-2/+0
| |_|/ / / / / / |/| | | | | | |
* | | | | | | | Merge branch '7788_parse_license_management_reports_in_be-ce' into 'master'Kamil Trzciński2018-12-112-3/+29
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | Generalise test compare service See merge request gitlab-org/gitlab-ce!22833
| * | | | | | | Generalise test compare serviceGilbert Roulot2018-12-112-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It adds a base class for CompareTestReportsService containing common code with CompareLicenseManagementReportsService which is present in GitLab Enterprise Edition.
* | | | | | | | Merge branch 'winh-emoji-menu-jest' into 'master'Kushal Pandya2018-12-114-4/+22
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrate emoji_menu_spec.js to Jest See merge request gitlab-org/gitlab-ce!23688
| * | | | | | | | Set timeout for Jest to 300msWinnie Hellmann2018-12-111-1/+1
| | | | | | | | |
| * | | | | | | | Fail long running testsWinnie Hellmann2018-12-111-0/+16
| | | | | | | | |
| * | | | | | | | Move jest.config.js to root directoryWinnie Hellmann2018-12-111-1/+1
| | | | | | | | |
| * | | | | | | | Move emoji_menu_spec.js to JestWinnie Hellmann2018-12-112-3/+5
| | | | | | | | |
* | | | | | | | | Merge branch 'fix-mr-pipelines-run-on-regex' into 'master'Grzegorz Bizon2018-12-111-0/+58
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix MR pipelines run on only: regexp Closes #55026 See merge request gitlab-org/gitlab-ce!23657
| * | | | | | | | | Fix MR pipelines run on only: refexShinya Maeda2018-12-111-0/+58
| | |/ / / / / / / | |/| | | | | | |
* | | | | | | | | Merge branch 'sh-fix-github-import-without-oauth2-config' into 'master'Rémy Coutable2018-12-111-0/+9
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow GitHub imports via token even if OAuth2 provider not configured Closes #38524 See merge request gitlab-org/gitlab-ce!23703
| * | | | | | | | Allow GitHub imports via token even if OAuth2 provider not configuredStan Hu2018-12-101-0/+9
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the GitHub importer would only work if the site configured an OAuth2 provider were configured. Users attempting to import via a GitHub personal access token would see an Error 500 due to a failed redirection. We fix this by only doing the redirection if the provider has been configured and allowing users to see the new import page. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/38524
* | | | | | | | Make commit IDs in merge request discussion header monospaceWinnie Hellmann2018-12-111-2/+44
| | | | | | | |
* | | | | | | | Merge branch 'fix-n-plus-1-queries-projects' into 'master'Douwe Maan2018-12-112-0/+44
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix some N+1 queries related to Admin Dashboard, User Dashboards and Activity Stream Closes #55106 See merge request gitlab-org/gitlab-ce!23034
| * | | | | | | Reduce N+1 from Activity Dashboard and BanzaiGabriel Mazetto2018-12-102-0/+44
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a combination of few strategies implemented here: 1. Few relations were eager loaded 2. Changed few polymorphic routes to specific ones so we don't have to use `#becomes(Namespace)` which doesn't preserve association cache
* | | | | | | Merge branch 'sh-revert-mr-22911' into 'master'Grzegorz Bizon2018-12-111-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "Merge branch '28682-can-merge-branch-before-build-is-started' into 'master'" See merge request gitlab-org/gitlab-ce!23715
| * | | | | | | Revert "Merge branch '28682-can-merge-branch-before-build-is-started' into ↵Stan Hu2018-12-101-1/+1
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master'" This reverts commit 793be43b35bc8cd2a9effe38280417ee198647cb, reversing changes made to 8d0b4872ba3ff787c4067618f48b60bd24466c74. For projects not using any CI, enabling merge only when pipeline succeeds caused merge requests to be in unmergeable state, which caused significant confusion. See https://gitlab.com/gitlab-org/gitlab-ce/issues/55144 for more details.