Skip to content

Migrate public_observations endpoint to FastAPI#12205

Merged
RayBB merged 5 commits intointernetarchive:masterfrom
Sanket17052006:migrate-public_observations-fastapi
Mar 31, 2026
Merged

Migrate public_observations endpoint to FastAPI#12205
RayBB merged 5 commits intointernetarchive:masterfrom
Sanket17052006:migrate-public_observations-fastapi

Conversation

@Sanket17052006
Copy link
Copy Markdown
Contributor

Related to #11999
This PR migrates the public_observations legacy endpoint to FastAPI.

Changes :-

openlibrary/fastapi/internal/api.py - Added the FastAPI public observations endpoint.
openlibrary/plugins/openlibrary/api.py - Deprecated the web.py endpoint.
openlibrary/tests/fastapi/test_public_observations.py - Added test file.

Testing

  • ./tests/integration/temporary/test_observation.sh
  • docker compose exec web pytest openlibrary/tests/fastapi/test_public_observations.py -v

Screenshot

N/A

Stakeholders

@RayBB

Comment thread openlibrary/fastapi/internal/api.py Outdated
@Sanket17052006 Sanket17052006 force-pushed the migrate-public_observations-fastapi branch from 95f64d0 to 492a004 Compare March 28, 2026 07:16
@github-project-automation github-project-automation Bot moved this to Waiting Review/Merge from Staff in Ray's Project Mar 31, 2026
@mekarpeles mekarpeles requested a review from jimchamp March 31, 2026 00:50
@mekarpeles
Copy link
Copy Markdown
Member

cc'ing @jimchamp as a stakeholder in case he has comments (as I believe he wrote some of this original code for observations)

Copy link
Copy Markdown
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

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

Excellent work here.

I simplified the code just a bit and pushed that up.

Tested this on testing and it's working like a charm.

@jimchamp would love to know if this is actually used and if so how? I don't see it in the frontend but sometimes it's hidden.

@RayBB RayBB merged commit 7ae672d into internetarchive:master Mar 31, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Waiting Review/Merge from Staff to Done in Ray's Project Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants