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
Description
We renamed
blockTypetoblockLabelin 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
blockTypeandblockLabel:mobile/mobile-app/lib/models/learn/curriculum_model.dart
Lines 236 to 239 in 1a5b519
The next steps are:
blockLabelblockLabelfrom thecurriculum_model's parsing logic