seedcase-project / seedcase-sprout

Upload your research data to formally structure it for better, more reliable, and easier research.
https://sprout.seedcase-project.org/
MIT License
0 stars 0 forks source link

Create and test `edit_property_field()` - a part of `create_properties_template()` #623

Closed signekb closed 1 week ago

signekb commented 2 weeks ago

Signature: edit_property_field(properties: json, field: str, value: str) -> json:

Arguments:

Returns: json with properties with a field edited

Context: see the create_properties_template diagram

This function edits the field values to the defaults we use.

@signekb: I'm guessing we'll use this several times and might include a edit_property_fields() function - like with create_dir()and create_dirs(). What say you, @lwjohnst86 ?

martonvago commented 2 weeks ago

Is this basically the same thing as https://github.com/seedcase-project/seedcase-sprout/issues/576 ? If so, we could rename edit_resource_properties_field > edit_property_field or edit_properties_field.

signekb commented 2 weeks ago

@lwjohnst86 ?