[184790111]: Redirect Crunch Automation on root project folder#621
[184790111]: Redirect Crunch Automation on root project folder#621sluga wants to merge 1 commit into
Conversation
scripts to account
e9b48c0 to
8ea945a
Compare
| # running CA scripts on the account is not supported currently | ||
| # previously, we function raised an error in this case; | ||
| # now, following what frontend did, we execute the script on the account | ||
| if (!is.crunchURL(x@views$execute)) { |
There was a problem hiding this comment.
I think we should do some heuristics to only redirect when at the root and keep the error if we're not and there's no execute view (I don't know if it currently works this way, but I can imagine the API not letting you run scripts on certain folders because of permissions by not including the execute view, and we wouldn't want to silently redirect to the account in this case).
Is there an obvious way to tell? If not, we can ask Jose what the frontend does here: https://github.com/Crunch-io/whaam/pull/8006/files#diff-ed5a738f637f797570efe80b7388b58ef741de4cb66bf7615caf498b3b35978bR27
| @@ -0,0 +1,6 @@ | |||
| { | |||
There was a problem hiding this comment.
Yeah, this is how I was imagining getting around the error in GET before the expect_POST. It seems like it works for me, do you still get errors? (If so, did you run make compress-fixtures?)
No description provided.