Skip to content

Example of staged commits following the polyclean pattern (Feature/pokemon card)#10

Draft
va1ha11a wants to merge 17 commits into
mainfrom
feature/pokemon_card
Draft

Example of staged commits following the polyclean pattern (Feature/pokemon card)#10
va1ha11a wants to merge 17 commits into
mainfrom
feature/pokemon_card

Conversation

@va1ha11a
Copy link
Copy Markdown
Contributor

@va1ha11a va1ha11a commented Mar 10, 2026

Example branch showing how changes can be staged in a progressive way.
In this PR each commit is an atomic change that should allow for an easy review while keeping the code base stable.
These commits could easily be PRs each and if they were larger bricks that would be preferred.
Additionally, if _libs are used they can be separated and committed/PR'd prior to the brick(s) that consume them.

@va1ha11a va1ha11a marked this pull request as draft March 10, 2026 23:11
@va1ha11a va1ha11a changed the title Feature/pokemon card Example of staged commits following the polyclean pattern (Feature/pokemon card) Mar 10, 2026
@va1ha11a va1ha11a force-pushed the feature/pokemon_card branch from 9e9c348 to 5d3aeda Compare March 11, 2026 21:20
va1ha11a added 17 commits March 11, 2026 23:40
- Add azure-functions dependency to workspace and project
- Refactor function_app.py to import from main.py (no duplication)
- Use func.AsgiMiddleware to wrap FastAPI app for Azure Functions
- Add empty collection and multiple cards list tests
- Add invalid condition, negative HP, empty name validation tests
- Add missing required field, HP max, set_number, notes length tests
- Add remove non-existent card test

Total tests increased from 42 to 54.
- Change db_path to Path | str type in SQLitePokemonAdapter
- Rename Azure Functions app variable to avoid conflict
Centralize the card condition values in the contract component to
eliminate duplication across flow, entity, and base. The enum is
now the single source of truth for valid conditions.
@va1ha11a va1ha11a force-pushed the feature/pokemon_card branch from 5d3aeda to 86dc864 Compare March 11, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant