<!-- 
RSS generated by JIRA (9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b) at Mon Feb 12 04:46:30 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>[NPMCLI-97] Copy command</title>
                <link>https://jira.magnolia-cms.com/browse/NPMCLI-97</link>
                <project id="13983" key="NPMCLI">Magnolia CLI</project>
                    <description>&lt;p&gt;Command to copy entities.&lt;br/&gt;
&lt;tt&gt;mgnl copy&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Features:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Copy light module including changing all old references (within the module) in yaml, ftl, i18n files from original module name to new one.&lt;/li&gt;
	&lt;li&gt;Copy component (copies template definition, ftl, dialog definition)&lt;/li&gt;
	&lt;li&gt;Copy page template.(copies template definition, ftl, dialog definition)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This would be a helpful timesaver.&lt;/p&gt;

&lt;p&gt;To specify:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Command syntax.&lt;/li&gt;
	&lt;li&gt;How to reference things not in the immediate directory&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;2 ideas&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Specify type: copy light-module oldname newname, copy component oldname newname&lt;/li&gt;
	&lt;li&gt;Do not specify type: copy oldname newname&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="57791">NPMCLI-97</key>
            <summary>Copy command</summary>
                <type id="2" iconUrl="https://jira.magnolia-cms.com/secure/viewavatar?size=xsmall&amp;avatarId=10891&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/priorities/neutral.gif">Neutral</priority>
                        <status id="1" iconUrl="https://jira.magnolia-cms.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="czimmermann">Christopher Zimmermann</reporter>
                        <labels>
                            <label>to-specify</label>
                    </labels>
                <created>Thu, 9 Feb 2017 14:51:05 +0100</created>
                <updated>Thu, 24 Mar 2022 18:05:50 +0100</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="140217" author="czimmermann" created="Thu, 9 Mar 2017 13:01:21 +0100"  >&lt;p&gt;&lt;a href=&quot;https://jira.magnolia-cms.com/secure/ViewProfile.jspa?name=tgregovsky&quot; class=&quot;user-hover&quot; rel=&quot;tgregovsky&quot;&gt;tgregovsky&lt;/a&gt; &lt;a href=&quot;https://jira.magnolia-cms.com/secure/ViewProfile.jspa?name=robertkowalski&quot; class=&quot;user-hover&quot; rel=&quot;robertkowalski&quot;&gt;robertkowalski&lt;/a&gt; Can you add thoughts about name of command?&lt;br/&gt;
I&apos;m thinking that we would also want the ability to copy a component or a page - but I&apos;m worried about having so many commands - &lt;br/&gt;
copy-light-module&lt;br/&gt;
copy-component&lt;br/&gt;
copy-page&lt;/p&gt;

&lt;p&gt;That would be consistant with the create commands.&lt;br/&gt;
Eventually we might also want copy-app or copy-theme.&lt;br/&gt;
What about just adding one command &quot;copy&quot; that takes the type as the first parameter?&lt;/p&gt;

&lt;p&gt;But then create and copy are different patterns. &lt;br/&gt;
Maybe create commands should also become &quot;create&quot;.&lt;/p&gt;

&lt;p&gt;(I think thats also more in line with other cli&apos;s like embers and angulars with &quot;generate&quot;)&lt;/p&gt;

&lt;p&gt;Your thoughts?&lt;/p&gt;</comment>
                            <comment id="140313" author="rkowalski" created="Thu, 9 Mar 2017 13:55:33 +0100"  >&lt;p&gt;I believe the main reason to copy a light-module is to modify the included component. maybe &lt;a href=&quot;https://jira.magnolia-cms.com/secure/ViewProfile.jspa?name=frontools&quot; class=&quot;user-hover&quot; rel=&quot;frontools&quot;&gt;frontools&lt;/a&gt; can confirm that?&lt;/p&gt;

&lt;p&gt;I like the idea regarding &quot;mgnl create &amp;lt;something&amp;gt;&quot;. it feels a lot more natural to type and think of the commands. +1 to go with this pattern from me. a possible migration strategy could be to have the old &quot;create-&quot; commands still available, but not advertising them.&lt;/p&gt;


</comment>
                            <comment id="140601" author="frontools" created="Thu, 16 Mar 2017 09:47:36 +0100"  >&lt;p&gt;Hi, I am also the one that prefer &quot;mgnl add light-module&quot;, &quot;mgnl clone light-module&quot;, &quot;mgn remove light-module&quot;, etc... And you can support more than one command, like copy=clone=duplicate or create=add=new=init=generate for instance. Moreover this the way git, heroku, apt and others... work, so we are used to them.&lt;/p&gt;

&lt;p&gt;&quot;mgnl clone light-module slideshow slideshow2&quot;&lt;br/&gt;
And then in slideshow2: &quot;mgnl light-module set-name MyAwesomeSlideshow&quot;&lt;/p&gt;

&lt;p&gt;Or even more complicated you can let mgnl cli interact with light module&apos;s internal cli &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.magnolia-cms.com/images/icons/emoticons/wink.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="140654" author="czimmermann" created="Fri, 17 Mar 2017 07:35:36 +0100"  >&lt;p&gt;On the other hand, do I need to specify type? Can I just specify the name?&lt;/p&gt;

&lt;p&gt;mgnl copy the-light-module newname&lt;br/&gt;
mgnl copy the-fancy-component newname&lt;br/&gt;
mgnl copy the-terrible-page newname&lt;br/&gt;
mgnl copy the-small-app newname&lt;/p&gt;</comment>
                            <comment id="140688" author="frontools" created="Fri, 17 Mar 2017 13:49:56 +0100"  >&lt;p&gt;If you can recognise what it is, yes, for sure. The less verbose, the better.&lt;/p&gt;</comment>
                            <comment id="140839" author="rkowalski" created="Tue, 21 Mar 2017 12:37:37 +0100"  >&lt;p&gt;i like where this is going! &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.magnolia-cms.com/images/icons/emoticons/smile.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;

&lt;p&gt;often a light-module has the same name as a component it contains.&lt;/p&gt;

&lt;p&gt;explicitly stating what we are going to work with solves the problem at its root and additionally we don&apos;t have to implement fancy sniffing logic to find out which element we are referring to. &lt;/p&gt;

&lt;p&gt;i would go for explicit mentionign the type we are going to work with, with auto-complete to make it easier to type&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </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>Thu, 9 Mar 2017 13:55:33 +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_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>czimmermann</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_13136" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 47 weeks, 5 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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>frontools</customfieldvalue>
            <customfieldvalue>czimmermann</customfieldvalue>
            <customfieldvalue>rkowalski</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10833" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzztx1:c0i0c00009</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_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>0</customfieldvalue>

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