<!-- 
RSS generated by JIRA (9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b) at Mon Feb 12 10:02:49 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Magnolia - Issue tracker</title>
    <link>https://jira.magnolia-cms.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-uk</language>    <build-info>
        <version>9.4.2</version>
        <build-number>940002</build-number>
        <build-date>19-01-2023</build-date>
    </build-info>


<item>
            <title>[MGNLHOOK-288] Ensure webhook events are sent properly for the user&apos;s active environment on SaaS</title>
                <link>https://jira.magnolia-cms.com/browse/MGNLHOOK-288</link>
                <project id="17487" key="MGNLHOOK">Magnolia Webhooks</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Currentbehaviour&quot;&gt;&lt;/a&gt;Current behaviour&lt;/h2&gt;

&lt;p&gt;Having some webhook events configured on a light module on:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;main environment&lt;/li&gt;
	&lt;li&gt;test1 environment&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;If we switch the active environment from&#160;&lt;b&gt;main&lt;/b&gt; to&#160;&lt;b&gt;test1&lt;/b&gt;,&#160;&lt;b&gt;main&lt;/b&gt; environment events are still triggered, and&#160;&lt;b&gt;test1&lt;/b&gt; environment events are not triggered.&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;Expectedbehaviour&quot;&gt;&lt;/a&gt;Expected behaviour&lt;/h2&gt;

&lt;p&gt;Webhook events must be triggered properly, depending on the active environment.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="121573">MGNLHOOK-288</key>
            <summary>Ensure webhook events are sent properly for the user&apos;s active environment on SaaS</summary>
                <type id="1" iconUrl="https://jira.magnolia-cms.com/secure/viewavatar?size=xsmall&amp;avatarId=10883&amp;avatarType=issuetype">Bug</type>
                                            <priority id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/priorities/neutral.gif">Neutral</priority>
                        <status id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="jbenito">Javier Benito</assignee>
                                    <reporter username="jbenito">Javier Benito</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Nov 2022 11:38:07 +0100</created>
                <updated>Tue, 20 Dec 2022 12:58:57 +0100</updated>
                            <resolved>Tue, 20 Dec 2022 12:58:57 +0100</resolved>
                                    <version>2.0.0</version>
                                    <fixVersion>2.0.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                                                            <comments>
                            <comment id="329569" author="czimmermann" created="Mon, 7 Nov 2022 13:28:13 +0100"  >&lt;p&gt;There are also use cases where we would want webhooks to fire on other environments. For example on a &quot;UAT&quot; environment, you may want to trigger builds - and also pointing to a different location. For example on Netlify - you have 2 projects. One for PROD and one for UAT.&lt;/p&gt;

&lt;p&gt;So I think this needs more thought. But maybe at launch we could limit it to &apos;main&apos;.&lt;/p&gt;</comment>
                            <comment id="329589" author="JIRAUSER22310" created="Mon, 7 Nov 2022 14:52:08 +0100"  >&lt;p&gt;That use case (UAT) makes sense and makes me think if it&apos;s worth to limit now that only&#160;&lt;b&gt;main&lt;/b&gt; environment triggers events, to remove that limitation later. Maybe it&apos;s better to address now that every environment fires the right events, instead of limiting the events only to &lt;b&gt;main&lt;/b&gt;. What do you think?&lt;/p&gt;</comment>
                            <comment id="329605" author="czimmermann" created="Mon, 7 Nov 2022 16:03:04 +0100"  >&lt;p&gt;For me it would be ok to leave it as is - active on all branches. But we should document it.&#160;&lt;/p&gt;

&lt;p&gt;I guess once we introduce Content Environments, this will be resolved as an environments webhook will only fire when the content in its environment is changed.&lt;/p&gt;</comment>
                            <comment id="329620" author="JIRAUSER22310" created="Mon, 7 Nov 2022 16:53:06 +0100"  >&lt;p&gt;Yes, now it should work in the way you say - enabled in all environments, but there is a bug doing the following sequence:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Configure a webhook event on&#160;&lt;b&gt;main&lt;/b&gt; environment -&amp;gt; it&apos;s triggered and works properly.&lt;/li&gt;
	&lt;li&gt;Change to other environment which does not have any webhook event configured -&amp;gt; previous webhook is still triggered in this environment.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So in my opinion, we should fix that bug, or implement this restriction - only&#160;&lt;b&gt;main&lt;/b&gt; environment triggers webhook events. I&apos;d say we need to address both, but not sure about the order. I thought we could address both in this ticket, but maybe it&apos;s better to split it into two.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="330681" author="czimmermann" created="Mon, 14 Nov 2022 15:46:03 +0100"  >&lt;p&gt;&lt;a href=&quot;https://jira.magnolia-cms.com/secure/ViewProfile.jspa?name=jbenito&quot; class=&quot;user-hover&quot; rel=&quot;jbenito&quot;&gt;jbenito&lt;/a&gt; I would change the expected behavour to the following, do you agree:&lt;/p&gt;

&lt;p&gt;Only the webhooks configured in the users active environment should be &quot;caught&quot; and sent. For examplle: if the user is environment &quot;test1&quot;, then only webhooks configured in the &quot;test1&quot; environment should detect changes and make requests.&#160;&lt;/p&gt;</comment>
                            <comment id="330711" author="JIRAUSER22310" created="Mon, 14 Nov 2022 17:06:19 +0100"  >&lt;p&gt;I do agree. Should we create a different ticket to address that only&#160;&lt;b&gt;main&lt;/b&gt; environment should trigger events or we&apos;re not going to implement that restriction in the beginning?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;In any case, I&apos;ve changed this ticket description to reflect what actually happens.&lt;/p&gt;</comment>
                            <comment id="333250" author="czimmermann" created="Thu, 1 Dec 2022 12:20:13 +0100"  >&lt;p&gt;No, I don&apos;t think we should have a ticket that only the &lt;b&gt;main&lt;/b&gt; environment should trigger events.&lt;/p&gt;

