Skip to content

feat(specs): create ingestion specs #1100

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

Merged
merged 7 commits into from
Dec 12, 2022
Merged

feat(specs): create ingestion specs #1100

merged 7 commits into from
Dec 12, 2022

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Oct 23, 2022

🧭 What and Why

🎟 JIRA Ticket: DI-382

Create the openapi specification for the Ingestion API (repository, RFC).

This first PR is missing the pagination because it's not clear how it will be handled (body or query params).
It's also missing a lot of description fields, but we can definitely improve on the doc in the future.

@millotp millotp self-assigned this Oct 23, 2022
@millotp millotp requested a review from a team as a code owner October 23, 2022 10:01
@millotp millotp requested review from damcou and shortcuts October 23, 2022 10:01
@algolia-bot
Copy link
Collaborator

algolia-bot commented Oct 23, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

@netlify
Copy link

netlify bot commented Oct 23, 2022

Deploy Preview for api-clients-automation ready!

Name Link
🔨 Latest commit 1ae5710
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/6397595135ac6a000b2f7608
😎 Deploy Preview https://deploy-preview-1100--api-clients-automation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@millotp millotp force-pushed the feat/ingestion-client branch from 98e6ec5 to fbec6ec Compare October 27, 2022 08:38
type: object
additionalProperties: false
properties:
runID:
Copy link
Member

Choose a reason for hiding this comment

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

we could use a ref from specs/ingestion/common/parameters.yml same for events

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the parameters in parameters.yml are used for path or query params, not sure they would fit in this object

Comment on lines +18 to +20
# lastCursorValue:
# type: integer
# format: int64
Copy link
Member

Choose a reason for hiding this comment

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

is there an issue with that field?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's not yet used in our API. It will always be null.
It will be used in the future, for tools that need many run to overview all the data of a Source.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

plus one with @Fluf22, there is no point in exposing it right now

Copy link
Member

Choose a reason for hiding this comment

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

oki we can remove it then if we don't mind now

@millotp millotp force-pushed the feat/ingestion-client branch from 5845069 to e5b5230 Compare December 12, 2022 13:23
@millotp millotp requested review from Fluf22 and shortcuts December 12, 2022 14:16
Copy link
Contributor

@Fluf22 Fluf22 left a comment

Choose a reason for hiding this comment

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

Just one last comment
Seems okay overall

Fluf22
Fluf22 previously approved these changes Dec 12, 2022
Copy link
Contributor

@Fluf22 Fluf22 left a comment

Choose a reason for hiding this comment

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

Let's go 🪨

shortcuts
shortcuts previously approved these changes Dec 12, 2022
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

nothing more to add GG it's nice :D

$ref: './common.yml#/createdAt'
required:
- authenticationID
- name
Copy link
Member

Choose a reason for hiding this comment

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

this API is so different than the others :( we should maybe focus on making it more consistent

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's already better now !

Comment on lines +70 to +71
/1/runs:
$ref: 'paths/runs/runs.yml'
Copy link
Member

Choose a reason for hiding this comment

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

you can add the run/task/{taskID} if you want

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added in 1ae5710

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

ah maybe we can remove the sources one

@millotp millotp dismissed stale reviews from shortcuts and Fluf22 via 1ae5710 December 12, 2022 16:39
@millotp
Copy link
Collaborator Author

millotp commented Dec 12, 2022

I'll remove sources in another PR :)

@millotp millotp merged commit 1685ed0 into main Dec 12, 2022
@millotp millotp deleted the feat/ingestion-client branch December 12, 2022 17:22
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Dec 12, 2022
medicindev pushed a commit to medicindev/Algolia-Client--JavaScript that referenced this pull request Mar 8, 2025
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.

4 participants