GDevelop-extensions icon indicating copy to clipboard operation
GDevelop-extensions copied to clipboard

New extension: Supabase

Open github-actions[bot] opened this issue 1 year ago • 19 comments

Description

This extension is an upgrade of Supabase save state extension #1067 by @romw314.

Supabase vs Supabase save state

  • Both, Supabase and Supabase save state, use the same JavaScript client by @romw314.
  • Supabase doesn't need a static scheme (setup), however, extension users still need to configure their own Supabase projects.
  • Supabase supports OTP authentication.
  • Supabase supports CRUD and filtering.
  • Supabase retrieves session automatically by saving/loading refresh token.

Comparison

Screenshot_٢٠٢٤-٠٩-١٤-١٦-٣٠-٥٣-٥٨_40deb401b9ffe8e1df2f1cc5ba480b12 Screenshot_٢٠٢٤-٠٩-١٤-١٦-٣٠-٣٨-٠٥_40deb401b9ffe8e1df2f1cc5ba480b12

How to use the extension

  • Get project's URL and key from Supabase.
  • Open the extension in the editor and set SupabaseURL and SupabaseKey.
  • On Supabase.com, currently you have to let anonymouses read tables, no need to let anonymouses create/update/delete.

Checklist

  • [X] I've followed all of the best practices.
  • [X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • [X] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

Supabase example.zip

Extension file

Supabase.zip

github-actions[bot] avatar Sep 14 '24 13:09 github-actions[bot]

Oh no. Do I really have to add exception?

EyadMahm0ud avatar Sep 14 '24 16:09 EyadMahm0ud

Yes, that's ok. And, if you want them to check the client, use the unminified version of the client that I built: https://gist.github.com/romw314/42184c41bc21fca206856a446c9e77b1

romw314 avatar Sep 15 '24 15:09 romw314

Thanks, @romw314. I will use it. Moreover, I noticed that the extension is spaghetti, so I will rewrite some of the actions.

EyadMahm0ud avatar Sep 15 '24 18:09 EyadMahm0ud

!update Supabase.zip


What's New? (0.9.0 » 1.0.0)

  • Use a non-minified version of the code for easy review, thanks @romw314.
  • Support for new variables system.*
  • Support callback variable with "state", like Firebase.*
  • Support filters and modifiers.
  • ~Storage support.~ Delayed

Please note that most functions have become two (JavaScript & Standard Events) to support both.

EyadMahm0ud avatar Sep 27 '24 11:09 EyadMahm0ud

I don't really know how to add exceptions for the extension.

EyadMahm0ud avatar Sep 27 '24 15:09 EyadMahm0ud

!update Supabase.zip

  • Better and more consistent event sentences/descriptions.

EyadMahm0ud avatar Sep 27 '24 20:09 EyadMahm0ud

!update Supabase example.zip

EyadMahm0ud avatar Sep 27 '24 20:09 EyadMahm0ud

❗ An internal error has occurred. See logs at https://github.com/GDevelopApp/GDevelop-extensions/actions/runs/11077373026.

github-actions[bot] avatar Sep 27 '24 20:09 github-actions[bot]

!update Supabase example.zip

You shouldn't post the example using !update. Just post it because that's only for the GD extensions team, not for the automation.

romw314 avatar Sep 28 '24 10:09 romw314

❗ An internal error has occurred. See logs at https://github.com/GDevelopApp/GDevelop-extensions/actions/runs/11083023031.

github-actions[bot] avatar Sep 28 '24 10:09 github-actions[bot]

❗ An internal error has occurred. See logs at https://github.com/GDevelopApp/GDevelop-extensions/actions/runs/11083023031.

Oh no, my quote of the !update has started the automation pipeline.

romw314 avatar Sep 30 '24 13:09 romw314

❗ An internal error has occurred. See logs at https://github.com/GDevelopApp/GDevelop-extensions/actions/runs/11106717584.

github-actions[bot] avatar Sep 30 '24 13:09 github-actions[bot]

❗ An internal error has occurred. See logs at https://github.com/GDevelopApp/GDevelop-extensions/actions/runs/11106717584.

Again? 😆

romw314 avatar Oct 03 '24 09:10 romw314

I don't really know how to add exceptions for the extension.

Hi, @EyadMahm0ud, to add the exception, follow these steps:

Fork this repo but disable copy only master branch, create a new branch from the extension/EyadMahm0ud/1376 branch, add the exception into scripts/lib/ExtensionsValidatorExceptions.js in the new branch, and create a new PR from the new branch in your fork to the extension/EyadMahm0ud/1376 branch in this repo. After the GDevelop staff merges the PR you created to add the exception, CircleCI should pass.

For your next extensions, I recommend you creating the PR to submit the extension manually.

romw314 avatar Oct 03 '24 09:10 romw314

!update Supabase.zip

  • Nothing, just to push the latest version.

EyadMahm0ud avatar Nov 11 '24 17:11 EyadMahm0ud

✅ Successfully updated the extension.

github-actions[bot] avatar Nov 11 '24 17:11 github-actions[bot]

❗ No updates found. Please check your file.

github-actions[bot] avatar Nov 12 '24 13:11 github-actions[bot]

@romw314 My extenstion doesn't work anymore. I wonder if something has happend.

EyadMahm0ud avatar Jul 30 '25 18:07 EyadMahm0ud

@romw314 My extenstion doesn't work anymore. I wonder if something has happend.

Hi, @EyadMahm0ud, I'm glad this is progressing, could you please check the supabase project dashboard if the project isn't suspended (automatically after some time in the free plan)?

romw314 avatar Aug 07 '25 10:08 romw314