<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:33:52 JST 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>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[INSTRM-1293] pull out status column from sps_sequence table</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1293</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;If we want to insert sps_sequence at the beginning, we need to pull out status column which is obviously known only at the end.&lt;/p&gt;

&lt;p&gt;We would need a new table : &lt;br/&gt;
sps_sequence_status: &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;visit_set_id int4 not null&lt;/li&gt;
	&lt;li&gt;status_flag int4&lt;/li&gt;
	&lt;li&gt;comments varchar&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;You need to create the table in the first place then I will dump data from the existing column to the new table, then we can drop the status column from sps_sequence.&lt;/p&gt;</description>
                <environment></environment>
        <key id="16887">INSTRM-1293</key>
            <summary>pull out status column from sps_sequence table</summary>
                <type id="3" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10518&amp;avatarType=issuetype">Task</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10002" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="The issue is resolved, reviewed, and merged">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="kiyoto.yabe">Kiyoto Yabe</assignee>
                                    <reporter username="arnaud.lefur">arnaud.lefur</reporter>
                        <labels>
                            <label>SPS</label>
                    </labels>
                <created>Thu, 17 Jun 2021 16:02:21 +0000</created>
                <updated>Wed, 14 Jul 2021 22:56:04 +0000</updated>
                            <resolved>Wed, 14 Jul 2021 22:56:04 +0000</resolved>
                                                                    <component>spt_operational_database</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="21525" author="kiyoto.yabe" created="Fri, 18 Jun 2021 01:23:02 +0000"  >&lt;p&gt;OK, making a new table is very easy, but migrating existing data is a little bit tricky, so we need a coordination. We are going to update the opDB schema very soon for the PFI integration anyway, so we can target then for this update. Is this needed for only `obslog` business?&lt;/p&gt;</comment>
                            <comment id="21526" author="arnaud.lefur" created="Fri, 18 Jun 2021 10:29:06 +0000"  >&lt;p&gt;Right. Yes, that&apos;s the main reason.&lt;/p&gt;</comment>
                            <comment id="21572" author="arnaud.lefur" created="Mon, 28 Jun 2021 10:33:13 +0000"  >&lt;p&gt;With &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-1291&quot; title=&quot;Create visit_set and sps_sequence rows as soon as practical.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-1291&quot;&gt;&lt;del&gt;INSTRM-1291&lt;/del&gt;&lt;/a&gt; merged, we&apos;re ready to go forward. &lt;br/&gt;
But regarding the migration, we could maybe take advantage of &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-1305&quot; title=&quot;rename sps_sequence to iic_sequence in opdb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-1305&quot;&gt;&lt;del&gt;INSTRM-1305&lt;/del&gt;&lt;/a&gt;, we copy &lt;em&gt;sps_sequence&lt;/em&gt; to &lt;em&gt;iic_sequence&lt;/em&gt; (without status column) and we keep &lt;em&gt;sps_sequence&lt;/em&gt; as backup while we do the migration, &lt;em&gt;sps_sequence_status&lt;/em&gt; should also be renamed to &lt;em&gt;iic_sequence_status&lt;/em&gt; I believe.&lt;/p&gt;</comment>
                            <comment id="21597" author="kiyoto.yabe" created="Tue, 29 Jun 2021 07:35:18 +0000"  >&lt;p&gt;In terms of &lt;em&gt;alembic&lt;/em&gt;&#160;operation, the following procedure is easier for me:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;create `iic_sequence` and `iic_sequence_status` (keeping `sps_sequence`) with alembic update (as a part of &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-1293&quot; title=&quot;pull out status column from sps_sequence table&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-1293&quot;&gt;&lt;del&gt;INSTRM-1293&lt;/del&gt;&lt;/a&gt;)&lt;/li&gt;
	&lt;li&gt;migrate existing records from `sps_sequence` to `iic_sequence` and `iic_sequence_status` (currently ~13000 rows, so not so large)&lt;/li&gt;
	&lt;li&gt;update `visit_set` constraints and drop `sps_sequence` (as a part of &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-1305&quot; title=&quot;rename sps_sequence to iic_sequence in opdb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-1305&quot;&gt;&lt;del&gt;INSTRM-1305&lt;/del&gt;&lt;/a&gt;)&lt;/li&gt;
	&lt;li&gt;we probably need to ask &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=michitaro&quot; class=&quot;user-hover&quot; rel=&quot;michitaro&quot;&gt;michitaro&lt;/a&gt; to change `obslog` before we remove `sps_sequence`&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;BTW, `output` (in `iic_sequence_status`) seems a &lt;em&gt;reserved&lt;/em&gt; keyword by SQL (not by postgres, but one cannot rule out the possibility that it becomes reserved by postgres in future). Any other good candidate names? If not, we can proceed with it, I think.&lt;/p&gt;</comment>
                            <comment id="21599" author="arnaud.lefur" created="Tue, 29 Jun 2021 09:33:15 +0000"  >&lt;p&gt;sounds good.&lt;/p&gt;

&lt;p&gt;okay, let&apos;s switch to &lt;em&gt;cmd_output&lt;/em&gt; then.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="16882">INSTRM-1291</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|zzs4yd:i</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="113">SM1PD-2021 A 12</customfieldvalue>

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