Skip to content

Migrate Yearly Reading Goals to FastAPI#11816

Merged
cdrini merged 9 commits intomasterfrom
fastapi/yearly-reading-goals
Feb 11, 2026
Merged

Migrate Yearly Reading Goals to FastAPI#11816
cdrini merged 9 commits intomasterfrom
fastapi/yearly-reading-goals

Conversation

@RayBB
Copy link
Copy Markdown
Collaborator

@RayBB RayBB commented Feb 4, 2026

Builds on: #11815

Closes #

This migrates reading goals as a first small proof of concept for getting user auth working in site

Technical

A good followup would be to split the POST endpoint into
POST, PUT (updates), and DELETE

Then update the UI to use it.

Testing

Screenshot

Stakeholders

@RayBB RayBB changed the title fastapi/yearly reading goals Migrate Yearly Reading Goals to FastAPI Feb 5, 2026
@RayBB RayBB requested a review from cdrini February 5, 2026 01:05
Copy link
Copy Markdown
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Lgtm! Tested across account and nothing seemed to persist. Agree with @RayBB that this endpoint could benefit from splitting out into separate POST/PUT/DELETE endpoints, but this is fine for now.

This is suuuuuper exciting!!! Now that we have the get current user method working in fastapi, there's nothing blocking us from any endpoint basically being migrated??? 🥳

@cdrini cdrini merged commit 10aa036 into master Feb 11, 2026
8 checks passed
@cdrini cdrini deleted the fastapi/yearly-reading-goals branch February 11, 2026 18:15
@RayBB RayBB removed the On Testing label Feb 11, 2026
bhardwajparth51 added a commit to bhardwajparth51/openlibrary that referenced this pull request Feb 17, 2026
* get_current_user works from fastapi

* migrate yearly reading goals to fastapi

* cleanup tests

* add json to tests

* fix tests

* format tests

* remove integration test

* remove excessive docs

* remove current that's not needed
Returns the currently logged in user. None if not logged in.
"""
return web.ctx.site.get_user()
return site.get().get_user()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This has caused the preference migration script to fail. Other scripts that call get_current_user will almost certainly also fail w/o additional set-up.

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.

3 participants