Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One row for all #5

Open
wants to merge 13 commits into
base: one_row_for_all_2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions src/ggrc/converters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class ImportConverter(BaseConverter):
"delete",
"task_type",
"audit",
"assessment_template",
]

def __init__(self, dry_run=True, csv_data=None):
Expand Down Expand Up @@ -81,15 +82,10 @@ def import_csv_data(self):
revision_ids = []

for converter in self.initialize_block_converters():
converter.row_converters_from_csv()
for attr_name in self.priority_columns:
converter.handle_row_data(attr_name)
converter.handle_row_data()
converter.import_objects()
converter.import_secondary_objects()

if not converter.ignore:
converter.import_csv_data()
revision_ids.extend(converter.revision_ids)
self.response_data.append(converter.get_info())
revision_ids.extend(converter.revision_ids)

self._start_compute_attributes_job(revision_ids)
self.drop_cache()
Expand Down
Loading