Skip to content

Commit 9750c91

Browse files
Updates after SU discussion
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent 0aae856 commit 9750c91

File tree

3 files changed

+2
-25
lines changed

3 files changed

+2
-25
lines changed

cla-backend-go/template/handlers.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,6 @@ func Configure(api *operations.ClaAPI, service ServiceInterface, eventsService e
6363
break
6464
}
6565
}
66-
if newPOCValue == "" {
67-
for _, field := range params.Body.MetaFields {
68-
if field.TemplateVariable == "CONTACT_URL" {
69-
newPOCValue = field.Value
70-
break
71-
}
72-
}
73-
}
7466

7567
eventsService.LogEvent(&events.LogEventArgs{
7668
EventType: events.CLATemplateCreated,

cla-backend-go/template/repository.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,8 +1034,6 @@ var templateMap = map[string]models.Template{
10341034
<p>Initial CLA Manager E-Mail: __________________________________________</p>
10351035
</body></html>`,
10361036
},
1037-
// LG: need support in PCC for setting CONTACT_URL template variable instead of CONTACT_EMAIL
1038-
// LG: update cla-prod-projects project entry for CNCF to have project_template_id = '3c6bec1d-7394-468a-8681-ce1b7226e326'
10391037
ApacheStyleCNCFTemplateID: {
10401038
ID: ApacheStyleCNCFTemplateID,
10411039
Name: "Apache Style",
@@ -1053,11 +1051,6 @@ var templateMap = map[string]models.Template{
10531051
Description: "The Full Entity Name of the Project.",
10541052
TemplateVariable: "PROJECT_ENTITY_NAME",
10551053
},
1056-
{
1057-
Name: "Conctact URL",
1058-
Description: "Contact URL (this is usually 'cncf.io/ccla' for CNCF), example: 'If providing a signed PDF, open a ticket at {{ CONTACT_URL }} and attach the scanned form'",
1059-
TemplateVariable: "CONTACT_URL", // LG: Note that this requires support in PCC
1060-
},
10611054
},
10621055
IclaFields: []*models.Field{
10631056
{
@@ -1260,7 +1253,7 @@ var templateMap = map[string]models.Template{
12601253
<p>
12611254
Project Name: {{ PROJECT_NAME }}</br>
12621255
Project Entity: {{ PROJECT_ENTITY_NAME }}</br>
1263-
If providing a signed PDF, open a ticket at {{ CONTACT_URL }} and attach the scanned form
1256+
If providing a signed PDF, open a ticket at cncf.io/icla and attach the scanned form
12641257
</p>
12651258
12661259
<h3 style="text-align: center">Individual Contributor License Agreement (“Agreement”) v2.0</h3>
@@ -1290,7 +1283,7 @@ var templateMap = map[string]models.Template{
12901283
<p>
12911284
Project Name: {{ PROJECT_NAME }}</br>
12921285
Project Entity: {{ PROJECT_ENTITY_NAME }}</br>
1293-
If providing a signed PDF, open a ticket at {{ CONTACT_URL }} and attach the scanned form
1286+
If providing a signed PDF, open a ticket at cncf.io/ccla and attach the scanned form
12941287
</p>
12951288
12961289
<h3 style="text-align: center"> Software Grant and Corporate Contributor License Agreement (“Agreement”) v2.0 </h3>

cla-backend-go/v2/template/handlers.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,6 @@ func Configure(api *operations.EasyclaAPI, service v1Template.ServiceInterface,
107107
break
108108
}
109109
}
110-
if newPOCValue == "" {
111-
for _, field := range input.MetaFields {
112-
if field.TemplateVariable == "CONTACT_URL" {
113-
newPOCValue = field.Value
114-
break
115-
}
116-
}
117-
}
118110

119111
eventsService.LogEvent(&events.LogEventArgs{
120112
EventType: events.CLATemplateCreated,

0 commit comments

Comments
 (0)