Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIMS-1389 - Add upload to ccp4 cloud button #901

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ndg63276
Copy link
Collaborator

@ndg63276 ndg63276 commented Feb 6, 2025

JIRA ticket: LIMS-1389

Summary:

We should allow users to directly send processed files (eg mtz, hkl) to CCP4 cloud, without them needing to download/upload. We can add an 'Upload to CCP4 Cloud' button to the 'attached files' dialog.

Changes:

  • Add a 'CCP4 Cloud' button to the attached files dialog, for both data processing jobs and also data collections themselves (for future work with mmcif files)
  • Add a config variable to alter upload path, also allows the button to be removed
  • Add a link to help pages on CCP4 cloud (page does not yet exist but Eugene says something will soon)
  • Add ability to store ccp4 username/cloudrun id in a cookie
  • Return to attached files dialog after successful upload

To test:

  • Sign up for a CCP4 cloud account at https://cloud.ccp4.ac.uk/
  • Go to a visit with processed data eg mx23694-127
  • Go to the 'Logs & Files' dialog, check there is a 'CCP4 Cloud' button next to any file of type 'result'
  • Click the button, then click 'Upload' with no credentials, check there is a sensible error
  • Fill in incorrect credentials, click 'Upload', check there is a sensible error
  • Get your cloudrun id from the 'My Account' section of CCP4 cloud, use it to fill in the correct credentials. Tick the box, click 'Upload' and check it seems to run ok, and returns to the attached files dialog.
  • Go to CCP4 Cloud, start a new project, and choose the task 'Import from Cloud Storage'. Click 'Select file' and then look in 'My Cloud Storage', the file should be under '/dls/mx23694-127_prefix', depending on the data collection you used.
  • There are no files attached to a data collection of type 'params', so insert one (any file will do), or update an existing one, or change attachments.js:56 to 'recip'.
  • Go to the data collection and click the little attachments (snowflake) button. Check a 'CCP4 Cloud' button appears next to the relevant attachment, and click it.
  • Check your credentials have been remembered, and that the upload works in the same way as before.

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.

1 participant