comic / grand-challenge.org

A platform for end-to-end development of machine learning solutions in biomedical imaging
https://grand-challenge.org
Apache License 2.0
175 stars 50 forks source link

Clear old question types *_LINE_TEXT #2907

Closed chrisvanrun closed 8 months ago

chrisvanrun commented 1 year ago

With the introduction of:

Some old question types can/should be removed once CIRRUS v2023.06.x is the previous release.

A two-staged approach should happen:

1. Remove from options and (manually migrate)

2. Remove model members

chrisvanrun commented 1 year ago

Quick note, reading the pitch I am reminded that the above instructions should also include something for:

Edit: Added to above instructions.

chrisvanrun commented 1 year ago

Because of support issues v2023.06.x hasn't been made the previous release this cycle.

jmsmkn commented 8 months ago

@chrisvanrun can this be done now?

chrisvanrun commented 8 months ago

Yes. V2023.11 is now the oldest release currently in usage. If I read my old-self instructions correctly that means this can have a go.

Once the resulting changeset is live we can update CIRRUS to remove the same references in the next release.

jmsmkn commented 8 months ago

Make QuestionWidgetKindChoices.NUMBER_INPUT" the default for NUMBER` Make QuestionWidgetKindChoices.CHECKBOX_SELECT_MULTIPLE the default for MULTIPLE_CHOICE

These currently allow an empty choice ("---") for the widget which is always the default. Do we want to force a choice of widget here?

chrisvanrun commented 8 months ago

CIRRUS has defaults for the widgets, so it is not presently required:

https://github.com/DIAGNijmegen/rse-cirrus-core/blob/e057461fde48470254adff7d6f396c9d369ebb6f/src/cirrus/DIAG/CIRRUSCore/WebDevelopment/src/components/QuestionWidgets/index.js#L14-L23

Albeit it'll be cleaner to 'always have a widget selected'.

Edit: cross tagging: https://github.com/comic/grand-challenge.org/pull/3181

jmsmkn commented 8 months ago

Okay, I see that as a separate issue from removing the _TEXT options, so I will not enforce widget selection for those types.

jmsmkn commented 8 months ago

Question.objects.filter(answer_type=Question.AnswerType.MULTIPLE_CHOICE_DROPDOWN).update(answer_type=Question.AnswerType.MULTIPLE_CHOICE, widget=QuestionWidgetKindChoices.SELECT_MULTIPLE)

Is multiple choice dropdown also deprecated?

chrisvanrun commented 8 months ago

Question.objects.filter(answer_type=Question.AnswerType.MULTIPLE_CHOICE_DROPDOWN).update(answer_type=Question.AnswerType.MULTIPLE_CHOICE, widget=QuestionWidgetKindChoices.SELECT_MULTIPLE)

Is multiple choice dropdown also deprecated?

Quickly double-checked in CIRRUS. I had added that as clean-up but neglected to add that to the specifically marked as deprecated.

Yes, it is deprecated. The MultiSelectWidget and MultiCheckBoxWidget widgets were introduced to replace that odd answer type.