Skip to content

Commit 235360b

Browse files
author
Mike Senn
authored
add herokuconnect.json (#158)
Use a config file for Heroku connect config instead of text in readme. This specifies all the fields for all objects in addition to indexing.
1 parent 3b7976b commit 235360b

File tree

2 files changed

+149
-4
lines changed

2 files changed

+149
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,11 @@ To use, install your GitHub app on desired repositories. Your app's homepage wil
142142

143143
### Heroku Setup
144144

145-
To set up on your own lighning experience, host this app on Heroku and change the webhook URL of your GitHub app to point to [YOUR HEROKU APP URL]/webhook instead of smee.
145+
To set up on your own Lightning Experience, host this app on Heroku and change the webhook URL of your GitHub app to point to [YOUR HEROKU APP URL]/webhook instead of smee.
146146

147147
To set up Heroku Connect, you may view the steps [here](https://devcenter.heroku.com/articles/getting-started-with-heroku-and-connect-without-local-dev).
148148

149-
In Heroku Connect, you will sync the `ADM_Build_c` table with the following fields: CreatedDate, Name, Release_Freeze_datetime__c, and Release_Freeze__c.
150-
151-
Finally in Heroku Connect, you will need to sync the `ADM_Work__c` table with the following fields: Assignee__c, Closed_By__c, CreatedById, CreatedDate, Details__c, Details_and_steps_to_Reproduce__c, Feedback__c, Found_in_Build__c, Frequency__c, Impact__c, Last_Modified_By__c, Name, Priority__c, Product_Owner__c, Product_Tag__c, QA_Engineer__c, RecordTypeId, Regressed__c, Related_URL__C, Release__c, Scheduled_Build__c, Scrum_Team__c, Severity__c, Spring__c, Status__c, Subject__c, and ftest__c.
149+
In Heroku Connect, you will sync the `ADM_Build_c`, `ADM_Change_List__c` and `ADM_Work__c` tables. The fields are defined in [herokuconnect.json](./heroku/herokuconnect.json). You can deploy that mapping with the [Heroku Connect CLI plugin](https://devcenter.heroku.com/articles/quick-start-heroku-connect-cli#import-mapping-configuration), but you'll have to change the connection settings before deploying.
152150

153151
As a reminder, if you see a prefix before the field name, set the `SALESFORCE_PREFIX` environment variable to that prefix.
154152

heroku/herokuconnect.json

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
{
2+
"mappings": [
3+
{
4+
"object_name": "agf__ADM_Build__c",
5+
"config": {
6+
"access": "read_only",
7+
"sf_notify_enabled": false,
8+
"sf_polling_seconds": 600,
9+
"sf_max_daily_api_calls": 30000,
10+
"fields": {
11+
"CreatedDate": {},
12+
"Id": {},
13+
"IsDeleted": {},
14+
"Name": {},
15+
"SystemModstamp": {},
16+
"agf__Release_Freeze_Datetime__c": {},
17+
"agf__Release_Freeze__c": {}
18+
},
19+
"indexes": {
20+
"Id": {
21+
"unique": true
22+
},
23+
"SystemModstamp": {
24+
"unique": false
25+
},
26+
"Name": {
27+
"unique": false
28+
}
29+
},
30+
"applied_at": "2018-11-14T17:52:30.792508Z"
31+
}
32+
},
33+
{
34+
"object_name": "agf__ADM_Change_List__c",
35+
"config": {
36+
"access": "read_only",
37+
"sf_notify_enabled": false,
38+
"sf_polling_seconds": 600,
39+
"sf_max_daily_api_calls": 30000,
40+
"fields": {
41+
"Name": {},
42+
"agf__Comments__c": {},
43+
"IsDeleted": {},
44+
"SystemModstamp": {},
45+
"agf__Check_In_Date__c": {},
46+
"agf__Work__c": {},
47+
"CreatedDate": {},
48+
"Id": {},
49+
"agf__Task__c": {}
50+
},
51+
"indexes": {
52+
"SystemModstamp": {
53+
"unique": false
54+
},
55+
"Id": {
56+
"unique": true
57+
}
58+
},
59+
"applied_at": "2020-04-02T18:35:19.786986Z"
60+
}
61+
},
62+
{
63+
"object_name": "agf__ADM_Work__c",
64+
"config": {
65+
"indexes": {
66+
"SystemModstamp": {
67+
"unique": false
68+
},
69+
"agf__External_ID__c": {
70+
"unique": true
71+
},
72+
"Id": {
73+
"unique": true
74+
},
75+
"Name": {
76+
"unique": false
77+
},
78+
"agf__Related_URL__c": {
79+
"unique": false
80+
},
81+
"agf__Subject__c": {
82+
"unique": false
83+
},
84+
"CreatedDate": {
85+
"unique": false
86+
}
87+
},
88+
"sf_max_daily_api_calls": 30000,
89+
"access": "read_write",
90+
"upsert_field": "agf__External_ID__c",
91+
"applied_at": "2023-02-14T01:40:34.070538Z",
92+
"sf_polling_seconds": 600,
93+
"sf_notify_enabled": false,
94+
"fields": {
95+
"agf__Perforce_Status__c": {},
96+
"agf__Product_Owner__c": {},
97+
"agf__Details__c": {},
98+
"agf__Scrum_Team__c": {},
99+
"agf__QA_Engineer__c": {},
100+
"agf__Severity__c": {},
101+
"RecordTypeId": {},
102+
"agf__Frequency__c": {},
103+
"agf__Scheduled_Build__c": {},
104+
"agf__Related_URL__c": {},
105+
"agf__Sprint__c": {},
106+
"Name": {},
107+
"agf__ftest__c": {},
108+
"IsDeleted": {},
109+
"SystemModstamp": {},
110+
"agf__Status__c": {},
111+
"agf__Found_in_Build__c": {},
112+
"agf__Assignee__c": {},
113+
"agf__External_ID__c": {},
114+
"CreatedDate": {},
115+
"agf__Subject__c": {},
116+
"agf__Product_Tag__c": {},
117+
"agf__Closed_By__c": {},
118+
"CreatedById": {},
119+
"Id": {},
120+
"agf__Release__c": {},
121+
"agf__Impact__c": {},
122+
"agf__Regressed__c": {},
123+
"agf__Details_and_Steps_to_Reproduce__c": {},
124+
"agf__Feedback__c": {},
125+
"agf__Priority__c": {},
126+
"agf__Last_Modified_By__c": {}
127+
}
128+
}
129+
}
130+
],
131+
"connection": {
132+
"app_name": "CHANGE-ME",
133+
"organization_id": "00D-CHANGE-ME",
134+
"exported_at": "2023-02-15T17:13:42.743308+00:00",
135+
"features": {
136+
"disable_bulk_writes": false,
137+
"poll_db_no_merge": true,
138+
"poll_external_ids": false,
139+
"rest_count_only": false,
140+
"ucs_basic_collation_index": false
141+
},
142+
"api_version": "57.0",
143+
"name": "CHANGE-ME:DATABASE_URL:gus",
144+
"logplex_log_enabled": false
145+
},
146+
"version": 1
147+
}

0 commit comments

Comments
 (0)