James Postadan | Oct2025-2 | Module Legacy Code | Sprint 1 | Rebloom - #7
Open
japostadan wants to merge 1 commit into
Open
James Postadan | Oct2025-2 | Module Legacy Code | Sprint 1 | Rebloom#7japostadan wants to merge 1 commit into
japostadan wants to merge 1 commit into
Conversation
Schema: add rebloom_of FK to blooms table. Backend: add_rebloom() data fn, POST /rebloom/<id> endpoint; Bloom dataclass gains rebloom_of, original_sender, rebloom_count fields; all queries updated. Frontend: Rebloom button on each bloom, attribution div shown when rebloomed, rebloom count shown when > 0. Tests: 6 backend integration tests + 3 Playwright E2E tests (serial mode to prevent parallel-worker race on shared follow state). Fixed home spec to use filter().first() and correct followed-user assertion (Swiz not JustSomeGuy).
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.
🎯 Summary
rebloom_of BIGINT REFERENCES blooms(id)to thebloomstableadd_rebloom()data fn;POST /rebloom/<bloom_id>endpoint;Bloomdataclass gainsrebloom_of,original_sender,rebloom_countoriginal_senderis set; rebloom count shown when > 0🧾 Changelist
rebloom_of BIGINT REFERENCES blooms(id)column added toblooms. NULL for original blooms. All bloom queries updated with a shared column/join fragment to retrieveoriginal_senderandrebloom_count.add_rebloom(rebloomer, bloom_id)inserts a new bloom row referencing the original.POST /rebloom/<bloom_id>requires JWT, checks the target bloom is not itself a rebloom (returns 400 if so), callsadd_rebloom, returns the new bloom.Bloomdataclass extended withrebloom_of,original_sender,rebloom_count.apiService.rebloom()and refreshes the feed. Attribution line "Rebloomed from <user>" shown whenoriginal_senderis present. Rebloom count displayed when > 0.❓ Questions
ON DELETE CASCADE). Should cascading deletes be added to the schema?🙌 Notes for Reviewers
python3 -m unittest endpoints_test -vfrombackend/npx playwright test(serial mode) fromfront-end/node_modules/.bin/http-server . -p 5500 --silent & npx playwright test— 25/25 passdocker compose down -v && docker compose up -d --build && docker compose exec backend python populate.py