Skip to content

Sheffield | 25-SDC-Nov | Hassan Osman | Sprint 1 | New Feature: Rebloom - New - #262

Open
HassanOHOsman wants to merge 19 commits into
CodeYourFuture:mainfrom
HassanOHOsman:feature/re-bloom
Open

Sheffield | 25-SDC-Nov | Hassan Osman | Sprint 1 | New Feature: Rebloom - New#262
HassanOHOsman wants to merge 19 commits into
CodeYourFuture:mainfrom
HassanOHOsman:feature/re-bloom

Conversation

@HassanOHOsman

@HassanOHOsman HassanOHOsman commented Aug 20, 2026

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Questions

I just could not display the reblooms on my logged in user's timelines. I've spent a few days on it but to no avail.

@HassanOHOsman HassanOHOsman added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Legacy-Code The name of the module. 📅 Sprint 1 Assigned during Sprint 1 of this module labels Aug 20, 2026
@HassanOHOsman HassanOHOsman changed the title Feature/re bloom Sheffield | 25-SDC-Nov | Hassan Osman | Sprint 1 | New Feature: Rebloom - New Aug 20, 2026

@illicitonion illicitonion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generally looks good, but a few thoughts, as well as not needing a reblooms table:

  • Right now when you show a rebloom it doesn't look like a rebloom - it looks like a new bloom by the reblooming user - how could you indicate that it's a rebloom (ideally showing what user it's a rebloom from)?
  • I think there's a caching issue that means when you rebloom something, your own profile timeline doesn't get invalidated, so if you do a rebloom then go to your own profile it doesn't show up until you refresh

Comment thread db/schema.sql Outdated
UNIQUE(hashtag, bloom_id)
);

CREATE TABLE reblooms (

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need a separate table for reblooms - you have all the information you need in the blooms table with original_bloom_id, but may need to do some joins to get the data out

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've solved this now.

@illicitonion illicitonion added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 21, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Purple Forest Kanban Aug 21, 2026
@HassanOHOsman HassanOHOsman reopened this Aug 21, 2026
@github-project-automation github-project-automation Bot moved this from Done to Backlog in Purple Forest Kanban Aug 21, 2026
@HassanOHOsman HassanOHOsman added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 21, 2026
@HassanOHOsman

Copy link
Copy Markdown
Author

Not the best... still needs some work. however, the caching issue is now resolved as far as I could tell from my end. Let me know if I still need to change or do anything. Thank you!

@illicitonion illicitonion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good, but a few questions and still a few references to the reblooms table

Comment thread backend/data/blooms.py
with db_cursor() as cur:
cur.execute(
"""
SELECT COALESCE(original_bloom_id, id)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this COALESCE? When would the original_bloom_id not be present as an id for some row?

Comment thread backend/data/blooms.py

cur.execute(
"""
INSERT INTO reblooms (

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought you deleted this table?

Comment thread backend/data/blooms.py
blooms.original_bloom_id,
(
SELECT COUNT(*)
FROM reblooms

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This table no longer exists?

Comment thread backend/data/blooms.py
blooms.original_bloom_id,
(
SELECT COUNT(*)
FROM reblooms

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Legacy-Code The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants