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

[v1 API - tables] Use default title for tables #11526

Merged
merged 1 commit into from
Mar 21, 2025
Merged

Conversation

philipperolet
Copy link
Contributor

Description

Fixes this monitor

Aligns with what was done for documents of providing a default title.

Risk

standard

Deploy

front

Description
---

Fixes [this monitor](https://dust4ai.slack.com/archives/C05F84CFP0E/p1742553570819939)

Aligns with what was done for documents of providing a default title.

Risk
---
standard

Deploy
---
front
Copy link

github-actions bot commented Mar 21, 2025

Warnings
⚠️

Files in **/api/v1/ have been modified and the PR has the documentation-ack label.
Don't forget to run npm run docs and use the Deploy OpenAPI Docs Github action to update https://docs.dust.tt/reference.

Generated by 🚫 dangerJS against 6301639

@philipperolet
Copy link
Contributor Author

PMRR

@philipperolet philipperolet added the documentation-ack Used to acknowledge that documentation is up-to-date with this PR label Mar 21, 2025
@philipperolet philipperolet merged commit 6957833 into main Mar 21, 2025
8 checks passed
@philipperolet philipperolet deleted the title-empty-2 branch March 21, 2025 12:42
@@ -687,6 +683,8 @@ export async function upsertTable({
standardizedSourceUrl = standardized;
}

const title = titleEmpty ? UNTITLED_TITLE : params.title;
Copy link
Contributor

Choose a reason for hiding this comment

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

here it would be "Untitled Table" no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about it and IMO better to have one unified "UNTITLED_TITLE"

Copy link
Contributor

Choose a reason for hiding this comment

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

we could still have UNTITLED_DOCUMENT_TITLE, UNTITLED_TABLE_TITLE and UNTITLED_FOLDER_TITLE defined at the same place? but ofc this is only a fallback since each connector should provide better names

Copy link
Contributor

Choose a reason for hiding this comment

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

so totally up to you, i'm fine with anything 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks :) I think it's better to have only one, despite the downside of it being a bit unaccurate. An option would be to rename "[untitled]", will do that if we ever hear about this again

Copy link
Contributor

@aubin-tchoi aubin-tchoi left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation-ack Used to acknowledge that documentation is up-to-date with this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants