Cannot Initialize List Parameter for Procedural Scheduling Goal

Open
#1,985 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Domain
frontend, web-dev

Research direction

Reproduce the issue on the Plan page with the attached procedural scheduling goal, then start from the Plan invocation argument editor and the Add Value button that produces the browser TypeError. Done means a List parameter without a default initializes from Add Value, after which Add Value and Remove Value continue to work.

Written by the indexing model from the issue text.

Description

bug scheduling
Checked for duplicates

No - I haven't checked

Is this a regression?

No - This is a new bug

Version

develop

Describe the bug

In the event that a procedural scheduling goal has a List parameter with no default value, upon clicking the "Add Value" button to initialize this list causes nothing to happen. Note that the "Add Value" and "Remove Value" buttons work as expected once the list has been initialized (by manually doing so via the API)

Video of the bug (the derivationGroups parameter has been manually initialized in the DB):

https://github.com/user-attachments/assets/3f867023-6c32-4713-9a23-18698b9ba344

Reproduction
  1. Unzip and upload the attached procedural scheduling goal to the UI
  2. Add an invocation of the goal to a plan
  3. Attempt to edit the invocation's arguments on the Plan's page

ExternalEventsTypeQueryGoal.jar.zip

Logs
No server logs generated

Firefox logs:
Uncaught TypeError: ({eventTypes:[], derivationGroups:[]}) is not iterable
    Immutable 2
        d
        ke
aaE5PG7-.js:1:7750
    Immutable 2
        d
        ke


Chrome Logs:
aaE5PG7-.js:1 Uncaught TypeError: ((intermediate value)(intermediate value)(intermediate value) ?? []) is not iterable
    at HTMLButtonElement.d (aaE5PG7-.js:1:7767)
    at HTMLButtonElement.<anonymous> (D_pnKt3Y.js:1:4625)
d @ aaE5PG7-.js:1
(anonymous) @ D_pnKt3Y.js:1
System Info
Mac OS, Firefox and Chrome
Severity

Minor

Dominant language
Svelte
Stars
42
Forks
14
Avg merge
1d 16h
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NASA-AMMOS/plandev-ui

All issues in NASA-AMMOS/plandev-ui

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.