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

Integration with Notion Database #2894

Open
Tracked by #2657
wsxiaoys opened this issue Aug 15, 2024 · 3 comments
Open
Tracked by #2657

Integration with Notion Database #2894

wsxiaoys opened this issue Aug 15, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@wsxiaoys
Copy link
Member

wsxiaoys commented Aug 15, 2024

Notion database is popular as one kind of issue tracker: https://www.notion.so/templates/notion-issue-tracker

We'd like to integrate it as one kind of web document source.

References:

  1. Notion database api: https://developers.notion.com/reference/property-object
  2. Tabby's integration with github / gitlab issues: https://demo.tabbyml.com/files/github/TabbyML/tabby/-/blob/931bb8083beeac79eea6426b73b2ba88ca55a1cc/ee/tabby-webserver/src/service/background_job/third_party_integration.rs?plain=1#L113
@wsxiaoys wsxiaoys added good first issue Good for newcomers enhancement New feature or request labels Aug 15, 2024
@umialpha
Copy link

I am interested in this feature and will work on it :)

@umialpha
Copy link

umialpha commented Sep 4, 2024

@wsxiaoys i have read the notion api. Notion has elements like Database, Page, Block. It does not have any knowledge about issues. They are just database and pages to notion view.

So, i think we need another type of integration called notion besides github/gitlab, webdocument.
it has the following property.

name string
database_id string
access_token string

Alternately, we can treat Notion and WebDocument as the same, just different kind of documents with different api(notion api vs webcrawler). If so, the table web_documents should add more columes, e.g. access_token, document_type.

I prefer adding a notion integration type. What do u suggest?

@wsxiaoys
Copy link
Member Author

Hi, a common practice in Notion is using a database to store data. The linked template in the thread is an example. For the initial PR, it's fine to use fixed column names (title/summary) and import them (similar to syncing GitHub issues).

We can iterate on this in future steps, such as allowing the front end to decide which columns should be indexed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants