Schema editor integration
Control flow
- we listen for
#field-schema[-url]/[-json]changes - on changes we render
tableschemaUI.EditorSchemawith url/File/text as descriptor andonSavecallback - user do her schema edits
- on
tableschemaUI.EditorSchemasave click the component callsonSave(descriptor) - we set
descriptorto#field-schemavalue
Related
- https://github.com/frictionlessdata/tableschema-ui/issues/2
- https://github.com/okfn/docker-ckan-unhcr/pull/6
- https://github.com/frictionlessdata/ckanext-validation/pull/25
Coverage decreased (-0.2%) to 85.449% when pulling e70cfd441e6fc663f363dc41d711bd27ec94b65e on validation-schema into ed1c69236e8174287f1586960152fc0e7faec4cf on master.
Coverage decreased (-0.2%) to 85.449% when pulling e70cfd441e6fc663f363dc41d711bd27ec94b65e on validation-schema into ed1c69236e8174287f1586960152fc0e7faec4cf on master.
Coverage decreased (-0.2%) to 85.892% when pulling 78710aefb8909a78668ee4b0fb7fa27750cc4a5c on validation-schema into 9ce634a4dd47ed00c99b0bf3898410999320bdb4 on master.
@amercader To run ckan with schema editor:
- checkout
docker-ckan-unhcr/pull/6 docker-compose -f docker-compose.val.yml up
Known issues
- [x] Click on
Xto close the modal doesn't work (does ckan has bootstrap scripts loaded?) - [x] Button
Editposition is weird when we are changing schema via file/link/json -> #32 - [x] Scripts/styles should be moved to proper places -> #30
@amercader Can you please review?
I've made the user control flow changes we've discussed (an issue for the schema editing - #34). A few things which are not resolved (please help if you can):
- [x] allow schema editing/ensuring resource editing works OK (#34)
- [ ] moving schema buttons/inputs straight below the file button/inputs?
- [ ] fixing tests for [email protected]/2.5 (not sure how the failures in the builds related to this changes)
@amercader Are you able to remember what's this?)) I can't)
Have we integrated it already?