<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:30:14 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-941] Create mechanism to manage the opDB update</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-941</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;opDB schema is defined by `model.py` and a new database can be created by using this definition. Currently, however, there is no mechanism to update the existing opDB with records when this schema definition is updated, which happens frequently. The procedure is (semi-) automated if possible.&#160;&lt;/p&gt;

&lt;p&gt;Database migration tools (such as &lt;em&gt;alembic&lt;/em&gt;)&#160;are options, but we may like easier and simpler way. Anyway, we should start from finding out what kind of options we have for this purpose.&lt;/p&gt;

&lt;p&gt;Furthermore, we like to manage the installation of the opDB package through `eups`.&lt;/p&gt;</description>
                <environment></environment>
        <key id="14297">INSTRM-941</key>
            <summary>Create mechanism to manage the opDB update</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="kiyoto.yabe">Kiyoto Yabe</reporter>
                        <labels>
                            <label>opDB</label>
                    </labels>
                <created>Mon, 6 Apr 2020 03:34:14 +0000</created>
                <updated>Mon, 12 Oct 2020 04:24:52 +0000</updated>
                            <resolved>Mon, 12 Oct 2020 04:24:52 +0000</resolved>
                                                                    <component>spt_operational_database</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="16982" author="kiyoto.yabe" created="Mon, 6 Apr 2020 07:34:11 +0000"  >&lt;p&gt;Just a copy from my slack comment about &lt;em&gt;alembic&lt;/em&gt;&#160;--&lt;/p&gt;

&lt;p&gt;I took a look at &lt;em&gt;alembic&lt;/em&gt; ( &lt;em&gt;sqlalchemy-migrate&lt;/em&gt; exists but people recommend &lt;em&gt;alembic&lt;/em&gt; because &lt;em&gt;sqlalchemy-migrate&lt;/em&gt; seems to be no longer maintained). It is basically simple and easy to use. After some setups and initialization, only two commands are basically used:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;alembic revision --autogenerate -m &quot;comment or version name&quot; (to generate a migration script reading &lt;tt&gt;models.py&lt;/tt&gt; and detecting diff)&lt;/li&gt;
	&lt;li&gt;alembic upgrade head (to apply the change to DB using the generated script)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I tested on my local opDB and found that some use-cases were good but some were not. I think we need to edit the script by hand for what we want. The generated scripts should be on the repository and tracked. I&apos;m still not sure whether this covers all we want, but I feel this helps us for what we want to do to some extent.&#160;&lt;br/&gt;
&#160;&lt;/p&gt;</comment>
                            <comment id="17509" author="kiyoto.yabe" created="Wed, 5 Aug 2020 21:29:25 +0000"  >&lt;p&gt;I have pushed my first proposal on the branch.&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|zzs154:</customfieldvalue>

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