Skip to content

Commit d16c56c

Browse files
author
vikasrohit
authored
Merge pull request #19 from appirio-tech/dev
Promoting changes to production
2 parents 1314d1c + ebe87ef commit d16c56c

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test:
1515

1616
deployment:
1717
development:
18-
branch: ["dev", "circleci", "test"]
18+
branch: ["dev", "test"]
1919
commands:
2020
- ./deploy/eb-deploy.sh tc-connect2sf DEV $CIRCLE_BUILD_NUM
2121
production:

consumer/src/services/ConsumerService.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,15 @@ class ConsumerService {
9090
LeadSource: leadSource,
9191
Company: company,
9292
OwnerId: config.ownerId,
93+
TC_Handle__c: user.handle,
9394
TC_Connect_Project_Id__c: project.id,
9495
TC_Connect_Description__c: _.get(project,"description",""),
9596
TC_Connect_Project_Status__c: _.get(project,"status",""),
9697
Ref_Code__c: _.get(project, "details.utm.code",""),
9798
TC_Connect_Direct_Project_Id__c: _.get(project, "directProjectId",""),
98-
TC_Connect_Cancel_Reason__c: _.get(project,"cancelReason","")
99+
TC_Connect_Cancel_Reason__c: _.get(project,"cancelReason",""),
100+
Google_Analytics_Click_ID__c: _.get(project,"details.utm.google._gclid",""),
101+
Google_Analytics_Client_ID__c: _.get(project,"details.utm.google._gacid","")
99102
};
100103
return SalesforceService.createObject('Lead', lead, accessToken, instanceUrl)
101104
.then((leadId) => {

consumer/test/ConsumerService.spec.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ describe('ConsumerService', () => {
1818
firstName: 'john',
1919
lastName: 'doe',
2020
21+
handle: 'jdoe'
2122
};
2223
const sfAuth = {
2324
accessToken: 'fake-token',
@@ -29,7 +30,11 @@ describe('ConsumerService', () => {
2930
id: 1,
3031
details: {
3132
utm: {
32-
code: "123"
33+
code: "123",
34+
google: {
35+
_gacid: "1234.5678",
36+
_gclid: "5678.1234"
37+
}
3338
}
3439
},
3540
cancelReason: null,
@@ -80,12 +85,15 @@ describe('ConsumerService', () => {
8085
LeadSource: 'Connect',
8186
Company: 'Unknown',
8287
OwnerId: config.ownerId,
88+
TC_Handle__c: 'jdoe',
8389
TC_Connect_Project_Id__c: 1,
8490
Ref_Code__c: '123',
8591
TC_Connect_Project_Status__c: '',
8692
TC_Connect_Cancel_Reason__c: null,
8793
TC_Connect_Direct_Project_Id__c: '',
88-
TC_Connect_Description__c:''
94+
TC_Connect_Description__c:'',
95+
Google_Analytics_Click_ID__c:'5678.1234',
96+
Google_Analytics_Client_ID__c:'1234.5678'
8997
};
9098

9199
const expectedCampaignMember = {

0 commit comments

Comments
 (0)