- 25 Mar, 2019 5 commits
-
-
Luke Duncalfe authored
-
Luke Duncalfe authored
When ce MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/26144 was merged in, it caused failures in ee specs https://gitlab.com/gitlab-org/gitlab-ee/issues/10567. The fix for these specs is to select an "author" of the MR by first filtering merge commits from the commit collection. This mirrors the behaviour of MergeRequest#authors. Previously, this test passed as MergeRequest#commits would always return commits that lacked parent_ids, as they are initialized from data kept in MergeRequestDiffCommit which does not have parent_ids data. This meant that all MR commits were considered not to be merge commits, even though in gitaly some did have parent ids. However, now, CommitCollection#enrich! is called CommitCollection#without_merge_commits is called (as it is when MergeRequest#authors is called), so commit data is fetched from gitaly and now have parent_ids data. This cause the tests to fail, because the "author" being chosen from the merge request commits was in fact the user who had committed a merge commit.
-
Luke Duncalfe authored
A project is needed in order to fetch data from gitaly. Projects can be absent from commits in certain rare situations (like when viewing a MR of a deleted fork). In these cases, assume that the enriched data is not needed. See this comment: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/26144#note_152191106 "It's led to a dilemma about where to "fix" this in code. I'm going to fix it by allowing CommitCollection#enrich! to just return unenriched commits when a project is missing, essentially "silently failing". I hope this is the right decision. It's going with the assumption that calls in these situations in the future are not needing the full data. The alternative would be to allow CommitCollection#enrich! to still error, but handle it in the methods that call #enrich!, however that might lead to brittleness in future when working with project-less MRs."
-
Luke Duncalfe authored
Previously the code for excluding merge commits from the commit collection (CommitCollection#without_merge_commits) was not working when the commits had come from a merge request. Now that this has been fixed, these tests fails. They should always have been written to exclude merge commits when comparing.
-
Luke Duncalfe authored
Allow incomplete commit records to load their full data from gitaly. Commits can be based on a Hash of data retrieved from PostgreSQL, and this data can be intentionally incomplete in order to save space. A new method #gitaly? has been added to Gitlab::Git::Commit, which returns true if the underlying data source of the Commit is a Gitaly::GitCommit. CommitCollection now has a method #enrich which replaces non-gitaly commits in place with commits from gitaly. CommitCollection#without_merge_commits has been updated to call this method, as in order to determine a merge commit we need to have parent data. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/58805
-
- 21 Mar, 2019 7 commits
-
-
Rémy Coutable authored
Update dashboards to additionally use new environment selector Closes #10135 See merge request gitlab-org/gitlab-ee!9759
-
James Fargher authored
Deploy boards now will check for app.gitlab.com/env and app.gitlab.com/app
-
Rémy Coutable authored
Make UserExtractor#initialize the same as CE See merge request gitlab-org/gitlab-ee!10323
-
Ramya Authappan authored
Un-quarantine geo specs Closes gitlab-org/quality/nightly#86 See merge request gitlab-org/gitlab-ee!10334
-
Sanad Liaquat authored
-
Stan Hu authored
Regenerate locale/gitlab.pot Closes #10565 See merge request gitlab-org/gitlab-ee!10332
-
Luke Duncalfe authored
-
- 20 Mar, 2019 28 commits
-
-
GitLab Release Tools Bot authored
-
GitLab Bot authored
-
Clement Ho authored
Create project-specific Kubernetes resources just-in-time See merge request gitlab-org/gitlab-ce!25586
-
GitLab Bot authored
-
Stan Hu authored
Add option to whitelist _html fields from attributes on CacheMarkdownField See merge request gitlab-org/gitlab-ce!26374
-
GitLab Bot authored
-
Stan Hu authored
Bump httparty to version 1.16.4 Closes #44342 See merge request gitlab-org/gitlab-ce!25893
-
Stan Hu authored
Bump httparty to version 1.16.4 See merge request gitlab-org/gitlab-ee!10292
-
GitLab Bot authored
-
Grzegorz Bizon authored
Resolve "Use vendored files for CI config" Closes #57598 See merge request gitlab-org/gitlab-ce!25871
-
GitLab Bot authored
-
Alex Hanselka authored
* dev/master: Update CHANGELOG.md for 11.8.3 Update CHANGELOG.md for 11.7.7 Only return `commands_changes` used in frontend
-
Alex Hanselka authored
Fix project serialization in quick actions response Closes #2826 See merge request gitlab/gitlabhq!3001
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
-
GitLab Bot authored
-
Dan Davison authored
Fix Auto DevOps QA Smoke test hidden banner Closes gitlab-org/quality/nightly#87 See merge request gitlab-org/gitlab-ce!26254
-
Dylan Griffith authored
The banner is no longer being shown for empty repos since https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/26024 . We could have made this assertion after pushing the repo but this is not the thing that really needs to be in an integration or smoke test as it is already tested in spec/.../projects/show/user_interacts_with_auto_devops_banner_spec
-
GitLab Bot authored
-
Stan Hu authored
Merge branch '59208-fix-error-500-on-every-page-when-active-broadcast-message-present-after-upgrading-to-11-9-0' into 'master' Gracefully handles excluded fields from attributes during serialization on JsonCache Closes #59208 See merge request gitlab-org/gitlab-ce!26368
-
GitLab Bot authored
-
Filipa Lacerda authored
Fixed scss_lint failure Closes #10541 See merge request gitlab-org/gitlab-ee!10319
-
Phil Hughes authored
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/10541
-
Stan Hu authored
Avoid loading pipeline status in project search See merge request gitlab-org/gitlab-ce!26342
-
GitLab Bot authored
-
Achilleas Pipinellis authored
Update backup_restore.md instructions for Google Cloud Storage bucket... See merge request gitlab-org/gitlab-ce!25628
-