<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:34:45 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-146] Add a column for proposal ID in DESIGN/CONFIG table in pfsDesign/pfsConfig files</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/DAMD-146</link>
                <project id="10400" key="DAMD">Data Model</project>
                    <description>&lt;p&gt;In the current openuse policy, the PFS fibers will be shared among more then one programs. It is efficient to add a column for the proposal id(s) in pfsDesign and hence pfsConfig in order to&#160; know which target is for which program (and manage access during their priority period).&lt;/p&gt;

&lt;p&gt;Details (column name, data format) will be added.&lt;/p&gt;</description>
                <environment></environment>
        <key id="23340">DAMD-146</key>
            <summary>Add a column for proposal ID in DESIGN/CONFIG table in pfsDesign/pfsConfig files</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="monodera">monodera</assignee>
                                    <reporter username="yuki.moritani">yuki.moritani</reporter>
                        <labels>
                            <label>EngRun</label>
                    </labels>
                <created>Wed, 5 Apr 2023 05:37:52 +0000</created>
                <updated>Thu, 14 Sep 2023 22:12:41 +0000</updated>
                            <resolved>Thu, 14 Sep 2023 22:12:41 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                <comments>
                            <comment id="33219" author="monodera" created="Tue, 20 Jun 2023 05:32:55 +0000"  >&lt;p&gt;I think that the necessary information to identify proposals and objects for tracking progress is &lt;tt&gt;ob&amp;#95;code&lt;/tt&gt; (string) and &lt;tt&gt;proposal&amp;#95;id&lt;/tt&gt; (string) (or &lt;tt&gt;group&amp;#95;id&lt;/tt&gt; (string)) from &lt;tt&gt;targetdb&lt;/tt&gt;.  Which is easier, to add columns to the existing extension (perhaps 1st extension) or to add a new extension including such operation-related columns in pfsDesign and pfsConfig?&lt;/p&gt;</comment>
                            <comment id="33220" author="price" created="Tue, 20 Jun 2023 16:17:46 +0000"  >&lt;p&gt;I suggest we put it in the existing main extension with everything else, and give it a default value if it&apos;s not present (old files).&lt;/p&gt;</comment>
                            <comment id="33221" author="arnaud.lefur" created="Tue, 20 Jun 2023 17:06:32 +0000"  >&lt;p&gt;So, you&apos;d add a proposal_id attribute with a value per fiber, so 2458 values, is that right ?&lt;/p&gt;</comment>
                            <comment id="33222" author="price" created="Tue, 20 Jun 2023 17:27:24 +0000"  >&lt;p&gt;I believe we need to associate a proposal with each fiber. I think the options are to have a &lt;tt&gt;proposalId&lt;/tt&gt; for each fiber (in the same way each fiber has an ra, dec, etc), or we could write a new extension with &lt;tt&gt;proposalId&lt;/tt&gt; associated with a variable-length array of &lt;tt&gt;fiberId&lt;/tt&gt;. I like the former, because it naturally forces a proposal to be associated with each fiber, whereas the latter requires validation to check that each fiber has a proposal.&lt;/p&gt;</comment>
                            <comment id="33223" author="monodera" created="Tue, 20 Jun 2023 18:59:03 +0000"  >&lt;p&gt;A &lt;tt&gt;(proposalID, obCode)&lt;/tt&gt; pair defines a unique target (ra/dec, requested total exposure time, instrument configuration, observing condition, etc.) and I think that adding these two keys would simplify tracking the observation progress for each target. &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=eric&quot; class=&quot;user-hover&quot; rel=&quot;eric&quot;&gt;eric&lt;/a&gt;, do you have any comments?&lt;/p&gt;

&lt;p&gt;I&apos;m also fine to add columns to the existing extension rather than adding a new one. &lt;/p&gt;</comment>
                            <comment id="33224" author="price" created="Tue, 20 Jun 2023 19:11:30 +0000"  >&lt;p&gt;Could you please explain what &lt;tt&gt;obCode&lt;/tt&gt; is?&lt;/p&gt;</comment>
                            <comment id="33225" author="arnaud.lefur" created="Tue, 20 Jun 2023 19:17:20 +0000"  >&lt;p&gt;Right, the first proposal makes sense to me too, it&apos;s consistent with what we did so far.&lt;/p&gt;</comment>
                            <comment id="33226" author="eric" created="Tue, 20 Jun 2023 20:05:29 +0000"  >&lt;p&gt;&amp;gt; &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=eric&quot; class=&quot;user-hover&quot; rel=&quot;eric&quot;&gt;eric&lt;/a&gt;, do you have any comments?&lt;/p&gt;

&lt;p&gt;I think that would simplify things a lot for tracking queue progress if we can see the proposal and ob code directly from the op-db.&lt;/p&gt;

&lt;p&gt;&amp;gt; Could you please explain what &lt;tt&gt;obCode&lt;/tt&gt; is?&lt;/p&gt;

