-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: Datafiles configurable actions #1528
Conversation
…frontend into datafiles-actions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left few comments, would love to hear back your thoughts
src/app/datasets/datafiles-actions/datafiles-action.component.ts
Outdated
Show resolved
Hide resolved
src/app/datasets/datafiles-actions/datafiles-action.component.spec.ts
Outdated
Show resolved
Hide resolved
|
} | ||
|
||
//document.body.appendChild(form); | ||
this.form.submit(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gives "Form submission canceled because the form is not connected".
Probably a race between click an submit, which causes the form to disappear prematurely.
I suggest to switch to using a POST request directly (with either form-data-encoding or even better a json-encoded data)
Description
This PR is adding a configurable datafiles actions. Such actions can be configured through the config file and do not need any additional custom code. Actions can call any URL through a POST call and have a configurable label and icon.
This PR requires a change in the configuration for the FE as reported by the documentation. It also required an update of the BE as the FE configuration should be updated.
Motivation
Site admins have the need to configure and customize the datafiles actions to their IT infrastructure. For example, adding a button that produced a notebook ready to load the dataset and the selected files. This work is the first attempt to provide such functionality
Changes:
Please provide a list of the changes implemented by this PR
Tests included
Documentation
official documentation info
If you have updated the official documentation, please provide PR # and URL of the pages where the updates are included
Official documentation is present in md format in the file docs/configuration/datafiles-actions.md of this repository.
Backend version