Skip to content

Remove blockType #1705

@huyenltnguyen

Description

@huyenltnguyen

Description

We renamed blockType to blockLabel in the main repo but applied a patch to v1 and v2 scripts for backward compatibility: freeCodeCamp/freeCodeCamp@7b606a7.

Mobile has also been updated to handle both blockType and blockLabel:

// Support both blockLabel and blockType for backward compatibility
label: (data['blockLabel'] ?? data['blockType']) != null
? blockLabelFromString(data['blockLabel'] ?? data['blockType'])
: BlockLabel.legacy,

The next steps are:

  • Update v2 script to return blockLabel
  • Once that change is live, remove blockLabel from the curriculum_model's parsing logic

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions