Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7c3330ef
Commit
7c3330ef
authored
Mar 18, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
5dff9d0a
123841f6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
10 deletions
+27
-10
app/assets/stylesheets/pages/import.scss
app/assets/stylesheets/pages/import.scss
+12
-0
changelogs/unreleased/58889-spinners-are-active-prematurely-in-bitbucket-cloud-import.yml
...ners-are-active-prematurely-in-bitbucket-cloud-import.yml
+5
-0
lib/gitlab/hashed_storage/migrator.rb
lib/gitlab/hashed_storage/migrator.rb
+1
-1
spec/lib/gitlab/hashed_storage/migrator_spec.rb
spec/lib/gitlab/hashed_storage/migrator_spec.rb
+5
-5
spec/tasks/gitlab/storage_rake_spec.rb
spec/tasks/gitlab/storage_rake_spec.rb
+4
-4
No files found.
app/assets/stylesheets/pages/import.scss
View file @
7c3330ef
...
@@ -49,3 +49,15 @@
...
@@ -49,3 +49,15 @@
.import-projects-loading-icon
{
.import-projects-loading-icon
{
margin-top
:
$gl-padding-32
;
margin-top
:
$gl-padding-32
;
}
}
.btn-import
{
.loading-icon
{
display
:
none
;
}
&
.is-loading
{
.loading-icon
{
display
:
inline-block
;
}
}
}
changelogs/unreleased/58889-spinners-are-active-prematurely-in-bitbucket-cloud-import.yml
0 → 100644
View file @
7c3330ef
---
title
:
Fix continuous bitbucket import loading spinner
merge_request
:
26175
author
:
type
:
fixed
lib/gitlab/hashed_storage/migrator.rb
View file @
7c3330ef
...
@@ -97,7 +97,7 @@ module Gitlab
...
@@ -97,7 +97,7 @@ module Gitlab
def
any_non_empty_queue?
(
*
workers
)
def
any_non_empty_queue?
(
*
workers
)
workers
.
any?
do
|
worker
|
workers
.
any?
do
|
worker
|
worker
.
jobs
.
any
?
!
Sidekiq
::
Queue
.
new
(
worker
.
queue
).
size
.
zero
?
end
end
end
end
...
...
spec/lib/gitlab/hashed_storage/migrator_spec.rb
View file @
7c3330ef
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Gitlab
::
HashedStorage
::
Migrator
,
:sidekiq
do
describe
Gitlab
::
HashedStorage
::
Migrator
,
:sidekiq
,
:redis
do
describe
'#bulk_schedule_migration'
do
describe
'#bulk_schedule_migration'
do
it
'schedules job to HashedStorage::MigratorWorker'
do
it
'schedules job to HashedStorage::MigratorWorker'
do
Sidekiq
::
Testing
.
fake!
do
Sidekiq
::
Testing
.
fake!
do
...
@@ -189,7 +189,7 @@ describe Gitlab::HashedStorage::Migrator, :sidekiq do
...
@@ -189,7 +189,7 @@ describe Gitlab::HashedStorage::Migrator, :sidekiq do
set
(
:project
)
{
create
(
:project
,
:empty_repo
)
}
set
(
:project
)
{
create
(
:project
,
:empty_repo
)
}
it
'returns true when there are MigratorWorker jobs scheduled'
do
it
'returns true when there are MigratorWorker jobs scheduled'
do
Sidekiq
::
Testing
.
fak
e!
do
Sidekiq
::
Testing
.
disabl
e!
do
::
HashedStorage
::
MigratorWorker
.
perform_async
(
1
,
5
)
::
HashedStorage
::
MigratorWorker
.
perform_async
(
1
,
5
)
expect
(
subject
.
migration_pending?
).
to
be_truthy
expect
(
subject
.
migration_pending?
).
to
be_truthy
...
@@ -197,7 +197,7 @@ describe Gitlab::HashedStorage::Migrator, :sidekiq do
...
@@ -197,7 +197,7 @@ describe Gitlab::HashedStorage::Migrator, :sidekiq do
end
end
it
'returns true when there are ProjectMigrateWorker jobs scheduled'
do
it
'returns true when there are ProjectMigrateWorker jobs scheduled'
do
Sidekiq
::
Testing
.
fak
e!
do
Sidekiq
::
Testing
.
disabl
e!
do
::
HashedStorage
::
ProjectMigrateWorker
.
perform_async
(
1
)
::
HashedStorage
::
ProjectMigrateWorker
.
perform_async
(
1
)
expect
(
subject
.
migration_pending?
).
to
be_truthy
expect
(
subject
.
migration_pending?
).
to
be_truthy
...
@@ -213,7 +213,7 @@ describe Gitlab::HashedStorage::Migrator, :sidekiq do
...
@@ -213,7 +213,7 @@ describe Gitlab::HashedStorage::Migrator, :sidekiq do
set
(
:project
)
{
create
(
:project
,
:empty_repo
)
}
set
(
:project
)
{
create
(
:project
,
:empty_repo
)
}
it
'returns true when there are RollbackerWorker jobs scheduled'
do
it
'returns true when there are RollbackerWorker jobs scheduled'
do
Sidekiq
::
Testing
.
fak
e!
do
Sidekiq
::
Testing
.
disabl
e!
do
::
HashedStorage
::
RollbackerWorker
.
perform_async
(
1
,
5
)
::
HashedStorage
::
RollbackerWorker
.
perform_async
(
1
,
5
)
expect
(
subject
.
rollback_pending?
).
to
be_truthy
expect
(
subject
.
rollback_pending?
).
to
be_truthy
...
@@ -221,7 +221,7 @@ describe Gitlab::HashedStorage::Migrator, :sidekiq do
...
@@ -221,7 +221,7 @@ describe Gitlab::HashedStorage::Migrator, :sidekiq do
end
end
it
'returns true when there are jobs scheduled'
do
it
'returns true when there are jobs scheduled'
do
Sidekiq
::
Testing
.
fak
e!
do
Sidekiq
::
Testing
.
disabl
e!
do
::
HashedStorage
::
ProjectRollbackWorker
.
perform_async
(
1
)
::
HashedStorage
::
ProjectRollbackWorker
.
perform_async
(
1
)
expect
(
subject
.
rollback_pending?
).
to
be_truthy
expect
(
subject
.
rollback_pending?
).
to
be_truthy
...
...
spec/tasks/gitlab/storage_rake_spec.rb
View file @
7c3330ef
...
@@ -89,9 +89,9 @@ describe 'rake gitlab:storage:*', :sidekiq do
...
@@ -89,9 +89,9 @@ describe 'rake gitlab:storage:*', :sidekiq do
describe
'gitlab:storage:migrate_to_hashed'
do
describe
'gitlab:storage:migrate_to_hashed'
do
let
(
:task
)
{
'gitlab:storage:migrate_to_hashed'
}
let
(
:task
)
{
'gitlab:storage:migrate_to_hashed'
}
context
'with rollback already scheduled'
do
context
'with rollback already scheduled'
,
:redis
do
it
'does nothing'
do
it
'does nothing'
do
Sidekiq
::
Testing
.
fak
e!
do
Sidekiq
::
Testing
.
disabl
e!
do
::
HashedStorage
::
RollbackerWorker
.
perform_async
(
1
,
5
)
::
HashedStorage
::
RollbackerWorker
.
perform_async
(
1
,
5
)
expect
(
Project
).
not_to
receive
(
:with_unmigrated_storage
)
expect
(
Project
).
not_to
receive
(
:with_unmigrated_storage
)
...
@@ -146,9 +146,9 @@ describe 'rake gitlab:storage:*', :sidekiq do
...
@@ -146,9 +146,9 @@ describe 'rake gitlab:storage:*', :sidekiq do
it_behaves_like
'make sure database is writable'
it_behaves_like
'make sure database is writable'
context
'with migration already scheduled'
do
context
'with migration already scheduled'
,
:redis
do
it
'does nothing'
do
it
'does nothing'
do
Sidekiq
::
Testing
.
fak
e!
do
Sidekiq
::
Testing
.
disabl
e!
do
::
HashedStorage
::
MigratorWorker
.
perform_async
(
1
,
5
)
::
HashedStorage
::
MigratorWorker
.
perform_async
(
1
,
5
)
expect
(
Project
).
not_to
receive
(
:with_unmigrated_storage
)
expect
(
Project
).
not_to
receive
(
:with_unmigrated_storage
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment