Skip to content

Changed default Action to script from cloud func#913

Merged
notsidney merged 3 commits intorowyio:developfrom
mshamsrainey:action-field-default
Nov 16, 2022
Merged

Changed default Action to script from cloud func#913
notsidney merged 3 commits intorowyio:developfrom
mshamsrainey:action-field-default

Conversation

@mshamsrainey
Copy link
Contributor

This PR modifies the settings for the Action field to default to a user-declared script instead of a cloud function that they've already deployed to Firestore/GCP.

@vercel
Copy link

vercel bot commented Nov 2, 2022

@mshamsrainey is attempting to deploy a commit to the Rowy Team on Vercel.

A member of the Team first needs to authorize it.

@mshamsrainey mshamsrainey changed the title Changed default Action to script from cloud func [DRAFT] Changed default Action to script from cloud func Nov 2, 2022
@mshamsrainey mshamsrainey changed the title [DRAFT] Changed default Action to script from cloud func Changed default Action to script from cloud func Nov 2, 2022
Copy link
Contributor

@notsidney notsidney left a comment

Choose a reason for hiding this comment

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

Hi @mshamsrainey, you can’t change fields stored in the config without breaking backwards compatibility for some users. In this case, if they had clicked the “Cloud Function” radio button, it would have set config.isActionScript to false. Then, after this change, config.isCloudFunction would be undefined, so it displays the script options.

Currently, if config.isActionScript is falsy (false or undefined), it defaults to showing the Cloud Function options. You can alternatively check if it was explicitly set to false, so the default value, undefined, displays the script options.

mshamsrainey and others added 2 commits November 10, 2022 00:26
Co-authored-by: Sidney Alcantara <sidney@sidney.me>
@notsidney notsidney merged commit c7cca89 into rowyio:develop Nov 16, 2022
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.

2 participants