&lt;p&gt;I&#8217;d say that developers can have a webhook definition file for production env (ie main), and other different definition files for testing, staging, qa, whatever environments they have, targetting different endpoints than main. And that can be accomplished now just ensuring that each environment fires the proper webhooks.&lt;/p&gt;

&lt;p&gt;Just as one example - as a devloper I am working on a feature on &apos;env/my-ssg&apos; branch - I&apos;d like to test webhooks on that environment.. but I dont waant publish actions on main (production) to be firing already... im still just developing the whole thing on &apos;env/my-ssg&apos;&lt;br/&gt;
cc: &#160;&lt;a href=&quot;https://jira.magnolia-cms.com/secure/ViewProfile.jspa?name=oanh.thai&quot; class=&quot;user-hover&quot; rel=&quot;oanh.thai&quot;&gt;oanh.thai&lt;/a&gt; &lt;a href=&quot;https://jira.magnolia-cms.com/secure/ViewProfile.jspa?name=chuong.doan&quot; class=&quot;user-hover&quot; rel=&quot;chuong.doan&quot;&gt;chuong.doan&lt;/a&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="333251" author="JIRAUSER22310" created="Thu, 1 Dec 2022 12:21:43 +0100"  >&lt;p&gt;Understood &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.magnolia-cms.com/images/icons/emoticons/thumbs_up.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="333371" author="oanh.thai" created="Fri, 2 Dec 2022 03:26:57 +0100"  >&lt;p&gt;Understood. Thank you &lt;a href=&quot;https://jira.magnolia-cms.com/secure/ViewProfile.jspa?name=czimmermann&quot; class=&quot;user-hover&quot; rel=&quot;czimmermann&quot;&gt;czimmermann&lt;/a&gt; , &lt;a href=&quot;https://jira.magnolia-cms.com/secure/ViewProfile.jspa?name=jbenito&quot; class=&quot;user-hover&quot; rel=&quot;jbenito&quot;&gt;jbenito&lt;/a&gt; .&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                            <subtask id="123311">MGNLHOOK-297</subtask>
                            <subtask id="123312">MGNLHOOK-298</subtask>
                            <subtask id="123313">MGNLHOOK-299</subtask>
                            <subtask id="123314">MGNLHOOK-300</subtask>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_14166" key="com.okapya.jira.checklist:checklist">
                        <customfieldname>Acceptance criteria</customfieldname>
                        <customfieldvalues>
                            
        <checklist>
        <![CDATA[
                            




                
                                    <div class="o-completion" style="display: flex; flex-shrink: 0;"><span  class="aui-lozenge aui-lozenge-complete" style="font-size: 12px; font-weight: normal; display: flex; flex-direction: row; align-items: center;" ><span style="padding-right: 4px; vertical-align: middle;"><svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg" fill="white"><path clip-rule="evenodd" d="m10.41037,3.42544l-7.86501,0c-0.72395,0 -1.31084,0.58688 -1.31084,1.31084l0,7.86508c0,0.7239 0.58689,1.3108 1.31084,1.3108l7.86501,0c0.724,0 1.3109,-0.5869 1.3109,-1.3108l0,-7.86508c0,-0.72396 -0.5869,-1.31084 -1.3109,-1.31084zm-7.86501,-0.65542c-1.08593,0 -1.96626,0.88032 -1.96626,1.96626l0,7.86508c0,1.0859 0.88033,1.9662 1.96626,1.9662l7.86501,0c1.086,0 1.9663,-0.8803 1.9663,-1.9662l0,-7.86508c0,-1.08594 -0.8803,-1.96626 -1.9663,-1.96626l-7.86501,0z" fill-rule="evenodd"/><path d="m5.09049,10.18526l-1.82767,-1.82766l-0.78479,0.78479l2.61246,2.61246l5.38758,-5.38754l-0.78483,-0.78479l-4.60275,4.60274z"/></svg></span><span>Empty</span></span></div>
                        ]]>
    </checklist>


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10111" key="com.atlassian.jira.toolkit:reporterdomain">
                        <customfieldname>Company</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>magnolia-cms.com</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10031" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 7 Nov 2022 13:28:13 +0100</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_12730" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_14151" key="com.atlassian.jira.toolkit:message">
                        <customfieldname>Docu info</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10246" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PDI-38</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10061" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comm is not jira-dev</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10071" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last participant</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>rsiska</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_13136" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 10 weeks, 3 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10020" key="com.atlassian.jira.toolkit:attachments">
                        <customfieldname>Number of attachments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10150" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname>Number of comments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>czimmermann</customfieldvalue>
            <customfieldvalue>jbenito</customfieldvalue>
            <customfieldvalue>oanh.thai</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10833" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzztx1:1ye8900p0r23</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10244" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10245" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1732">DevX 25</customfieldvalue>
    <customfieldvalue id="1738">DevX 26</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10242" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12430" key="com.atlassian.teams:rm-teams-custom-field-team">
                        <customfieldname>Team</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[26]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14145" key="com.intenso.jira.issue-templates:issue-templates-customfield">
                        <customfieldname>Template</customfieldname>
                        <customfieldvalues>
                            


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15131" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Time in Discovery</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>363</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_13933" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Urgency (resolution)</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15724"><![CDATA[Normal]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>