opted-eu / meteor-api

Meteor API Server
https://meteor.opted.eu/
GNU General Public License v3.0
1 stars 0 forks source link

Mistakes in Data Model (required vs NA values) #63

Closed mrwunderbar666 closed 2 months ago

mrwunderbar666 commented 3 months ago

@iwellaway

I've found several fields that, if not set when initially adding a new record, they get set to 'NA'. However, this fails to validate when editing if 'NA' is not one of their options (this usually happens for 'enum' fields with a hardcoded set of values. These are the fields that I have noticed this behvaiour occurring on:

Tool.platforms ScientificPublication.paper_kind NewsSource.topical_focus

👉 platforms should be required, set default value to all three platforms 👉 paper_kind should be required 👉 topical_focus should not be required and have a NA value

iwellaway commented 2 months ago

Check as working with Tool.platforms and NewsSource.topical_focus