Removes redundant data storage in mongodb, and moves/renames some fields for consistency #588 (closed).
Upload.nameis renamed to
Upload.upload_name, the field is removed from
Calc.metadatato avoid redundancy, and
upload_nameis used consistently in the api
with_embargofields are removed from
Calc.metadatato avoid redundant storage in mongodb. The data is only stored on the upload level.
- The field
Upload.publishedis removed from mongodb, instead we check if
Upload.publish_timeis set. A property called
publishedis created on Upload for convenience, so it is still possible to do things like
upload.published(it's just not stored as a separate field in the DB).
Calc.parser_namefor consistency (affects mongodb and api)
Calc.metadata(the field is either fetched from the parser (if the parser has a domain set) or from the archive files, if set by the parser)
Calc.metadata, instead we fetch this value by looking at
Calc.metadata, and instead created a
license-field on Upload.
- Replacing the field
Calc.entry_create_time, for consistency