Age | Commit message (Collapse) | Author |
|
Remove duplicate definition of DOWNTIME
See merge request gitlab-org/gitlab-ce!28294
|
|
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
|
This silences the warning:
20190301081611_migrate_project_migrate_sidekiq_queue.rb:8:
warning: already initialized constant
MigrateProjectMigrateSidekiqQueue::DOWNTIME
|
|
Issues and merge requests imported from GitHub are having state_id
set to null. This fixes the GitHub project importer and schedule
migrations to fix state_id.
|
|
And remove Gitlab::Ci::Trace#deprecated_path as it relies on ci_id
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
|
This was incorrectly set by a bug in:
https://gitlab.com/gitlab-org/gitlab-ce/issues/54924
Also adds a `batch_size` option to `update_column_in_batches`
|
|
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
|
|
|
This will be further required for supporting multi-assignees MRs
|
|
|
|
`project_migrate_hashed_storage` is now
`hashed_storage:hashed_storage_project_migrate`
|
|
Token column are no longer used as token values are stored digested in
token_digest.
|
|
|
|
|
|
|
|
- Fixes multiple typos on AutoDevops script
- Add an alias to Clusters::Cluster#domain as base_domain, so it's more
descriptive
- Removes unnecessary memoization on qa specs
- Changes migration to a post migration to deal better with traffic on
big instances (like gitlab.com)
|
|
|
|
|
|
|
|
Migrate jobs from `storage_migrator` to
`hashed_storage:hashed_storage_migrator`.
|
|
Container repository cleanup API
Closes #55978
See merge request gitlab-org/gitlab-ce!24303
|
|
This includes a set of APIs to manipulate container registry.
This includes also an ability to delete tags based on requested
criteria, like keep-last-n, matching-name, older-than.
|
|
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
|
We still rely on the Dirty API for project rename (before/after) values,
but we don't access the dirty api from the service class anymore.
The previous value is now part of the initialization, which makes it
easier to test and the behavior is clearer.
The same was done with the `rename_repo` on the Storage classes, we now
provide before and after values as part of the method signature.
|
|
We've found some problems with the backgroung migration:
BackfillLegacyProjectRepositories
See https://gitlab.com/gitlab-org/gitlab-ce/issues/56061
The migration was disabled to run on production:
https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/5906
So to overcome it's not being run anywhere, just remove it.
Whenever all problems in BackfillLegacyProjectRepositories are fixed
we'll create a new migration (with a different timestamp) to have it
run.
|
|
|
|
Adds a background migration that will ensure all projects that
are on legacy storage have a row in `project_repositories`.
|
|
|
|
Extending from ActiveRecord::Migration is deprecated, but was still used
in a bunch of places.
|
|
Remove unnecessary includes of ShellAdapter
See merge request gitlab-org/gitlab-ce!23607
|
|
Populate MR metrics with events table information (migration)
Closes #41587
See merge request gitlab-org/gitlab-ce!23564
|
|
|
|
|
|
This adds a background migration that will ensure all projects that
are on hashed storage have a row in `project_repositories`.
Related issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/48527
|
|
Determined by running the script:
```
included = `git grep --name-only ShellAdapter`.chomp.split("\n")
used = `git grep --name-only gitlab_shell`.chomp.split("\n")
included - used
```
|
|
fix/gb/encrypt-runners-tokens
* commit '83f0798e7dc588f0e4cb6816daadeef7dbfc8b81': (101 commits)
|
|
As post deployment migration we don't need to make it a migration that
requires downtime
|
|
fix/gb/encrypt-runners-tokens
* commit '6852680584a1b22788f451457a6042eabf862a73': (57 commits)
|
|
[master] Resolve "Reflected XSS in OAuth Authorize window due to redirect_uri allowing arbitrary protocols"
See merge request gitlab/gitlabhq!2572
|
|
* master: (243 commits)
Conflicts:
db/schema.rb
lib/gitlab/import_export/import_export.yml
|
|
And run in intervals.
|
|
In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16027 it was
added to write `gitlab.fullpath` in the git config of all
repositories. But this only writes them on move or migrate to hashed
storage.
This adds a migration that writes the fullpath to all the
repositories.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/41776
|
|
|
|
|
|
DB schema generated by a migration may look different in
rails 4 and 5 (because rails 5 may use different default values).
For this reason it's important to explicitly set for which rails
version a migration was written for.
See https://stackoverflow.com/questions/35929869/activerecordmigration-deprecation-warning-asks-for-rails-version-but-im-no/35930912#35930912
|
|
|
|
|
|
Fix statement timeouts in RemoveRestrictedTodos migration
Closes #52649
See merge request gitlab-org/gitlab-ce!22795
|
|
|
|
Change life cycle of `deployments` records in order to make it a stateful object
See merge request gitlab-org/gitlab-ce!22380
|