Skip to content
Snippets Groups Projects

Add Bulk Imports API to view user initiated imports

Merged George Koltsov requested to merge georgekoltsov/bulk-imports-migration-history into master
2 files
+ 54
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -40,6 +40,14 @@
started_entity_1, finished_entity_1, failed_entity_1
)
end
context 'when specified import is not associated with user' do
subject { described_class.new(user: user, bulk_import: not_user_import) }
it 'does not return entities' do
expect(subject.execute).to be_empty
end
end
end
context 'when status is specified' do
@@ -51,6 +59,18 @@
failed_entity_1, failed_entity_2
)
end
context 'when invalid status is specified' do
subject { described_class.new(user: user, status: 'invalid') }
it 'does not filter entities by status' do
expect(subject.execute)
.to contain_exactly(
started_entity_1, finished_entity_1, failed_entity_1,
started_entity_2, finished_entity_2, failed_entity_2
)
end
end
end
context 'when bulk import and status are specified' do
Loading