[Onboarding + Enrollments] Define CourseCheck response mapping
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 78/100
Research direction
Read the generated SDK entry point at packages/sdk_dart/lib/src/generated/catalog.dart and the app configuration in lib/config.dart, then implement the wrapper in lib/onboarding/course_lookup.dart. Add MockClient coverage in test/course_lookup_test.dart for the listed responses and query parameters; done means those tests pass without network access and errors map to unavailable.
Written by the indexing model from the issue text.
Description
What to build
Translate the catalog’s course-check response into four results the setup screen can use. Distinguish an offered course, a known but unoffered course, an unknown code and unavailable information.
Files
lib/onboarding/course_lookup.dart(new file)- Starting example: lib/config.dart
Code to add or extend:enum CourseCheck { offered, notOffered, unknown, unavailable }; CourseCheck mapCourseCheck(bool exists,bool? offered).
Steps
- Return unknown when exists is false. When exists is true, return offered for offered=true, notOffered for offered=false, and unavailable for offered=null.
- Put this in mapCourseCheck(bool exists, bool? offered) and add the four values to
CourseCheck. This issue only translates the response; the following issue makes the catalog request. - Check all four combinations. In particular, false/null must be unknown rather than unavailable.
Example
false/null → unknown;true/false → notOffered;true/true → offered.
Check it works
In test/onboarding/course_lookup_13_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/onboarding/course_lookup_13_test.dart and flutter analyze.
References
Assign yourself before starting, or comment to claim the issue. Project setup.
- Dominant language
- PLpgSQL
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DevDogsUGA/DogPack
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
DevDogsUGA/DogPack#106 ·
All issues in DevDogsUGA/DogPack
Similar issues
-
layer.setProps: opacity above 1 is clamped silently (layerStyle uses 0..100)Possibly taken @switch87 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
storytold/photocraft#5242 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
pinterest/pymemcache#662 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
[Enhancement]: Add Cheaper Inference to known custom endpoint providersPossibly taken A pull request linked to this issue is open or already merged. Open✨ enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
LibreChat-AI/LibreChat#17075 ·
Maintainers usually reply within 1 day