[Bug] Failure to create project when editing the config during creation
Describe the bug
Creating a project always seems to fail if I edit the config during creation. See video. Here, I'm using the config copied from another endpoint (so it's valid). The config seems to update, but the project won't save. If I create the project first with the default config, and then change the config (same config), the update is successful.
https://github.com/user-attachments/assets/c3963ac0-5917-4e83-9d0e-152e1c89dc56
Steps to reproduce the behavior
No response
Expected behavior
No response
Log files
No response
PICS file
No response
Screenshots
No response
Environment
No response
Additional Information
No response
Hey @cecille,
Please note that what you copied from the DuttyMcDutface TE2 EP3 is a different structure from the one required for the project creation. What I mean is that the project creation only requires the config object while the existing project config has config+pics inside a json object.
When we create a project like that we are passing the following:
{
"name": "Project With Existing Config",
"config": {
"config": {
"network": {...},
"dut_config": {...}
},
"pics": {
"clusters": {}
}
}
}
Note above the duplicate config.
But we're expecting only:
{
"name": "Project With Existing Config",
"config": {
"network": {...},
"dut_config": {...}
}
}
Thus, if you're need to copy/paste, you may copy only the config brackets or we may add a feature in the future to handle a more complete config file.
Let me know if that helps.