freeCodeCamp / freeCodeCamp/mobile

Remove blockType

Open
#1,705 1 comment 0 reactions 0 assignees View on GitHub
status: blocked
Dominant language
Dart
Stars
581
Forks
197
Avg merge
9d 11h
Merged PRs (30d)
1

Description

## Description

We renamed `blockType` to `blockLabel` in the main repo but applied a patch to v1 and v2 scripts for backward compatibility: https://github.com/freeCodeCamp/freeCodeCamp/pull/62548/changes/7b606a7c14ed239ad16a98e955ad71b22ee71728.

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

https://github.com/freeCodeCamp/mobile/blob/1a5b51936f6ba9bad5d986f394b4d5b35e61bd37/mobile-app/lib/models/learn/curriculum_model.dart#L236-L239

The next steps are:
- Update v2 script to return `blockLabel`
- Once that change is live, remove `blockLabel` from the `curriculum_model`'s parsing logic

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.