-
Notifications
You must be signed in to change notification settings - Fork 4
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
Require open source license for project creation #553
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for ami-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ami-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -13,5 +13,9 @@ export const convertToServerFormData = (fieldValues: any) => { | |||
data.append('image', '') | |||
} | |||
|
|||
if (fieldValues.openSource) { | |||
data.append('license', 'open-source') |
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.
Let's tweak this, if backend prefers the license to be passed in a different way.
Thanks @annavik! I am going to think about the backend part. I think we should check for this acceptance before every image sync or processing job. In-case the option gets unchecked, and also for existing projects. |
Summary
Fixes https://github.com/RolnickLab/ami-admin/issues/21
In this PR we block project creation client side, unless open source license has been selected. We still show the other option, but disabled.
Left to do on the backend side
Screenshot