Skip to content

refactor(framework): Make details and sub_status columns in Run table not nullable#7063

Merged
danieljanes merged 36 commits intomainfrom
update-run-table
May 6, 2026
Merged

refactor(framework): Make details and sub_status columns in Run table not nullable#7063
danieljanes merged 36 commits intomainfrom
update-run-table

Conversation

@jafermarq
Copy link
Copy Markdown
Member

No description provided.

@jafermarq jafermarq requested a review from danieljanes as a code owner April 30, 2026 08:50
@github-actions github-actions Bot added the Maintainer Used to determine what PRs (mainly) come from Flower maintainers. label Apr 30, 2026
Base automatically changed from extend-corestate-methods to main April 30, 2026 15:16
Copilot AI review requested due to automatic review settings April 30, 2026 15:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the LinkState run table schema so that sub_status and details are no longer nullable, aligning the schema definition, ER diagram documentation, and database migrations.

Changes:

  • Make run.sub_status and run.details NOT NULL with an empty-string server default in SQLAlchemy schema metadata.
  • Update the schema ERD (README.md) to reflect details/sub_status as non-nullable.
  • Add an Alembic migration that backfills existing NULLs and enforces NOT NULL + server defaults.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
framework/py/flwr/supercore/state/schema/linkstate_tables.py Marks run.sub_status/run.details as nullable=False with empty-string defaults
framework/py/flwr/supercore/state/schema/README.md Updates ER diagram to show details/sub_status as non-nullable
framework/py/flwr/supercore/state/alembic/versions/rev_2026_04_30_make_run_substatus_and_details_not_nullable.py Adds migration to backfill NULLs and enforce NOT NULL + defaults

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@chongshenng chongshenng left a comment

Choose a reason for hiding this comment

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

LGTM!

@danieljanes danieljanes enabled auto-merge (squash) May 6, 2026 15:23
@danieljanes danieljanes merged commit 9ff756c into main May 6, 2026
69 checks passed
@danieljanes danieljanes deleted the update-run-table branch May 6, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintainer Used to determine what PRs (mainly) come from Flower maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants