Skip to content

[Harvester] Auto-send data collection to CRIMS on DC completion#2137

Merged
marcus-oscarsson merged 3 commits into
developfrom
jb_crims_dc
Jul 15, 2026
Merged

[Harvester] Auto-send data collection to CRIMS on DC completion#2137
marcus-oscarsson merged 3 commits into
developfrom
jb_crims_dc

Conversation

@jbflo

@jbflo jbflo commented Jul 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Harvester component connects to queue_entry_execute_finished and
    automatically POSTs data collection info to CRIMS when a DC completes
    successfully

  • _send_collection_to_crims extracts crystalUuid, sampleName,
    instrumentName (beamline_name), facilityName (synchrotron_name),
    and investigationID (session_id) from the finished queue entry.

  • Removes the manual "Send Data to Crims" button, its route, Redux
    action, and API call — superseded by the automatic trigger.

  • two required properties: crims_upload_url (full endpoint URL) and crims_upload_key.

Coupled PR

Requires mxcubecore PR LINK which implements the updated
send_data_collection_info_to_crims function.

I might do a followup to convert the component to an adapter next.

Comment thread mxcubeweb/core/components/harvester.py Outdated
@marcus-oscarsson

Copy link
Copy Markdown
Member

Thanks alot for these PRs @jbflo. We will merge the one on mxcubecore first and then we need to bump mxcubecore in pyproject.toml

It would also be great if as you mentioned before we could migrate this to an adapter, there is no reason for to be a separate component anymore.

jbflo added 2 commits July 15, 2026 10:16
CRIMS upload is now sent automatically when a data collection
finishes (see commit 2), making the manual button and its
route not needed.
Replaces the manual "Send Data to Crims" button with an automatic
trigger: the harvester component now listens to queue_entry_execute_finished
and calls send_data_collection_info_to_crims after every successful
DataCollectionQueueEntry. The manual route, action, and UI button
are removed.
@jbflo

jbflo commented Jul 15, 2026

Copy link
Copy Markdown
Member Author

Thanks alot for these PRs @jbflo. We will merge the one on mxcubecore first and then we need to bump mxcubecore in pyproject.toml

mxcubecore updated inpyproject.toml

@marcus-oscarsson
marcus-oscarsson merged commit 4ef8151 into develop Jul 15, 2026
27 checks passed
@marcus-oscarsson
marcus-oscarsson deleted the jb_crims_dc branch July 15, 2026 15:12
@marcus-oscarsson

Copy link
Copy Markdown
Member

Thanks, very nice. It would be wonderful if you could have a look at that adapter as well ;)

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.

2 participants