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

One row for all #5

wants to merge 13 commits into from

Conversation

pod2metra
Copy link
Owner

No description provided.

Imported Assessment Template alters the set of valid importable
columns, therefore it should be processed before any custom attributes.
Forward references (refer row2 in mapping column of row1) are
forbidden by the current spec, while backward references (refer row1
in mapping column of row2) are easier to support than to forbid in the
current state.
It's wrong to generate "created" then "modified" revisions for new
imported objects. This commit fixes all tests which imply duplicate
revisions.
The whole set of fields takes over 100 megabytes of memory for 1000
CADs and like 20 Custom Roles.
At a later point we'll need to reference it from inside row converter
New error format only needs to know the row ignored and the row
processed which shared the same unique value.

This commit removes the whole old mechanism of duplicate check and the
fields and methods that become unused.
Changes done:
- object manipulation logic moved to row converter
- methods in row converter reorganized
- only one commit per row now
- snapshots generated with an explicit call before commit (instead of
  calling all after_commit hooks)
Both handler and block/row converter contain logic to detect duplicates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants