-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add scripts #2399
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
Comments
Thanks for opening this issue!
|
I like this one!! |
Who do you think should host the scripts, Parse Server or Parse Dashboard? |
I’m not entirely sure, I think for convenience we could use the code editor on the dashboard to create the scripts and then save them to a secure database class, but I’m not sure this is the best workflow as the code editor is almost obsolete, and evaluating stringified code saved in a remote database could be problematic. What do you think? |
Regarding code editing, I think a dashboard feature would quite certainly loose against common IDEs developers are already using today. The idea of a code editor in Parse Dashboard seems to be a 2010s concept from when commercial Parse wanted to fill the gap left by underdeveloped IDEs. Regarding code hosting, I can think of a few ways:
Choosing one:
So we're left with (e):
|
🎉 This change has been released in version 5.2.0-alpha.19 |
🎉 This change has been released in version 5.3.0-beta.1 |
🎉 This change has been released in version 5.3.0-alpha.1 |
🎉 This change has been released in version 5.3.0 |
New Feature / Enhancement Checklist
Current Limitation
Parse Dashboard allows for low-level data manipulation, but repeated manipulation of multiple fields cannot be done efficiently.
Feature / Enhancement Description
Allow to pre-define scripts that can be executed in Parse Dashboard.
_User
in other classes.js
file which has the Parse JS SDK available.Example Use Case
Deleting a user, their installation and all their sessions.
Currently, these involve multiple steps in Parse Dashboard.
_User
and delete._Installation
and delete._Session
and delete.A JS Script using the Parse JS SDK could execute all that with:
_User
class and in context menu choose "Scripts > Delete Account".The JS function looks something something like this:
The dashboard config file looks something like this:
Alternatives / Workarounds
Allow to execute Cloud Code functions with input parameters, which requires scripts to be hosted by Parse Server instead of Parse Dashboard.
The text was updated successfully, but these errors were encountered: