[MODCXMOCK-6] Add more test data Created: 01/Dec/17  Updated: 08/Dec/17  Resolved: 08/Dec/17

Status: Closed
Project: mod-codex-mock
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: P3
Reporter: Heikki Levanto Assignee: Heikki Levanto
Resolution: Done Votes: 0
Labels: core, sprint28
Remaining Estimate: Not Specified
Time Spent: 7 hours, 45 minutes
Original estimate: Not Specified

Issue links:
Relates
relates to MODCXMOCK-7 deploy 'mod-codex-mock' to folio-testing Closed
Sprint:

 Description   

Add test data that actually conforms to the schema



 Comments   
Comment by Heikki Levanto [ 01/Dec/17 ]

Some records at https://github.com/folio-org/mod-inventory-storage/tree/master/sample-data/instances, but they will not conform...

Comment by Heikki Levanto [ 01/Dec/17 ]

The data is at https://github.com/folio-org/mod-codex-mock/blob/master/src/main/resources/data/mock.data

Comment by Wayne Schneider [ 02/Dec/17 ]

I have written an ugly perl script to parse MARC files and spit out a file in the format of mock.data above. Questions:

  1. What are imagined values for the "type" key?
  2. What are imagined values for the contributor "type" key?
  3. What are imagined values for the "source" key?
Comment by Heikki Levanto [ 05/Dec/17 ]

I have no idea what to put in those foreign keys. Any ideas, Mike?

Comment by Mike Taylor [ 05/Dec/17 ]

Wayne Schneider For now, can we please use "kb" and "local" as the values of source?

No idea about type and contributor.type, but in the short term let's just invent a vocabulary for the latter: "author", "editor", "reviewer", "illustrator".

Comment by Heikki Levanto [ 05/Dec/17 ]

For the 'source', the mock has code that when it runs in a mode that only returns some records, it will add the mock number into the source field, on those records that do not have one already. I exepect Adam may need that kind of thing for working on the mux. So I suggest adding a few test records without the source field - good test case to see that the UI will not crash if it sees such data...

Comment by Mike Taylor [ 05/Dec/17 ]

Well, hang on – I am using source at the moment to tell me whether the record is from the KB or from the local inventory. That's going to be a crucial distinction for many aspects of the UI, so I do need a way to get that information. It doesn't have to be the source field – maybe that was always intended for some other purpose – but I do need a field that contains this information.

Comment by Heikki Levanto [ 08/Dec/17 ]

Got nearly 200 marcXml records in the system. With varying source fields, "local", "kb", and "mock".

Generated at Thu Feb 08 22:26:39 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.