<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:33:51 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-1291] Create visit_set and sps_sequence rows as soon as practical.</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1291</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;The obslog and other consumers need to be able to see active sequences as soon as they have been started, and to see which command/visit_set_id each SPS visit is associated with.&lt;/p&gt;

&lt;p&gt;sps_sequence.status might need to be handled differently.&lt;/p&gt;</description>
                <environment></environment>
        <key id="16882">INSTRM-1291</key>
            <summary>Create visit_set and sps_sequence rows as soon as practical.</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="arnaud.lefur">arnaud.lefur</assignee>
                                    <reporter username="cloomis">cloomis</reporter>
                        <labels>
                            <label>SPS</label>
                    </labels>
                <created>Wed, 16 Jun 2021 18:33:00 +0000</created>
                <updated>Fri, 25 Jun 2021 15:52:29 +0000</updated>
                            <resolved>Fri, 25 Jun 2021 15:52:29 +0000</resolved>
                                                                    <component>ics_iicActor</component>
                    <component>ics_spsActor</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="21559" author="arnaud.lefur" created="Thu, 24 Jun 2021 13:32:26 +0000"  >&lt;p&gt;We need to think a bit to the insert temporality here.&lt;br/&gt;
sps_visit and mcs_exposure are inserted when the fits file is actually created which make sense.&lt;br/&gt;
For sps_sequence(iic_sequence), visit_set have two options regarding the insert timing:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;before the exposure and after gen2 returns getVisit, earliest option. in that case some of the existing constraints would need to be relieved because right now visit_set cannot be inserted before sps_visit, note that &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; raises a similar problem.&lt;/li&gt;
	&lt;li&gt;after the exposure, works with the current schema, but it wouldn&apos;t be ideal in the obslog purpose.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="21560" author="arnaud.lefur" created="Thu, 24 Jun 2021 15:45:32 +0000"  >&lt;p&gt;dragging &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=kiyoto.yabe&quot; class=&quot;user-hover&quot; rel=&quot;kiyoto.yabe&quot;&gt;Kiyoto Yabe&lt;/a&gt; here, because &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; might not be sufficient.&lt;/p&gt;</comment>
                            <comment id="21561" author="cloomis" created="Thu, 24 Jun 2021 15:54:42 +0000"  >&lt;p&gt;I think the constraints might be fine. The sps_sequence creates the new visit_set_id and provides all the command/sequence info, right?  So create &lt;b&gt;that&lt;/b&gt; before taking any exposures. Each sps exposure will then get a new pfs_visit_id from gen2: when the exposure is done insert the (visit_set_id, pfs_visit_id) row in visit_set. No?&lt;/p&gt;

&lt;p&gt;Actually, if I&apos;m reading models.py right, the primary key on visit_set should be &lt;tt&gt;sps_sequence.visit_se_id&lt;/tt&gt; instead of &lt;tt&gt;sps_visit.pfs_visit_id&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="21562" author="arnaud.lefur" created="Thu, 24 Jun 2021 16:12:01 +0000"  >&lt;p&gt;right. In anycase, the join will only be possible when the exposure is finished, but looking at the obslog it might be okay.&lt;/p&gt;</comment>
                            <comment id="21566" author="arnaud.lefur" created="Fri, 25 Jun 2021 15:52:29 +0000"  >&lt;p&gt;merged to master&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="16887">INSTRM-1293</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|02qpuc:i6001gr068fhw9qo4o0m5z</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>