refactor: Inject isArchivedByLearner into initial API response#40
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #40 +/- ##
==========================================
+ Coverage 88.40% 92.17% +3.76%
==========================================
Files 14 15 +1
Lines 414 447 +33
Branches 16 16
==========================================
+ Hits 366 412 +46
+ Misses 40 26 -14
- Partials 8 9 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
456097f to
4276199
Compare
This both: * demonstrates filter pipeline steps in a practical way which relates to the sample archive functionality. * removes the need to call GET ..../course-archive-status/ in order to render the page. The GET API still exists, as it's called to update the state after a learner clicks Archive/Unarchive (could probably be factored away, but not important) This removes the old sample filter pipeline step, which changed the course about URL into an example.com URL. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
4276199 to
b6ab2a9
Compare
feanil
approved these changes
May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
refactor: Inject isArchivedByLearner into initial API response
This both:
The GET API still exists, as it's called to update the state after a learner clicks Archive/Unarchive (could probably be factored away, but not important)
This removes the old sample filter pipeline step, which changed the course about URL into an example.com URL.
Note: the
isArchivedkey was already taken by the existing "course archival" feature which is an author-controlled thing.Finally, this commit also updates the
uv.lockfile, which I missed in #35Testing
Notice:
AI
I wrote the filter body. Claude wrote the frontend code, with this prompt:
Claude also wrote the tests and docstrings with my guidance, I reviewed everything.