Open juliabolt opened 2 weeks ago
I said in the export function runPythonProgram (file app.ts) that the type of showRoles is a boolean, but now it needs be a string then? I'll just make the type any, to be sure it's okay...
I said in the export function runPythonProgram (file app.ts) that the type of showRoles is a boolean, but now it needs be a string then?
If you just send the variable it'll be a string, you can do something like:
show_roles_of_variables() == "False"
and that'll always send a boolean
show_roles_of_variables() == "False"
and that'll always send a boolean
If I do this, then the boolean will become true when the string is "False" right? I'm confused...
show_roles_of_variables() == "False"
and that'll always send a booleanIf I do this, then the boolean will become true when the string is "False" right? I'm confused...
Yes, you're right! It's == True
😅
PD: I edited your comment by accident, sorry!
some tests keep failing though... Am I still doing things wrong with the env var?
The feature flag for showing the roles of variables was set in the frontend, but now it is set as a variable in the environment, so that we can test the feature with a cypress test.
How to test
Follow these steps to verify this PR works as intended:
Checklist Done? Check if you have it all in place using this list: (mark with x if done)
If you're unsure about any of these, don't hesitate to ask. We're here to help!