| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Enum in Rails 5 does not map nil values - IOW nil value remains nil,
even if there is a key with nil value in the enum definition.
This commit overrides the underlying Enum methods so nil value is
still mapped. This solution is far from being ideal: it uses dynamic
definition of methods which introduces more magic/confusion
into the codebase.
It would be better to get rid of the nil value in enums.
|
|\
| |
| |
| |
| | |
Take two for MR metrics population background migration
See merge request gitlab-org/gitlab-ce!19097
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Removal of API v3 from the codebase
Closes #36819
See merge request gitlab-org/gitlab-ce!18970
|
| |/ |
|
|/
|
|
|
| |
This reduces conflicts with EE, where it is public because it is
called in ee/lib/gitlab/ci/external/file/local.rb.
|
|\
| |
| |
| |
| |
| |
| | |
Fix boolean casting for nil value
Closes #46925
See merge request gitlab-org/gitlab-ce!19202
|
| |
| |
| |
| |
| |
| | |
`nil` value is not included in
`ActiveModel::Type::Boolean::FALSE_VALUES` which caused that in Rails 5
the boolean_accessor converted `nil` to `true` instead of `false`.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Resolve "Squash and merge in GitLab Core (CE)"
Closes #34591
See merge request gitlab-org/gitlab-ce!18956
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Fix project destruction failing due to idle in transaction timeouts
Closes #44610
See merge request gitlab-org/gitlab-ce!18609
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When deleting associated records, Rails loads all associations into memory
(https://github.com/rails/rails/issues/22510) before destroying them. This
can cause a surge in memory and cause destruction of objects to fail
due to idle in transaction database timeouts. This fix is inspired from
https://github.com/thisismydesign to destroy `has_many` relationships
in batches.
Closes #44610
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Throttle updates to Project#last_repository_updated_at.
Closes #35364
See merge request gitlab-org/gitlab-ce!19183
|
| | | |
| | | |
| | | |
| | | | |
Closes #35364.
|
| |_|/
|/| |
| | |
| | |
| | |
| | | |
when retrieved from cache
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | | |
'master'
Remove double-checked internal id generation.
Closes #45389
See merge request gitlab-org/gitlab-ce!19181
|
| | |
| | |
| | |
| | |
| | |
| | | |
This was needed for a transition phase only. For details see #45389.
Closes #45389.
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | | |
Persist and use truncated note diffs instead requesting Gitaly in a N+1 manner on MR page
Closes #45190
See merge request gitlab-org/gitlab-ce!18991
|
| | |
| | |
| | |
| | |
| | | |
We request Gitaly in a N+1 manner to build discussion diffs. Once the diffs are from different revisions, it's hard to make a single request to the service in order to build the whole response.
With this change we solve this problem and simplify a lot fetching this piece of info.
|
|\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | | |
Resolve "gitlab 10.8 assumes that installation is a git working copy."
Closes #46600
See merge request gitlab-org/gitlab-ce!19125
|
| |/
| |
| |
| |
| |
| | |
without a .git directory
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Fix sidebar issue count
Closes #38418
See merge request gitlab-org/gitlab-ce!19022
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
MR unmergeable notification
See merge request gitlab-org/gitlab-ce!18042
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Old behavior of creating TODO when
“Merge When Pipeline Succeeds” service fails, is generalized to:
Create a TODO whenever MR became unmergeable
(and similar to notification, MR author and merge_user are both applicable)
|
| | | |
| | | |
| | | |
| | | | |
Display MR unmergeable reasons
|
| | | |
| | | |
| | | | |
For notifying via todo or email.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
First, transitions between can_be_merged & cannot_be_merged are removed,
as they are currently blocked in `check_if_can_be_merged`.
`can_be_merge` always returns to `unchecked` first,
before it can transition to `cannot_be_merged` (and vice versa).
We want to avoid repeated notification triggered by repeated transition
between `cannot_be_merged` & `unchecked`.
So we added `cannot_be_merged_recheck` state, similar to `unchecked`,
but as a mean to remember it’s from cannot_be_merged.
See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18042/#note_65945407
Since `unchecked` and `cannot_be_merged_recheck` both mean
“we are in the middle of checking if it is mergeable”,
quite often we need to see if merge_status is in either one of them,
so `check_state?` is added to achieve this.
|
|\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | | |
Check if note's noteable is not nil when checking resolvability
Closes #46573
See merge request gitlab-org/gitlab-ce!19081
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This can occur when a note is added to a commit and then this commit
is deleted.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Appearance models
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Fix Xcode project detection by looking for dirs instead of files
See merge request gitlab-org/gitlab-ce!19035
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
'22846-notifications-broken-during-email-address-change-before-email-confirmed' into 'master'
Resolve "notifications broken during email address change before email confirmed"
Closes #22846
See merge request gitlab-org/gitlab-ce!18474
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Migration to add primary key constraint for composite keys
Closes #43706 and #32258
See merge request gitlab-org/gitlab-ce!18980
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
Closes #32258.
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
'master'
Do not allow to use `CI_PIPELINE_ID` in environment name
Closes #46443
See merge request gitlab-org/gitlab-ce!19032
|
| | | | | |
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Resolve "Runner#contacted_at is not always a Time type"
Closes #46082
See merge request gitlab-org/gitlab-ce!18810
|
| | | | |
| | | | |
| | | | | |
This reverts commit 2ebafdfb2f026580153fd2cf50f4b6b7ab3a0344
|
| | | | | |
|
| | | | | |
|
| | | | | |
|