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

Add documentation for new table endpoints /create and /insert #44

Merged
merged 17 commits into from
Mar 11, 2024

Conversation

vegarsti
Copy link
Member

@vegarsti vegarsti commented Feb 29, 2024

This PR adds documentation for the new beta endpoints /create and /insert, for creating a table, and inserting into (appending to) a table.

Browse docs here:

Closes PRO-933.

Copy link
Member Author

vegarsti commented Feb 29, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @vegarsti and the rest of your teammates on Graphite Graphite

@vegarsti vegarsti marked this pull request as draft February 29, 2024 19:03
@vegarsti vegarsti marked this pull request as ready for review March 1, 2024 12:11
@vegarsti vegarsti changed the title WIP Add new table endpoints Add documentation for new table endpoints /create and /insert Mar 1, 2024
@vegarsti vegarsti requested a review from a team March 1, 2024 12:15
Copy link
Collaborator

@helanto helanto left a comment

Choose a reason for hiding this comment

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

Looks good! 🎉

api-reference/tables/tables-openapi.json Outdated Show resolved Hide resolved
api-reference/tables/tables-openapi.json Outdated Show resolved Hide resolved
api-reference/tables/endpoint/insert.mdx Outdated Show resolved Hide resolved
Copy link
Contributor

@hawkaa hawkaa left a comment

Choose a reason for hiding this comment

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

Amazing @vegarsti ! I thoroughly read through it all.

I'm a bit torn between these two:

  1. We're still in alpha/beta, so lets not overthink.
  2. It is very hard to forget to update the docs once they are there, so we should make sure we get them right.

What I must say though is that what we are writing here is incredibly important and we need to take good care of our documentation. Things like ordering of endpoints, messages like "we recommend using X over Y" can change the KRs of the entire company.

api-reference/tables/endpoint/create.mdx Show resolved Hide resolved
}
}
}
},
"/v1/table/upload/csv": {
"post": {
"summary": "Upload a CSV as a table in Dune.",
"description": "This API allows for anyone to upload a CSV as a table in Dune. The size limit per upload is currently 200MB. Your storage is limited by plan, 1MB on free, 15GB on plus, and 50GB on premium.",
Copy link
Contributor

Choose a reason for hiding this comment

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

What messaging can we provide to say that we recommend using the other endpoints?

Should we mention something about schema inferencing?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a Warning to the existing Upload endpoint about it being in maintenance mode, and they should consider using create and insert.

api-reference/tables/upload-openapi.json Outdated Show resolved Hide resolved
api-reference/tables/tables-openapi.json Outdated Show resolved Hide resolved
}
}
},
"is_private": {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm inclined to make this required to make sure people are explicit about creating a public table.

I'm also thinking about calling this argument public instead of is_private to make it clear that not private means that it is open for everyone.

Would be interesting to hear what @andrewhong5297 has to say about this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good points, I agree!

api-reference/tables/tables-openapi.json Outdated Show resolved Hide resolved
api-reference/tables/tables-openapi.json Show resolved Hide resolved
api-reference/tables/tables-openapi.json Show resolved Hide resolved
api-reference/tables/tables-openapi.json Outdated Show resolved Hide resolved
api-reference/tables/tables-openapi.json Outdated Show resolved Hide resolved
@vegarsti vegarsti merged commit 69d498e into main Mar 11, 2024
2 checks passed
@vegarsti vegarsti deleted the tables-docs branch March 11, 2024 13:46
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.

6 participants