Skip to content

Commit fa2789c

Browse files
Try to fix the deployment 33
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent 11e0670 commit fa2789c

File tree

3 files changed

+16
-39
lines changed

3 files changed

+16
-39
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,6 @@ jobs:
165165
declare -r v2_url="https://api.lfcla.${STAGE}.platform.linuxfoundation.org/v2/health"
166166
declare -r v3_url="https://api.lfcla.${STAGE}.platform.linuxfoundation.org/v3/ops/health"
167167
168-
echo "Validating v2 backend using endpoint: ${v2_url}"
169-
curl --fail -XGET ${v2_url}
170-
exit_code=$?
171-
if [[ ${exit_coe} -eq 0 ]]; then
172-
echo "Successful response from endpoint: ${v2_url}"
173-
else
174-
echo "Failed to get a successful response from endpoint: ${v2_url}"
175-
exit ${exit_code}
176-
fi
177-
178168
echo "Validating v3 backend using endpoint: ${v3_url}"
179169
curl --fail -XGET ${v3_url}
180170
exit_code=$?
@@ -191,6 +181,17 @@ jobs:
191181
echo "Failed to get a successful response from endpoint: ${v3_url}"
192182
exit ${exit_code}
193183
fi
184+
185+
echo "Validating v2 backend using endpoint: ${v2_url}"
186+
curl --fail -XGET ${v2_url}
187+
exit_code=$?
188+
if [[ ${exit_coe} -eq 0 ]]; then
189+
echo "Successful response from endpoint: ${v2_url}"
190+
else
191+
echo "Failed to get a successful response from endpoint: ${v2_url}"
192+
exit ${exit_code}
193+
fi
194+
194195
- name: EasyCLA v2 Deployment us-east-2
195196
working-directory: cla-backend-go
196197
run: |

cla-backend/cla/models/dynamo_models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ class DocumentModel(MapAttribute):
939939
document_preamble = UnicodeAttribute(null=True)
940940
document_legal_entity_name = UnicodeAttribute(null=True)
941941
document_s3_url = UnicodeAttribute(null=True)
942-
document_tabs = ListAttribute(of=DocumentTabModel)
942+
document_tabs = ListAttribute(of=DocumentTabModel, default=list)
943943

944944

945945
class Document(model_interfaces.Document):
@@ -1142,9 +1142,9 @@ class Meta:
11421142
project_external_id = UnicodeAttribute()
11431143
project_name = UnicodeAttribute()
11441144
project_name_lower = UnicodeAttribute(null=True)
1145-
project_individual_documents = ListAttribute(of=DocumentModel)
1146-
project_corporate_documents = ListAttribute(of=DocumentModel)
1147-
project_member_documents = ListAttribute(of=DocumentModel)
1145+
project_individual_documents = ListAttribute(of=DocumentModel, default=list)
1146+
project_corporate_documents = ListAttribute(of=DocumentModel, default=list)
1147+
project_member_documents = ListAttribute(of=DocumentModel, default=list)
11481148
project_icla_enabled = BooleanAttribute(default=True)
11491149
project_ccla_enabled = BooleanAttribute(default=True)
11501150
project_ccla_requires_icla_signature = BooleanAttribute(default=False)

cla-backend/serverless.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
service: cla-backend
6-
frameworkVersion: '^3.0.0'
6+
frameworkVersion: '^3.28.1'
77

88
package:
99
# Exclude all first - selectively add in lambda functions
@@ -570,10 +570,6 @@ functions:
570570
apiv1:
571571
handler: wsgi_handler.handler
572572
description: "EasyCLA Python API handler for the /v1 endpoints"
573-
# package:
574-
# individually: true
575-
# patterns:
576-
# - '!**'
577573
events:
578574
- http:
579575
method: ANY
@@ -583,10 +579,6 @@ functions:
583579
apiv2:
584580
handler: wsgi_handler.handler
585581
description: "EasyCLA Python API handler for the /v2 endpoints"
586-
# package:
587-
# individually: true
588-
# patterns:
589-
# - '!**'
590582
events:
591583
- http:
592584
method: ANY
@@ -596,10 +588,6 @@ functions:
596588
salesforceprojects:
597589
handler: cla.salesforce.get_projects
598590
description: "EasyCLA API Callback Handler for fetching all SalesForce projects"
599-
# package:
600-
# individually: true
601-
# patterns:
602-
# - '!**'
603591
events:
604592
- http:
605593
method: ANY
@@ -609,10 +597,6 @@ functions:
609597
salesforceprojectbyID:
610598
handler: cla.salesforce.get_project
611599
description: "EasyCLA API Callback Handler for fetching SalesForce projects by ID"
612-
# package:
613-
# individually: true
614-
# patterns:
615-
# - '!**'
616600
events:
617601
- http:
618602
method: ANY
@@ -623,10 +607,6 @@ functions:
623607
githubinstall:
624608
handler: wsgi_handler.handler
625609
description: "EasyCLA API Callback Handler for GitHub bot installations"
626-
# package:
627-
# individually: true
628-
# patterns:
629-
# - '!**'
630610
events:
631611
- http:
632612
method: ANY
@@ -636,10 +616,6 @@ functions:
636616
githubactivity:
637617
handler: wsgi_handler.handler
638618
description: "EasyCLA API Callback Handler for GitHub activity"
639-
# package:
640-
# individually: true
641-
# patterns:
642-
# - '!**'
643619
events:
644620
- http:
645621
method: POST

0 commit comments

Comments
 (0)