-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to allow files in separate rows
- Use required headers for whole sheet for preflight (combines requirements for object types) - Find parent work based on deduplication_field - Raise an error for now if parent work is not found. Otherwise the stack trace is misleading.
- Loading branch information
Showing
6 changed files
with
55 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...y/spec/fixtures/csv_import/csv_files_with_problems/mix_of_object_types_missing_header.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
object type,title,creator,keyword,rights statement,visibility,files,deduplication_key | ||
c,Collection of vegetables,,,,public,,def/123 | ||
Collection,Collection of fruits,,,,public,,def/234 | ||
w,Work on tomatoes,"Tomato, Tommy",fruits|~|tomatoes,http://rightsstatements.org/vocab/InC/1.0/,public,birds.jpg,abc/123 | ||
wOrk,Work on cabbages,"Cabbage, Carl",vegetables|~|cabbages,http://rightsstatements.org/vocab/InC/1.0/,public,dog.jpg,abs/234 | ||
coLLEction,Collection of legumes,,,,public,,def/345 | ||
,Work without object type,"Cabbage, Carl",vegetables|~|cabbages,http://rightsstatements.org/vocab/InC/1.0/,public,dog.jpg,abc/345 | ||
f,,,,,,dog.jpg,,abc/123 |
8 changes: 8 additions & 0 deletions
8
...xtures/csv_import/csv_files_with_problems/mix_of_object_types_missing_parent_for_file.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
object type,title,creator,keyword,rights statement,visibility,files,deduplication_key,parent | ||
c,Collection of vegetables,,,,public,,def/123, | ||
Collection,Collection of fruits,,,,public,,def/234, | ||
w,Work on tomatoes,"Tomato, Tommy",fruits|~|tomatoes,http://rightsstatements.org/vocab/InC/1.0/,public,birds.jpg,abc/123, | ||
wOrk,Work on cabbages,"Cabbage, Carl",vegetables|~|cabbages,http://rightsstatements.org/vocab/InC/1.0/,public,dog.jpg,abs/234, | ||
coLLEction,Collection of legumes,,,,public,,def/345, | ||
,Work without object type,"Cabbage, Carl",vegetables|~|cabbages,http://rightsstatements.org/vocab/InC/1.0/,public,dog.jpg,abc/345, | ||
f,,,,,,dog.jpg,, |
16 changes: 8 additions & 8 deletions
16
spec/dummy/spec/fixtures/csv_import/good/mix_of_object_types.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
object type,title,creator,keyword,rights statement,visibility,files,deduplication_key | ||
c,Collection of vegetables,,,,public,,def/123 | ||
Collection,Collection of fruits,,,,public,,def/234 | ||
w,Work on tomatoes,"Tomato, Tommy",fruits|~|tomatoes,http://rightsstatements.org/vocab/InC/1.0/,public,birds.jpg,abc/123 | ||
wOrk,Work on cabbages,"Cabbage, Carl",vegetables|~|cabbages,http://rightsstatements.org/vocab/InC/1.0/,public,dog.jpg,abs/234 | ||
coLLEction,Collection of legumes,,,,public,,def/345 | ||
,Work without object type,"Cabbage, Carl",vegetables|~|cabbages,http://rightsstatements.org/vocab/InC/1.0/,public,dog.jpg,abc/345 | ||
f,,,,,,dog.jpg,,abc/123 | ||
object type,title,creator,keyword,rights statement,visibility,files,identifier,deduplication_key,parent | ||
c,Collection of vegetables,,,,public,,def/123,def/123, | ||
Collection,Collection of fruits,,,,public,,def/234,def/234, | ||
w,Work on tomatoes,"Tomato, Tommy",fruits|~|tomatoes,http://rightsstatements.org/vocab/InC/1.0/,public,birds.jpg,abc/123,abc/123, | ||
wOrk,Work on cabbages,"Cabbage, Carl",vegetables|~|cabbages,http://rightsstatements.org/vocab/InC/1.0/,public,dog.jpg,abs/234,abs/234, | ||
coLLEction,Collection of legumes,,,,public,,def/345,def/345, | ||
,Work without object type,"Cabbage, Carl",vegetables|~|cabbages,http://rightsstatements.org/vocab/InC/1.0/,public,dog.jpg,abc/345,abc/345, | ||
f,,,,,,dog.jpg,,,abc/123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters