Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2018-12-14Merge branch 'deprecated-delete-all-params' into 'master'Stan Hu
Fix deprecation: Passing conditions to delete_all is deprecated See merge request gitlab-org/gitlab-ce!23817
2018-12-14Merge branch 'bw-fix-missing-board-milestone' into 'master'Robert Speicher
Fix Issue boards don't show milestone in issue details See merge request gitlab-org/gitlab-ce!23813
2018-12-14Merge remote-tracking branch 'dev/master'Alex Hanselka
* dev/master: Update CHANGELOG.md for 11.3.13 Validate LFS hrefs before downloading them
2018-12-14Merge branch 'security-2754-fix-lfs-import' into 'master'Alex Hanselka
[MASTER]: Validate LFS hrefs before downloading them Closes #2754 See merge request gitlab/gitlabhq!2696
2018-12-13Fix deprecation: Passing conditions to delete_all is deprecatedJasper Maes
2018-12-13Allow suggesting single line changes in diffsOswaldo Ferreira
2018-12-13Use proper API::Entities::MilestoneBrett Walker
2018-12-13Merge branch '51994-disable-merging-labels-in-dropdowns' into 'master'Fatih Acet
Resolve "Fix labels dropdown with multiple same names" Closes #51994 See merge request gitlab-org/gitlab-ce!23265
2018-12-13Merge branch 'diff-empty-state-fixes' into 'master'Filipa Lacerda
Fix diff changes empty state Closes #48635 See merge request gitlab-org/gitlab-ce!23767
2018-12-13Add List-Id to notification emailsOlivier Crête
2018-12-13Merge branch 'zj-backup-restore-object-pools' into 'master'Douwe Maan
Restore Object Pools when restoring an object pool Closes gitaly#1355 See merge request gitlab-org/gitlab-ce!23682
2018-12-13Fix diff changes empty statePhil Hughes
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
2018-12-13Re-define default only except policyKamil Trzciński
2018-12-13Restore Object Pools when restoring an object poolZeger-Jan van de Weg
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
2018-12-12Added testPhil Hughes
2018-12-12Fixed notes not being applied to diff linesPhil Hughes
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55248, https://gitlab.com/gitlab-org/gitlab-ce/issues/55245
2018-12-12Merge branch 'database-deprecation-warnings' into 'master'Robert Speicher
Resolve various database deprecation warnings See merge request gitlab-org/gitlab-ce!23772
2018-12-12Merge branch 'refactor-create-or-update-import-data' into 'master'Robert Speicher
Refactor Project#create_or_update_import_data See merge request gitlab-org/gitlab-ce!23701
2018-12-12Do not save user preferences on read-only modeFelipe Artur
2018-12-12Fix ActiveRecord::Migration deprecationsYorick Peterse
Extending from ActiveRecord::Migration is deprecated, but was still used in a bunch of places.
2018-12-12Merge branch 'feature/gb/ci-pipeline-bridge' into 'master'Kamil Trzciński
Add basic implementation of CI/CD bridge job See merge request gitlab-org/gitlab-ce!23730
2018-12-12Fix creation query for pools repositoryZeger-Jan van de Weg
2018-12-12Merge branch ↵Nick Thomas
'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
2018-12-12Merge branch 'issue_55133' into 'master'Sean McGivern
Fix issuables sort direction button parameters Closes #55133 See merge request gitlab-org/gitlab-ce!23744
2018-12-12Merge branch 'fixed-note-awards-js' into 'master'Filipa Lacerda
Fixed emoji awards not being added to notes Closes #55141 See merge request gitlab-org/gitlab-ce!23720
2018-12-12Add basic implementation of CI/CD bridge jobGrzegorz Bizon
2018-12-12Merge branch 'winh-markdown-preview-lists' into 'master'Phil Hughes
Remove unnecessary div from MarkdownField to apply list styles correctly Closes #55190 See merge request gitlab-org/gitlab-ce!23733
2018-12-12Remove unnecessary div from MarkdownField to apply list styles correctlyWinnie Hellmann
2018-12-12Send a notification email on mirror update errorsAlejandro Rodríguez
The email is sent to project maintainers containing the last mirror update error. This will allow maintainers to set alarms and react accordingly.
2018-12-11Merge branch ↵Stan Hu
'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
2018-12-11Merge branch 'winh-timeline-entry-jest' into 'master'Fatih Acet
Migrate timeline_entry_item_spec.js to Jest See merge request gitlab-org/gitlab-ce!23686
2018-12-11Validate LFS hrefs before downloading themNick Thomas
2018-12-11Fix issuables sort direction button parametersFelipe Artur
Fix labels parameter being deleted from filter when clicking sort direction button on issues/merge requests search bar.
2018-12-11Update GitLab Workhorse to v8.0.0Nick Thomas
2018-12-11Merge branch '7788_parse_license_management_reports_in_be-ce' into 'master'Kamil Trzciński
Generalise test compare service See merge request gitlab-org/gitlab-ce!22833
2018-12-11Fix a potential frozen string error in app/mailers/notify.rbRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-12-11Delete dummy specWinnie Hellmann
2018-12-11Move timeline_entry_item_spec.js to JestWinnie Hellmann
2018-12-11Refactor Project#create_or_update_import_dataYorick Peterse
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.
2018-12-11Merge branch 'winh-emoji-menu-jest' into 'master'Kushal Pandya
Migrate emoji_menu_spec.js to Jest See merge request gitlab-org/gitlab-ce!23688
2018-12-11Merge branch 'fix-mr-pipelines-run-on-regex' into 'master'Grzegorz Bizon
Fix MR pipelines run on only: regexp Closes #55026 See merge request gitlab-org/gitlab-ce!23657
2018-12-11Set timeout for Jest to 300msWinnie Hellmann
2018-12-11Fail long running testsWinnie Hellmann
2018-12-11Move jest.config.js to root directoryWinnie Hellmann
2018-12-11Move emoji_menu_spec.js to JestWinnie Hellmann
2018-12-11Merge branch 'sh-fix-github-import-without-oauth2-config' into 'master'Rémy Coutable
Allow GitHub imports via token even if OAuth2 provider not configured Closes #38524 See merge request gitlab-org/gitlab-ce!23703
2018-12-11Fix MR pipelines run on only: refexShinya Maeda
2018-12-11Generalise test compare serviceGilbert Roulot
It adds a base class for CompareTestReportsService containing common code with CompareLicenseManagementReportsService which is present in GitLab Enterprise Edition.
2018-12-11Make commit IDs in merge request discussion header monospaceWinnie Hellmann
2018-12-11Merge branch 'fix-n-plus-1-queries-projects' into 'master'Douwe Maan
Fix some N+1 queries related to Admin Dashboard, User Dashboards and Activity Stream Closes #55106 See merge request gitlab-org/gitlab-ce!23034