The randomize-portal.py tool currently creates example portals that are valid under the new 1.1.0 schema and make use of the new, more complex filter queries with filterGroups. There are still some improvements that could be made:
[ ] Generate awards
[ ] Add images to associatedParty onlineUrls
[ ] Support section types other than freeform (markdown)
For randomly created filters:
[ ] Make datasource filter
[ ] Make user filter, remove submitter, writePermission, readPermission, changePermission from the list of fields for text filters (str_fields)
[ ] Make geohash filter
[ ] Remove fields that expect an object id from str_fields (e.g. resourceMap, identifier), create filters for these fields
[ ] Add support for isPartOf filter (remove isPartOf from str_fields)
[ ] Support other fields that require a value from a limited list of options (e.g. formatId, serviceCoupling), remove them from str_fields
The
randomize-portal.py
tool currently creates example portals that are valid under the new1.1.0
schema and make use of the new, more complex filter queries withfilterGroups
. There are still some improvements that could be made:For randomly created filters:
submitter
,writePermission
,readPermission
,changePermission
from the list of fields for text filters (str_fields
)str_fields
(e.g. resourceMap, identifier), create filters for these fieldsisPartOf
fromstr_fields
)formatId
,serviceCoupling
), remove them fromstr_fields