Skip to content
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

Untoggled Checkbox Does Not Default to "False" for Parameterized Scheduling Procedures #1612

Open
ewferg opened this issue Jan 31, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ewferg
Copy link

ewferg commented Jan 31, 2025

Checked for duplicates

No - I haven't checked

Is this a regression?

No - This is a new bug

Version

3.2

Describe the bug

When I have a parameterized scheduling procedure, there is no way to specify defaults (like you can with activity types and sim config). This isn't ideal because I would like to have defaults, but where this turned into more of a "bug" is when I have a scheduling procedure with a boolean parameter. In the UI, when you instantiate that procedure in a plan, the parameter appears as a checkbox, which is unchecked by default. However, if I really want that parameter to be "false", I have to toggle the chechbox to "check" and then back to "unchecked" or I will get a scheduling error since the value will be null.

Reproduction

Create a simple scheduling procedure with a single boolean parameter (the procedure itself doesn't really need to do anything). Upload that procedure .jar to Aerie and instantiate it in a plan via "manage goals". Hit "schedule" to see the error. If you toggle the checkbox, you will see that scheduling succeeds.

Logs

System Info

Firefox 128.6.0esr (64-bit)

Severity

Minor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants