This repository was archived by the owner on Feb 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Introduce Table Metadata #484
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c95d842
Add table metadata
jjnesbitt 4b704ae
Add query param for metadata in csv upload
jjnesbitt 6ef8fdc
Add initial metadata tests
jjnesbitt 1883234
Revert `TableType` change
jjnesbitt d54d082
Update `get_metadata` to always return doc
jjnesbitt 6118164
Update `set_metadata` with cleaner syntax
jjnesbitt 2cbfec0
Remove excess blank lines
jjnesbitt 5c168f0
Throw error for invalid csv metadata arg
jjnesbitt 70bfc39
Remove incorrect swagger doc defs
jjnesbitt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| Retrieve the metadata of a table. | ||
| --- | ||
| parameters: | ||
| - $ref: "#/parameters/workspace" | ||
| - $ref: "#/parameters/table" | ||
|
|
||
| responses: | ||
| 200: | ||
| description: The metadata for this table | ||
|
|
||
| 404: | ||
| description: Specified workspace or table could not be found | ||
| schema: | ||
| type: string | ||
| example: workspace_or_table_that_doesnt_exist | ||
|
|
||
| tags: | ||
| - table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| Set the metadata of a table. | ||
| --- | ||
| parameters: | ||
| - $ref: "#/parameters/workspace" | ||
| - $ref: "#/parameters/table" | ||
| - name: metadata | ||
| in: body | ||
| description: The metadata to set (overwrites existing data) | ||
|
jjnesbitt marked this conversation as resolved.
|
||
| required: true | ||
| schema: | ||
| type: object | ||
| example: | ||
| columns: | ||
| - key: test | ||
| type: label | ||
|
|
||
| - key: length | ||
| type: number | ||
|
|
||
| responses: | ||
| 200: | ||
| description: The metadata for this table | ||
|
|
||
| 404: | ||
| description: Specified workspace or table could not be found | ||
| schema: | ||
| type: string | ||
| example: workspace_or_table_that_doesnt_exist | ||
|
|
||
| tags: | ||
| - table | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.