I wanted to announce Arythmatic Notes
SSumit Kumar Tiwari

Notes for everyone
Introduction
What is Arythmatic Notes. it depends on what you use for.
Summary
New upsert-style reaction endpoints
POST/DELETE /api/v1/articles/<id>/reactions/andPOST/DELETE /api/v1/answers/<id>/reactions/, mirroringPostReactionView. Returns the parent serializer withmy_reactionpopulated so the heart-button can render correct state without a follow-up fetch.New
GET/POST /api/v1/articles/<id>/comments/for top-level article comments (uses the existingadd_commentservice which already broadcastsfeed.new_comment).ArticleListSerializer,ArticleDetailSerializer,AnswerListSerializer,AnswerDetailSerializergain amy_reactionSerializerMethodField backed by the same Reaction lookup pattern PostSerializer uses.Adds
Answerto the engagement helper dispatch maps (_get_content_object,CommentListViewfk_map) for consistency.Extends
soft_delete_commentto walk to whichever parent (Post / Article / Question) the comment hangs off and decrement that counter, so deleting an article comment no longer leavesArticle.comment_countdrifting.
Test plan
pytest engagement/ content/Manual: react / unreact / flip on an article — counts and
my_reactionround-tripManual: post + delete a comment on an article —
comment_countincrements and decrements correctlyManual: react / unreact on an answer — answer card updates without page refresh
🤖 Generated with Claude Code
Comments
Loading comments…
Sign in to leave a comment.