Skip to content

Conversation

@davereinhart
Copy link
Contributor

Updates to correspond with API changes to include score and count columns metadata as inputs on ScoreSetCreator and ScoreSetEditor, and transition from PUT to PATCH endpoint for ScoreSetEditor. With this change, user can upload JSON file for score and/or count column metadata which is parsed to JSON client side and submitted with score and count CSV files as part of multipart form data payload.

Goes with VariantEffect/mavedb-api#546

Fixes a bug related to issue described here: primefaces/primevue#5601

For the dropdown to work as expected, the suggestions array must be mutated even when there is no filter being applied. Also removes unneeded computed property for suggestions list.
…reSetCreator component

This button was being shown regardless of the context, now will only be displayed when the selected target accession could be converted to a protein accesion.
Fixing component name and removing parts of ScoreSetCreator component that were based on having an existing item loaded, which should not be the case when creating a new score set. These appear to be artifact from copying the ScoreSetEditor component.

Also updated the resetForm function to clear all form values, validation errors, and reset the active step to 0. Remove save button from form header area, to only allow saving from last step of wizard.
…ScoreSetCreator

Updates to align ScoreSetEditor content and functionality with current use, which is for editing existing score sets. Removes formatting and functionality related to creating new score sets which is now in ScoreSetCreator. Renamed "Clear" button to "Reset" to more accurately describe its function in this context.
…to null, so that merged validation errors object passes the isEmpty check
Includes handling of scoreColumnsMetadataFile and countColumnsMetadataFile form inputs, parsing to JSON and passing with request body on save as part of datasetColumns field of score set record.  Also adds view and delete buttons to corresponding form elements when values are present, to behave similar to extraMetadata form field.
… score and counts column metadata when saving

To match changes made in ScoreSetEditor for the same fields, ScoreSetCreator will now parse uploaded files for score and count column metadata and submit as part of datasetColumns field of new record.

Also cleans up some remaining references to `this.item`, which is only applicable for ScoreSetEditor and isn't used when creating new score sets.
…iants PATCH endpoint

Updating ScoreSetEditor to use score-set=with-variants PATCH endpoint to combine submission of score set and variants data into a single request. Combines form data and files into multi-part form data payload. Eliminates need to form data with existing record for updates, only fields included in payload will be updated.
…rors generated via model_validate instead of fast api's pydantic validation
… variants/data POST request on ScoreSetCreator component
Copy link
Collaborator

@bencap bencap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes and the housekeeping @davereinhart, I had no idea the creator file had so much obsolete duplication from the editor.

Given that we expect the metadata file to evolve, I don't think it's essential we render metadata in the UI as part of this task, but we should add another issue for it and start thinking about what that might look like. Another issue for adding a download button would be good as well in the interim and is probably all we need for a little while at least.

There was one blocking bug I found in the case statement that was causing the score metadata to be set as the same thing as the count metadata if the count metadata was set after the score metadata, but it should be a trivial fix. After that is all set this looks good.

@davereinhart davereinhart force-pushed the davereinhart/scoreset-column-metadata branch from 87850d4 to 49f415e Compare November 5, 2025 20:00
@bencap bencap merged commit 206e257 into release-2025.5.0 Nov 10, 2025
@bencap bencap deleted the davereinhart/scoreset-column-metadata branch November 10, 2025 21:57
@bencap bencap linked an issue Nov 13, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants