Big Refactor
davidread opened this issue · comments
Summary:
- No longer be a python lib (python just used in bin for s
- Remove grouping (do it in clients)
Directory layout at the end of this process:
licenses/{id}.json # json licenses/{id}.json.js # jsonp bin/ # scripts index.html # home page README.md datapackage.json # data package info
No longer be a Python lib
- Remove LicenseList
- (?) Remove service.py (issue is this requires client changes e.g. in CKAN)
- WONTFIX
Put in convenience methods for osi compliant and okd compliant on License object - Deprecate groups (they should move to respective systems using them e.g. CKAN) and only have osi::compliant, okd compliant. Logic: Clients should keep their own list of ids and load from the package or from the API at runtime.
Data
- Convert from one big licenses.db into .json files named after the license.
- Put in a domain fields of domain_data, domain_content, domain_software being booleans where true indicates this license is applicable to that field.
- Remove date_created (meaningless) on license dicts
- Remove tags as unused.
- is_generic field for "licenses" which are really generic categories rather than licenses.
- WONTFIX
rename okd_compliant to od_compliant
Deploy
- Build a couple of consolidated files ...
- all.json
- osi.json - all Open Source definition compliant licenses
- okd.json - all open definition compliant licenses
- Build jsonp files with callback named licenses_callback and with extension .json.js