Skip to content

Commit 8223649

Browse files
committed
Adding dependency for New Relic system configs
1 parent e62c675 commit 8223649

File tree

1 file changed

+24
-0
lines changed
  • app/code/Magento/NewRelicReporting/etc/adminhtml

1 file changed

+24
-0
lines changed

app/code/Magento/NewRelicReporting/etc/adminhtml/system.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,37 +19,61 @@
1919
</field>
2020
<field id="api_url" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
2121
<label>New Relic API URL</label>
22+
<depends>
23+
<field id="enable">1</field>
24+
</depends>
2225
</field>
2326
<field id="insights_api_url" translate="label comment" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
2427
<label>Insights API URL</label>
2528
<comment>Use %s to replace the account ID in the URL</comment>
29+
<depends>
30+
<field id="enable">1</field>
31+
</depends>
2632
</field>
2733
<field id="account_id" translate="label comment" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
2834
<label>New Relic Account ID</label>
2935
<comment><![CDATA["Need a New Relic account? <a href="http://www.newrelic.com/magento" target="_blank">Click here to get one]]></comment>
36+
<depends>
37+
<field id="enable">1</field>
38+
</depends>
3039
</field>
3140
<field id="app_id" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
3241
<label>New Relic Application ID</label>
3342
<comment>This can commonly be found at the end of the URL when viewing the APM after "/applications/"</comment>
43+
<depends>
44+
<field id="enable">1</field>
45+
</depends>
3446
</field>
3547
<field id="api" translate="label comment" type="obscure" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="1">
3648
<label>New Relic API Key</label>
3749
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
3850
<comment>This is located by navigating to Events -> Deployments from the New Relic APM website</comment>
51+
<depends>
52+
<field id="enable">1</field>
53+
</depends>
3954
</field>
4055
<field id="insights_insert_key" translate="label comment" type="obscure" sortOrder="7" showInDefault="1" showInWebsite="1" showInStore="1">
4156
<label>Insights API Key</label>
4257
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
4358
<comment>Generated under Insights in Manage data -> API Keys -> Insert Keys</comment>
59+
<depends>
60+
<field id="enable">1</field>
61+
</depends>
4462
</field>
4563
<field id="app_name" translate="label comment" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="1">
4664
<label>New Relic Application Name</label>
4765
<comment>This is located by navigating to Settings from the New Relic APM website</comment>
66+
<depends>
67+
<field id="enable">1</field>
68+
</depends>
4869
</field>
4970
<field id="separate_apps" translate="label comment" type="select" sortOrder="9" showInDefault="1" showInWebsite="1" showInStore="1">
5071
<label>Send Adminhtml and Frontend as Separate Apps</label>
5172
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
5273
<comment>In addition to the main app (which includes all PHP execution), separate apps for adminhtml and frontend will be created. Requires New Relic Application Name to be set.</comment>
74+
<depends>
75+
<field id="enable">1</field>
76+
</depends>
5377
</field>
5478
</group>
5579
<group id="cron" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">

0 commit comments

Comments
 (0)