internetarchive / internetarchive/openlibrary
Editing/adding a field causes unchanged /type/text fields to convert to /type/string
Open
Affects: Data
Lead: @mekarpeles
metadata
Module: Infogami
Needs: Investigation
Priority: 3
Type: Bug
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 2k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 138
Description
Editing/adding a field on a work or edition causes un-changed `/type/text` fields (e.g. description, notes, first_sentence) to convert to `/type/string`
Actively adding or editing a `/type/text` field causes it to be saved correctly as `/type/text`
Author bios may be affected in the same way as they are also `/type/text`
This means we have inconsistent description formats in the data:
```
grep -c '"description": "' ol_dump_editions_2017-09-30.txt
21,112
grep -c '"description": {' ol_dump_editions_2017-09-30.txt
742,868
```
Contributor guide
Assessment
This issue has not been assessed yet.