Skip to content

Update column types table#25

Closed
simonhammes wants to merge 2 commits intoseatable:v4.4from
simonhammes:update-column-types
Closed

Update column types table#25
simonhammes wants to merge 2 commits intoseatable:v4.4from
simonhammes:update-column-types

Conversation

@simonhammes
Copy link
Collaborator

No description provided.

Comment on lines -168 to +171
| `link` | `array` | `[{"row_id": "Mr-3QnQ5Q-eeEqFBevtOkw", "display_value": "Google News"}]` | |
| `link` | `array` | `["Mr-3QnQ5Q-eeEqFBevtOkw"]` | Array of row IDs. |
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just double-checked this and the format depends on the endpoint (listRowsDeprecated vs listRows).

The new listRows endpoint actually returns an array of objects.

| `button` | `null` | `null` | Always `null` |
| `link` | `array` | `[{"row_id": "Mr-3QnQ5Q-eeEqFBevtOkw", "display_value": "Google News"}]` | |
| `link` | `array` | `["Mr-3QnQ5Q-eeEqFBevtOkw"]` | Array of row IDs. |
| `link-formula` | `array`, `string` or `integer` | `["Todo 1", "Todo 2"]`, `Open Pending`, `2` | The output depends on the link formula type. Lookup returns an array, rollup returns a string and findmax returns an integer. |
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I checked all link-formula types and the output differs wildly:

Type /api-gateway /dtable-server
lookup array<string> string (CSV)
countlinks integer string (numeric)
rollup integer string (numeric)
findmax/findmin array<integer> string (numeric)

(tested using 4.4.10 @ stage)

| `rate` | `integer` | 4 |
| `rate` | `integer` | 4 | |
| `geolocation` | `object` | `{"lng": 8.23..., "lat": 50.00...}` or<br/>`{"country_region": "Sweden"}` | Depending on column setting. |
| `formula` | `string` | `"Albert Summer"` | Contains only the result of the formula. |
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 /api-gateway endpoints can also return integer or boolean values for formula columns.

The /dtable-server endpoints seem to return strings in all cases.

@simonhammes simonhammes force-pushed the update-column-types branch from 4bdaceb to f48b5ec Compare June 7, 2024 12:10
@christophdb
Copy link
Member

The relevant changes from this PR have been incorporated into the v6.1 branch (commit 4dfb478):

  • duration: corrected type from string to integer (value in seconds)
  • file: added upload_time field to example
  • auto-number: added missing column type to table

The following changes were intentionally not carried over:

  • email/url as separate rows — already listed in the first row alongside text, adding them again would create duplicates
  • link simplified example — the existing example with row_id + display_value is more informative

Closing this PR as the target branch v4.4 is no longer maintained.

@christophdb christophdb closed this Mar 6, 2026
christophdb added a commit that referenced this pull request Mar 6, 2026
…d API issues #22-#25

- Add createRowComment POST operation to base_operations.yaml (#45)
- Expand autonumber_column_format with digits, prefix_type, prefix fields (#27)
- Fix geo_column_format typo: county_region → country_region
- Add API issues: #22 (updateColumn link broken), #23 (temp token GET),
  #24 (app_name path vs body), #25 (base-token field differences)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants