frontend icon indicating copy to clipboard operation
frontend copied to clipboard

feat: datafiles action type json

Open nitrosx opened this issue 9 months ago • 2 comments

Description

This PR add the option to create a datafile action in json format. It will submit a request to the specified URL with the payload in json format in the body. The results from the request will be saved by the browser in a file with the named specified in the action configuration. The structure of the payload can be specified in configuration

There is the matching backend PR to update the frontend config file: 1800

Motivation

sciwyrm (Jupiter notebook generator) accepts only requests formatted as json. ESS is currently deploying it in their infrastructure.

Changes:

Please provide a list of the changes implemented by this PR

  • datafiles actions controller

Tests included

  • [ ] Included for each change/fix?
  • [ ] Passing? (Merge will not be approved unless this is checked)

Documentation

  • [ ] swagger documentation updated [required]
  • [ ] official documentation updated [nice-to-have] - in progress

official documentation info

If you have updated the official documentation, please provide PR # and URL of the pages where the updates are included

Backend version

  • [ ] Does it require a specific version of the backend
  • which version of the backend is required:

Summary by Sourcery

New Features:

  • Introduces a new 'json-download' action type for datafiles, enabling requests to be sent with a JSON payload.

nitrosx avatar Mar 18 '25 09:03 nitrosx

Yes, I am looking forward, as this makes writing action consumers much easier.

bpedersen2 avatar Mar 20 '25 15:03 bpedersen2

:tada: Snyk checks have passed. No issues have been found so far.

:white_check_mark: security/snyk check is complete. No issues have been found. (View Details)

henrikjohansson712 avatar May 05 '25 12:05 henrikjohansson712