Skip to content

Commit d6a16e1

Browse files
author
markzegarelli
authored
Merge pull request #1103 from segmentio/connection-modes-verify
added utility to check if destination connection modes match known va…
2 parents bf092a0 + 66c388d commit d6a16e1

File tree

1 file changed

+176
-0
lines changed

1 file changed

+176
-0
lines changed

src/utils/cmode-verify.md

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
---
2+
title: Verify Destination Connection Modes
3+
hidden: true
4+
tests:
5+
- test-1:
6+
name: Test 1
7+
cases:
8+
- Google Analytics
9+
- Mixpanel
10+
- Amplitude
11+
reference:
12+
device:
13+
web: true
14+
mobile: true
15+
server: false
16+
cloud:
17+
web: true
18+
mobile: true
19+
server: true
20+
- test-2:
21+
name: Test 2
22+
cases:
23+
- ClearBrain
24+
- Amazon Kinesis
25+
- Amazon Kinesis Firehose
26+
- Help Scout
27+
- Impact
28+
reference:
29+
device:
30+
web: false
31+
mobile: false
32+
server: false
33+
cloud:
34+
web: true
35+
mobile: true
36+
server: true
37+
- test-3:
38+
name: Test 3
39+
cases:
40+
- Algolia Insights
41+
reference:
42+
device:
43+
web: false
44+
mobile: false
45+
server: false
46+
cloud:
47+
web: true
48+
mobile: false
49+
server: false
50+
- test-4:
51+
name: Test 4
52+
cases:
53+
- Firebase
54+
reference:
55+
device:
56+
web: false
57+
mobile: true
58+
server: false
59+
cloud:
60+
web: false
61+
mobile: false
62+
server: false
63+
- test-5:
64+
name: Test 5
65+
cases:
66+
- Google Tag Manager
67+
- Pinterest Tag
68+
reference:
69+
device:
70+
web: true
71+
mobile: false
72+
server: false
73+
cloud:
74+
web: false
75+
mobile: false
76+
server: false
77+
- test-6:
78+
name: Test 6
79+
cases:
80+
- Criteo App & Web Events
81+
- Doubleclick Floodlight
82+
reference:
83+
device:
84+
web: true
85+
mobile: false
86+
server: false
87+
cloud:
88+
web: false
89+
mobile: true
90+
server: false
91+
- test-7:
92+
name: Test 7
93+
cases:
94+
- Hubspot
95+
reference:
96+
device:
97+
web: true
98+
mobile: false
99+
server: false
100+
cloud:
101+
web: false
102+
mobile: true
103+
server: true
104+
---
105+
Use this page to verify that the static table at the top of each section matches the API generated tables below it. Any mismatches indicate a change in the API that requires further research to determine impact to the main Connection Modes table [here](docs/connections/destinations/cmodes-compare/).
106+
107+
Mismatches are shown highlighted in Red.
108+
109+
{% for test in page.tests %}
110+
<h2 id="{{test.name | slugify}}">{{test.name}}</h2>
111+
112+
<ul>
113+
{% for case in test.cases %} <li><a href="/docs/connections/destinations/catalog/{{case | slugify}}">{{case}}</a></li> {% endfor %}
114+
</ul>
115+
116+
### Reference
117+
{% assign reference = test.reference %}
118+
119+
<table>
120+
<tr>
121+
<th></th>
122+
<th>Web</th>
123+
<th>Mobile</th>
124+
<th>Server</th>
125+
</tr>
126+
<tr>
127+
<td>📱 Device-mode</td>
128+
<td>{% if reference.device.web == true %} ✅ {% endif %}</td>
129+
<td>{% if reference.device.mobile == true %} ✅ {% endif %}</td>
130+
<td>{% if reference.device.server == true %} ✅ {% endif %}</td>
131+
</tr>
132+
<tr>
133+
<td>☁️ Cloud-mode</td>
134+
<td>{% if reference.cloud.web == true %} ✅ {% endif %}</td>
135+
<td>{% if reference.cloud.mobile == true %} ✅ {% endif %}</td>
136+
<td>{% if reference.cloud.server == true %} ✅ {% endif %}</td>
137+
</tr>
138+
</table>
139+
140+
141+
{% for case in test.cases %}
142+
{% assign slug = case | slugify %}
143+
{% assign currentIntegration = site.data.catalog.destinations.items | where: "slug", slug | first %}
144+
{% assign connectionModes = currentIntegration.connection_modes %}
145+
<h3>{{currentIntegration.display_name}}</h3>
146+
<table>
147+
<tr>
148+
<th></th>
149+
<th>Web</th>
150+
<th>Mobile</th>
151+
<th>Server</th>
152+
</tr>
153+
<tr>
154+
<td>📱 Device-mode</td>
155+
<td style="{% if connectionModes.device.web != reference.device.web %}background-color:rgba(255,0,0,.4){% endif %}">{% if connectionModes.device.web == true %} ✅ {% endif %}</td>
156+
<td style="{% if connectionModes.device.mobile != reference.device.mobile %}background-color:rgba(255,0,0,.4){% endif %}">{% if connectionModes.device.mobile == true %} ✅ {% endif %}</td>
157+
<td style="{% if connectionModes.device.server != reference.device.server %}background-color:rgba(255,0,0,.4){% endif %}">{% if connectionModes.device.server == true %} ✅ {% endif %}</td>
158+
</tr>
159+
<tr>
160+
<td>☁️ Cloud-mode</td>
161+
<td style="{% if connectionModes.cloud.web != reference.cloud.web %}background-color:rgba(255,0,0,.4){% endif %}">{% if connectionModes.cloud.web == true %} ✅ {% endif %}</td>
162+
<td style="{% if connectionModes.cloud.mobile != reference.cloud.mobile %}background-color:rgba(255,0,0,.4){% endif %}">{% if connectionModes.cloud.mobile == true %} ✅ {% endif %}</td>
163+
<td style="{% if connectionModes.cloud.server != reference.cloud.server %}background-color:rgba(255,0,0,.4){% endif %}">{% if connectionModes.cloud.server == true %} ✅ {% endif %}</td>
164+
</tr>
165+
</table>
166+
{% endfor %}
167+
168+
169+
{% endfor %}
170+
171+
172+
173+
174+
175+
176+

0 commit comments

Comments
 (0)