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

Changes to GatewayResourceProfile #42

Merged
merged 2 commits into from Jul 19, 2020

Conversation

vivekshresta
Copy link

This is the first cut as part of EPIC: https://issues.apache.org/jira/browse/AIRAVATA-3315. By adding a new entry called UserStoragePreference, an admin user can configure storage quotas for the users in the Gateway.

0 is the default value for the UserStorageQuota entry, and the frontend, instead of displaying the value 0, displays "N/A" letting know the client that there are no storage restrictions in the Gateway.

It doesn't make any sense for the storage quota entry to have a negative number. So the client-side code has validations to make sure any typed or pasted value in the UserStorageQuota entry does not store any negative values.

Copy link
Contributor

@machristie machristie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @vivekshresta , this looks pretty good. I've requested some changes, let me know if you have any questions.

@@ -38,6 +41,21 @@ export default {
required: true
}
},
methods: {
handleTypedInput() {
const evt = window.event;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The event is passed as the first parameter to event handlers in Vue. Please use that instead of window.event which is deprecated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -177,6 +183,13 @@ export default {
}
return "...";
},
getUserStorageQuota(token) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename token to quota or value?

@vivekshresta vivekshresta changed the base branch from master to AIRAVATA-3315-storage-quotas July 14, 2020 16:53
@vivekshresta
Copy link
Author

Hi @machristie ,

As discussed, I'm merging all my changes to a feature branch(AIRAVATA-3315-storage-quotas). Please let me know if you want me to change anything else.

@machristie
Copy link
Contributor

Looks good @vivekshresta

@machristie machristie merged commit aef7a38 into apache:AIRAVATA-3315-storage-quotas Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants