<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:34:43 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>[DAMD-144] write pfsConfig per visitId not per visit0</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/DAMD-144</link>
                <project id="10400" key="DAMD">Data Model</project>
                    <description>&lt;p&gt;pfsConfig will now be written for each visit, instead of visit0 only.&lt;br/&gt;
That also imply an opdb schema change.&lt;/p&gt;</description>
                <environment></environment>
        <key id="23136">DAMD-144</key>
            <summary>write pfsConfig per visitId not per visit0</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="arnaud.lefur">arnaud.lefur</reporter>
                        <labels>
                            <label>EngRun</label>
                    </labels>
                <created>Wed, 23 Nov 2022 03:18:16 +0000</created>
                <updated>Mon, 12 Dec 2022 20:50:27 +0000</updated>
                            <resolved>Mon, 12 Dec 2022 20:50:27 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="31889" author="arnaud.lefur" created="Wed, 30 Nov 2022 18:08:50 +0000"  >&lt;p&gt;It&apos;s not a trivial change, so before I&apos;m going any further, I want to make sure, we&apos;re on the same page on this.&lt;br/&gt;
It implies changes to datamodel, opdb probably some obs_pfs scripts as well and I&apos;m also wondering about backward compatibility.&lt;br/&gt;
My point is what do we actually gain ? Is it making someone&apos;s life easier  &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=price&quot; class=&quot;user-hover&quot; rel=&quot;price&quot;&gt;price&lt;/a&gt; &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=cloomis&quot; class=&quot;user-hover&quot; rel=&quot;cloomis&quot;&gt;cloomis&lt;/a&gt; &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=rhl&quot; class=&quot;user-hover&quot; rel=&quot;rhl&quot;&gt;rhl&lt;/a&gt; ?&lt;/p&gt;

&lt;p&gt;if we keep the current schema:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;we would have to create symlink for each sps visit taken with that config.&lt;/li&gt;
	&lt;li&gt;also there is no direct mapping from pfs_visit_id to pfs_config entries, but adding a new table would work : &lt;em&gt;pfs_config_set : pfs_visit_id; visit0&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;If we decide to change, my original though was to directly replace visit0 by visit but I think that&apos;s nuts actually.&lt;br/&gt;
It would be better just to :&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;add an optional visit argument to pfsConfig constructor, so visit=visit0 if not provided. Then the file name format becomes &quot;pfsConfig-0x%016x-%06d.fits&quot;%(self.pfsDesignId, self.visit) instead of  &quot;pfsConfig-0x%016x-%06d.fits&quot;%(self.pfsDesignId, self.visit0)&lt;/li&gt;
	&lt;li&gt;add a pfs_visit_id column in pfs_config table in opdb and put the unicity contraint on pfs_visit_id and not on visit0.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="31891" author="rhl" created="Wed, 30 Nov 2022 18:44:11 +0000"  >&lt;p&gt;I don&apos;t understand this. &#160;Maybe we can chat this afternoon?&lt;/p&gt;</comment>
                            <comment id="31899" author="arnaud.lefur" created="Thu, 1 Dec 2022 18:10:20 +0000"  >&lt;p&gt;After some discussions with &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=cloomis&quot; class=&quot;user-hover&quot; rel=&quot;cloomis&quot;&gt;cloomis&lt;/a&gt;, we definitely eliminated the symlink option.&lt;br/&gt;
I proposed an implementation for option 2, see datamodel : &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-144&quot; title=&quot;write pfsConfig per visitId not per visit0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-144&quot;&gt;&lt;del&gt;DAMD-144&lt;/del&gt;&lt;/a&gt; :&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Add an optional visit argument to pfsConfig constructor, so visit=visit0 if not provided.&lt;/li&gt;
	&lt;li&gt;File name format becomes &quot;pfsConfig-0x%016x-%06d.fits&quot;%(self.pfsDesignId, self.visit)&lt;/li&gt;
	&lt;li&gt;Fps is the really the one which knows about visit0, it creates the config file, using the class method &lt;em&gt;fromPfsDesign(cls, pfsDesign, visit0, pfiCenter)&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;After the convergence, IIC load this newly created pfsConfig in memory.&lt;/li&gt;
	&lt;li&gt;Before taking a sps exposure with pfi, when it gets the visit, IIC create a new pfsConfig file using the new class method &lt;em&gt;fromPfsConfig(cls, pfsConfig, visit)&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;pfsConfig files will be written to &lt;em&gt;/data/raw/$DATE/pfsConfig&lt;/em&gt;&lt;br/&gt;
I think it should be simpler for drp ingest &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=price&quot; class=&quot;user-hover&quot; rel=&quot;price&quot;&gt;price&lt;/a&gt; ?The exposure and the config files just needs to be copied over to the drp repo. &lt;br/&gt;
As a bonus, it also solve the pfsConfig synchronisation issue to Hilo eg &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-1718&quot; title=&quot;copy fps.pfsConfig file from summit to hilo&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-1718&quot;&gt;&lt;del&gt;INSTRM-1718&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="31900" author="price" created="Thu, 1 Dec 2022 18:56:27 +0000"  >&lt;p&gt;I don&apos;t think DRP2D has ever really implemented the &lt;tt&gt;visit0&lt;/tt&gt; concept. I&apos;m fully in favour of dumping it and just using &lt;tt&gt;visit&lt;/tt&gt;. I think that must be easier for everyone.&lt;/p&gt;</comment>
                            <comment id="31904" author="price" created="Fri, 2 Dec 2022 18:41:17 +0000"  >&lt;p&gt;Why are we not dropping &lt;tt&gt;visit0&lt;/tt&gt; completely, in favour of &lt;tt&gt;visit&lt;/tt&gt;? I think that gives us everything we need for pfsConfig. Maybe there are subtleties further upstream that I&apos;m not aware of?&lt;/p&gt;</comment>
                            <comment id="31905" author="price" created="Fri, 2 Dec 2022 18:44:11 +0000"  >&lt;p&gt;Ack, just realised that I commented directly on the GitHub commits, rather than a PR. &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=arnaud.lefur&quot; class=&quot;user-hover&quot; rel=&quot;arnaud.lefur&quot;&gt;arnaud.lefur&lt;/a&gt;, would you please create a PR?&lt;/p&gt;</comment>
                            <comment id="31935" author="price" created="Wed, 7 Dec 2022 22:04:43 +0000"  >&lt;p&gt;Made a couple of suggestions on the PR.&lt;/p&gt;</comment>
                            <comment id="31951" author="price" created="Mon, 12 Dec 2022 19:10:14 +0000"  >&lt;p&gt;I added a commit to drp&amp;#95;stella to adjust to these changes, and the integration test now passes.&lt;/p&gt;</comment>
                            <comment id="31952" author="arnaud.lefur" created="Mon, 12 Dec 2022 20:47:12 +0000"  >&lt;p&gt;Good. I&apos;m ready to merge.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="23003">INSTRM-1718</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="23135">INSTRM-1802</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|zzsvrw:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10100" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Reviewers</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>price</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="157">PreEngRun09Dec</customfieldvalue>

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