DMPRoadmap / roadmap

DCC/UC3 collaboration for a data management planning tool
MIT License
102 stars 109 forks source link

Expand annotation capability for Guidance #223

Closed vyruss closed 7 years ago

vyruss commented 7 years ago

I believe that right now annotations only cover suggested answers etc. and not "pure" guidance - so it makes sense to update front-end to cover other Annotation types as coded in the data schema.

xsrust commented 7 years ago

I dont think we migrated the suggested_answers to annotations because we were waiting on knowing the format that would be used by substance editor. Currently suggested/example answers are stored in this table: create_table "suggested_answers", force: :cascade do |t| t.integer "question_id" t.integer "org_id" t.text "text" t.boolean "is_example" t.datetime "created_at" t.datetime "updated_at" end

There is also a guidance field which is stored on the question.guidance field and displayed for editing as below. What changes would you suggest be made?

image

vyruss commented 7 years ago

I thought we'd gotten rid of the question.guidance column. Can we move this into rows in the annotations table (type guidance) and suggested_answers similarly (as type example answer)?

xsrust commented 7 years ago

Addressed by PR: Annotations

sjDCC commented 7 years ago

Not entirely sure how to test this one, but I don't think it's working as planned.

Guidance by question / question annotations aren't displaying as noted in #341

Suggested or example answers seem to have mismapped with guidance, see #372 and maybe #381

xsrust commented 7 years ago

I'm not sure that @vyruss has updated the server yet, but #372 should be fixed now

dsisu commented 7 years ago

Please note: the funder guidance from funder templates has disappeared.

xsrust commented 7 years ago

funder guidance not displaying fixed in https://github.com/DigitalCurationCentre/roadmap/commit/81351396a5ddda753d481ab8cad5d4372b3e7ff8

sjDCC commented 7 years ago

Closing out this ticket as the outstanding issues are recorded elsewhere. For reference these are:

The issue @dsisu encountered that funder guidance disappeared is fixed