Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-37331: Add ook upload-doc-stub command #126

Merged
merged 8 commits into from
Dec 20, 2022
Merged

Conversation

jonathansick
Copy link
Member

This CLI command enables an admin to upload an Algolia record with stub metadata for a document. This is useful for documents that can't be indexed normally by Ook, but still need to appear in the www.lsst.io index.

We'll be able to generate better model documentation using Pydantic
Fields and description fields.
This uses the run_with_asyncio decorator from Safir 2; once Ook migrates
to FastAPI we can use safir.asyncio.run_with_asyncio.
This allows us to construct a Pydantic model using the field name; not
just the alias.
This CLI command enables an admin to upload an Algolia record with stub
metadata for a document. This is useful for documents that can't be
indexed normally by Ook, but still need to appear in the www.lsst.io
index.
@jonathansick jonathansick merged commit 88c7fbb into master Dec 20, 2022
@jonathansick jonathansick deleted the tickets/DM-37331 branch December 20, 2022 18:01
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