This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/develop by this push:
new 8bd42d0 AIRAVATA-3126 Default reservations to empty array
new b33d777 Merge branch
'AIRAVATA-3126--Implement-compute-resource-reservation-addition' into develop
8bd42d0 is described below
commit 8bd42d088cde2dad1f86824c25d61704c108634c
Author: Marcus Christie <[email protected]>
AuthorDate: Tue Mar 31 10:27:37 2020 -0400
AIRAVATA-3126 Default reservations to empty array
Fixes AIRAVATA-3312
---
.../django_airavata_api/js/models/GroupComputeResourcePreference.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/django_airavata/apps/api/static/django_airavata_api/js/models/GroupComputeResourcePreference.js
b/django_airavata/apps/api/static/django_airavata_api/js/models/GroupComputeResourcePreference.js
index 7e8b46e..6cba727 100644
---
a/django_airavata/apps/api/static/django_airavata_api/js/models/GroupComputeResourcePreference.js
+++
b/django_airavata/apps/api/static/django_airavata_api/js/models/GroupComputeResourcePreference.js
@@ -27,7 +27,8 @@ const FIELDS = [
{
name: "reservations",
type: ComputeResourceReservation,
- list: true
+ list: true,
+ default: BaseModel.defaultNewInstance(Array)
}
];