Skip to content

9 - API (feat): Migrate to Litestar - #235

Draft
RobertRosca wants to merge 12 commits into
refactor/repository-patternfrom
feat/migrate-litestar
Draft

9 - API (feat): Migrate to Litestar#235
RobertRosca wants to merge 12 commits into
refactor/repository-patternfrom
feat/migrate-litestar

Conversation

@RobertRosca

Copy link
Copy Markdown
Member

Stack created with GitHub Stacks CLIGive Feedback 💬

@RobertRosca
RobertRosca force-pushed the feat/migrate-litestar branch from 3c2d88f to a858eeb Compare July 17, 2026 06:20
@RobertRosca
RobertRosca force-pushed the feat/migrate-litestar branch from a858eeb to e499c8b Compare July 17, 2026 06:21
@RobertRosca
RobertRosca force-pushed the feat/migrate-litestar branch 2 times, most recently from 5504c95 to 5502ad2 Compare July 17, 2026 09:09
@RobertRosca
RobertRosca force-pushed the feat/migrate-litestar branch from 5502ad2 to 537791a Compare July 17, 2026 09:11
@RobertRosca
RobertRosca force-pushed the feat/migrate-litestar branch 2 times, most recently from 76ad1cb to 0ba7886 Compare July 17, 2026 09:12
@RobertRosca
RobertRosca force-pushed the feat/migrate-litestar branch from 0ba7886 to e7d0d0d Compare July 17, 2026 10:46
@RobertRosca
RobertRosca force-pushed the feat/migrate-litestar branch 2 times, most recently from c2015a9 to 50094a0 Compare July 20, 2026 09:26
@RobertRosca
RobertRosca force-pushed the feat/migrate-litestar branch from 50094a0 to a6cd987 Compare July 20, 2026 09:28
@RobertRosca
RobertRosca force-pushed the feat/migrate-litestar branch from a6cd987 to 500321d Compare July 20, 2026 09:30

@CammilleCC CammilleCC 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.

Code movement looks okay in general. And it seems that migrating to Litestar is smooth so far.

await client.post(
for token_type_hint, token in tokens:
try:
await client.post( # type: ignore[attr-defined]

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 just realized: can we use client.revoke_token() here instead?

)
try:
yield
finally:

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 was curious about the client.aclose() was done for the OAuth client, but I realized that we don't have that for the MyMDC client as well. While it is not a problem in production, it seems that we recreate clients on the tests. Can you please haave a look?

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.

2 participants