-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add Modify Plugin #53
Comments
@mairin I could start working on this if I can get some documentation on the backend API. Also please let me know if there are specific requirements for this |
@zrthxn some documentation is here: https://fnndsc.github.io/ChRIS_store/ But more helpful is the API itself. It's designed to be self-documenting in a way. (does it work? you be the judge) For example:
Take note of these parts:
Piecing it together, such a request would be legal:
The effect is, the plugin's public code repository is changed. |
After creating a test account and creating a sample plugin for testing, whose representation file I copied from the cookiecutter Wiki here, I get the following runtime error when I try to open the Dashboard. TypeError: DashApplicationType is not a constructor I haven't modified anything related to the Dashboard yet. const DashApplicationType = (type) => {
if (type === 'ds') {
return (<React.Fragment><span className="fa fa-database" /> Data System</React.Fragment>);
}
return (<React.Fragment><span className="fa fa-file" /> File System</React.Fragment>);
}; and it's being called with the const applicationType = new DashApplicationType(plugin.type); Should I modify this or is there something I'm missing here? |
@zrthxn I am getting the same error. Maybe it is a backwards incompatible change with latest version of |
Will do.
|
From the documentation, if I understand correctly, the modifiable fields are
Now there is already a edit modal that is able to edit the
Which dyou think is better and is this the right direction? |
I don't see where in the documentation page it says that Using the edit modal would be easier to implement, I believe. The 'intent' idea would be great, but at the moment we have too much first to figure out. Perhaps I should have studied this issue a bit before having you take it up, since the edit modal allows for editing of the only editable field (aside from "owner," which is a bit special). I will ask @jbernal0019, our backend developer, how to proceed. The "intent" idea might be worthwhile to pursue. If you were to implement the feature, uneditable fields such as |
I saw them being sent in the "template" field and I tried to piece it together from how you had described it. I think that was wrong then.
Yea that's what I had thought of as well.
Alright I'll wait for a response from him. |
Add the ability to modify a plugin once its created. Use @jbernal0019 's backend js api for modifiable fields.
The text was updated successfully, but these errors were encountered: