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

Support serverless Function datasource #641

Merged
merged 41 commits into from
Jul 14, 2022
Merged

Support serverless Function datasource #641

merged 41 commits into from
Jul 14, 2022

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Jul 7, 2022

First iteration on #628.

  • Write arbitrary code that gets executed on the server, the result is made available as state on the page
  • Implements a subset of the fetch API
  • Pass parameters from the page
  • Define secrets that can be used in the code
  • Debug with console.log + request logging
Screen.Recording.2022-07-07.at.17.58.03.mov
  • We should rethink the UX around secrets/credentials

Closes #628

@render
Copy link

render bot commented Jul 7, 2022

@oliviertassinari oliviertassinari requested a deployment to function-WIP - toolpad-db PR #641 July 7, 2022 16:02 — with Render Abandoned
@apedroferreira
Copy link
Member

pretty cool!
i was thinking something more like being able to set custom functions for any type of custom server-side code / API call, and the "query" option could probably just take a URL and make only GET requests - but i'm sure you've tried different approaches and seen what's best
anyway this looks great, i had never heard of this library but running an isolated process like that seems great

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 12, 2022
@render
Copy link

render bot commented Jul 12, 2022

@oliviertassinari oliviertassinari requested a deployment to function-WIP - toolpad-db PR #641 July 12, 2022 16:27 — with Render Abandoned
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 12, 2022
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 13, 2022
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 13, 2022
@Janpot Janpot marked this pull request as ready for review July 14, 2022 08:39
@Janpot Janpot changed the title function datasource prototype Support serverless Function datasource Jul 14, 2022
@Janpot Janpot merged commit 9bdb7ec into master Jul 14, 2022
@Janpot Janpot deleted the function-WIP branch July 14, 2022 19:40
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.

Support custom function datasource
3 participants