Skip to content

Spike: convert BNF codelists to dm+d as new-style - #3155

Draft
Jongmassey wants to merge 3 commits into
mainfrom
Jongmassey/convert-bnf-dmd-new-style
Draft

Spike: convert BNF codelists to dm+d as new-style#3155
Jongmassey wants to merge 3 commits into
mainfrom
Jongmassey/convert-bnf-dmd-new-style

Conversation

@Jongmassey

Copy link
Copy Markdown
Contributor

re: #3031

Advantages:

  • converted codelists can be edited in the builder
    Disadvantages:
  • converted codelists lose the source BNF code column
  • existing converted codelists will need to be converted to new-style to become editable
    • we can do this en masse with an existing script
    • we can do this manually on request
    • or users can delete their old converted codelists and convert a fresh one

We are going to need to call this from actions.py so move out of forms into codelist.

This is probably  a better fit here anyway - it feels more appropriate that a coding system is responsible for deciding whether some csv data is a valid codelist in itself.
We need to call this from actions directly so move out of form into coding system
This changes the behaviour of the `convert_bnf_codelist_version_to_dmd`
action to make a new-style dm+d codelist rather than an old-style.

This enables the resulting codelist to be edited in the builder,
but loses the additional column of the BNF code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant