Skip to content

[TASK] Remove duplicate data from activated configuration JSON files #1251

@jakewheeler

Description

@jakewheeler

🚧 What needs to be done

It was noted recently that an activated configuration contains a codes array and a code_system_sets array, which both contain information about codes required for refinement. These arrays contain the same code information, however, code_system_sets contains objects that have a little more info about a code (its name and the system it belongs to).

There is no reason to duplicate this information. It likely makes the most sense to ensure that codes does not make it into the active.json file that is created upon activation.

🤔 Why it needs to be done

TES version 6.0.0 introduced significantly more codes, causing activation files to balloon in size. This is a very basic first step we can take to alleviate this issue at least a bit.

🏗️ Acceptance Criteria

  • codes array is no longer written to the active.json file upon activation
  • Check if there is other data that we can avoid writing to active.json
    • Remove it as a part of this work if so
  • Refining works exactly as it did previously

⚙️ Technical Notes

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions