conda-incubator / conda-store-ui

conda-store-ui is a frontend for conda-store powered by react
https://conda-incubator.github.io/conda-store-ui/
BSD 3-Clause "New" or "Revised" License
13 stars 18 forks source link

[BUG] - Add support for variables in the conda specification #350

Closed nkaretnikov closed 6 months ago

nkaretnikov commented 7 months ago

Describe the bug

See the discussion in https://github.com/conda-incubator/conda-store/issues/719.

This is already implemented on the server side, we just need to extend the UI to support variables.

I haven't looked closely yet, but likely this type needs to be extended + maybe parsing logic somewhere:

export type CondaSpecification = {
  name: string;
  channels: string[];
  dependencies: (string | CondaSpecificationPip)[];
  prefix?: string | null;
};

Expected behavior

Variables are not stripped when using raw YAML on the UI homepage

How to Reproduce the problem?

Repro in the linked issue. Paste it into raw YAML field, immediately observe that variables are not saved.

Output

No response

Versions and dependencies used.

No response

Anything else?

No response