&lt;p&gt;The ob_code is a string chosen by the PI for a particular OB (Observation Block), which is the &quot;basic unit of observation&quot; in the Subaru style of queue observing.&#160; OB codes identify the OB being observed and must be unique within each proposal, thus the combination of proposal and ob_code is a unique OB (another observer might choose the same code).&#160; The codes are chosen by the PI so that they may have meaningful names for planning their observations.&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="34036" author="monodera" created="Mon, 17 Jul 2023 02:32:55 +0000"  >&lt;p&gt;Here is a pull request for this ticket.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/Subaru-PFS/datamodel/pull/118&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/datamodel/pull/118&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As a combination of (proposalId, obCode) must be unique, some validation code must be present, but not yet implemented in the PR. In principle, this validation must be done when we ingest targets to the target database and the unique constraint has already been implemented there.&lt;/p&gt;</comment>
                            <comment id="34074" author="monodera" created="Wed, 19 Jul 2023 19:53:27 +0000"  >&lt;p&gt;I&apos;m adding a backward compatibility when &lt;tt&gt;proposalId&lt;/tt&gt; and &lt;tt&gt;obCode&lt;/tt&gt; do not exist in the case of previous pfsDesign and pfsConfig files.  I&apos;m adding &quot;dummy&quot; for these cases, but do you have any preferences for it? For example, &lt;tt&gt;proposalId = None&lt;/tt&gt; and &lt;tt&gt;obCode = fiberId&lt;/tt&gt; may also make sense. &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=eric&quot; class=&quot;user-hover&quot; rel=&quot;eric&quot;&gt;eric&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="34075" author="eric" created="Wed, 19 Jul 2023 20:55:46 +0000"  >&lt;p&gt;&amp;gt; do you have any preferences for it?&#160;&lt;/p&gt;

&lt;p&gt;It may be nice to preserve the proposalId, IMO.&#160; In such case we could then infer that an obCode == None is a classical observation, and the proposalId is valid. Just my .02c&lt;/p&gt;</comment>
                            <comment id="34076" author="monodera" created="Wed, 19 Jul 2023 21:18:37 +0000"  >&lt;p&gt;We can&apos;t know which proposal ID is assigned for each fiber from a design/config file made, e.g., a year ago as there are no columns for these keys. That&apos;s why I thought we need to provide a dummy value. &lt;/p&gt;</comment>
                            <comment id="34078" author="eric" created="Wed, 19 Jul 2023 21:53:35 +0000"  >&lt;p&gt;I think in that case that None would be appropriate for proposalId.&lt;/p&gt;

&lt;p&gt;Is there no other field for fiberId?&#160; I think overloading a field with a value that is in a completely different domain will be potentially confusing.&#160; These things then become more complicated to handle in software.&lt;/p&gt;</comment>
                            <comment id="34079" author="monodera" created="Wed, 19 Jul 2023 22:37:13 +0000"  >&lt;p&gt;The current master branch of datamodel lists the following items in the DESIGN table (1st extension of pfsDesign file).&lt;/p&gt;


&lt;p&gt; &lt;cite&gt;fiberId 32-bit int&lt;/cite&gt;&lt;br/&gt;
?? catId 32-bit int??&lt;br/&gt;
?? tract 32-bit int??&lt;br/&gt;
?? patch string??&lt;br/&gt;
?? objId 64-bit int??&lt;br/&gt;
?? ra 64-bit float (degrees)??&lt;br/&gt;
?? dec 64-bit float (degrees)??&lt;br/&gt;
?? targetType 32-bit int (enumerated type: e.g. SCIENCE,SKY,FLUXSTD)??&lt;br/&gt;
?? fiberStatus 32-bit int (enumerated type: e.g. GOOD,BROKENFIBER,BLOCKED,BLACKSPOT)??&lt;br/&gt;
?? pfiNominal pair of 32-bit floats (millimeters on the PFI)??&lt;/p&gt;



&lt;p&gt;The fiberId is already present, and I&apos;m adding proposalId and obCode in the table.&lt;/p&gt;</comment>
                            <comment id="34081" author="monodera" created="Thu, 20 Jul 2023 00:45:48 +0000"  >&lt;p&gt;After having a chat with &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=eric&quot; class=&quot;user-hover&quot; rel=&quot;eric&quot;&gt;eric&lt;/a&gt; , we agreed to put a dummy string (&quot;N/A&quot;) rather than None to indicate the datatype explicitly. I&apos;ll make a change and make a commit. I guess I&apos;ll also need to be consistent in dummyCableB pfsDesign (and it should be straightforward).&lt;/p&gt;</comment>
                            <comment id="34947" author="monodera" created="Thu, 14 Sep 2023 22:12:41 +0000"  >&lt;p&gt;Commits have been merged into master branches of datamodel, drp_stella, and pfs_utils.&lt;/p&gt;</comment>
                    </comments>
                    <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|zzszf9:</customfieldvalue>

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

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