<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:19:18 UTC 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 add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-2249] Tenant clean up script</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-2249</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;A script is required to clean up FOLIO CI tenants and S3 buckets created by pull requests.   If a PR is in a closed state the tenant and all tenant data should be removed and the S3 bucket should be deleted. &lt;/p&gt;</description>
                <environment></environment>
        <key id="81411">FOLIO-2249</key>
            <summary>Tenant clean up script</summary>
                <type id="10003" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium">Task</type>
                                            <priority id="10001" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p2.svg">P2</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Done</resolution>
                                                        <assignee accountid="5cd423bebc70090d6ce241b1">Ian Hardy</assignee>
                                                                <reporter accountid="5f9abc1eb45b2e007453f423">John Malconian</reporter>
                                    <labels>
                            <label>platform-backlog</label>
                    </labels>
                <created>Tue, 10 Sep 2019 12:29:54 +0000</created>
                <updated>Wed, 3 Jun 2020 16:40:07 +0000</updated>
                            <resolved>Sun, 22 Sep 2019 00:08:36 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                                                            <comment id="193017" author="5cd423bebc70090d6ce241b1" created="Tue, 10 Sep 2019 13:41:41 +0000"  >&lt;ul&gt;
	&lt;li&gt;get a list of tenants&lt;/li&gt;
	&lt;li&gt;derive pr name from tenant name&lt;/li&gt;
	&lt;li&gt;check if associated pr is active&lt;/li&gt;
	&lt;li&gt;if closed: delete tenant, remove s3 bucket w/stripes bundle&lt;/li&gt;
&lt;/ul&gt;
</comment>
                                                            <comment id="193020" author="5f9abc1eb45b2e007453f423" created="Tue, 10 Sep 2019 15:26:51 +0000"  >&lt;p&gt;Each S3 bucket has a tag with the a key of &apos;Pr&apos; and a value of &amp;lt;PLATFORM&amp;gt;-PR-NUMBER that can be used to associate the bucket with the PR.    So, for example,  the value of the tag on the S3 bucket used for platform-core PR-383 would be &apos;platform-core-383&apos;&lt;/p&gt;</comment>
                                                            <comment id="193023" author="5cd423bebc70090d6ce241b1" created="Fri, 13 Sep 2019 13:17:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5f9abc1eb45b2e007453f423&quot; class=&quot;user-hover&quot; rel=&quot;5f9abc1eb45b2e007453f423&quot; data-account-id=&quot;5f9abc1eb45b2e007453f423&quot; accountid=&quot;5f9abc1eb45b2e007453f423&quot; rel=&quot;noreferrer&quot;&gt;John Malconian&lt;/a&gt; Any reason to search across regions for these buckets, or can I assume they&apos;ll all be in the same one?&lt;/p&gt;</comment>
                                                            <comment id="193027" author="5f9abc1eb45b2e007453f423" created="Mon, 16 Sep 2019 18:40:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5cd423bebc70090d6ce241b1&quot; class=&quot;user-hover&quot; rel=&quot;5cd423bebc70090d6ce241b1&quot; data-account-id=&quot;5cd423bebc70090d6ce241b1&quot; accountid=&quot;5cd423bebc70090d6ce241b1&quot; rel=&quot;noreferrer&quot;&gt;Ian Hardy&lt;/a&gt; All buckets will be created in the us-east-1 region. &lt;/p&gt;</comment>
                                                            <comment id="193030" author="5cd423bebc70090d6ce241b1" created="Sun, 22 Sep 2019 00:08:36 +0000"  >&lt;p&gt;Deployed tenant cleanup script in container, tested by closing:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/folio-org/platform-core/pull/382&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/folio-org/platform-core/pull/382&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cleans up aws bucket + all tenants associated w/PR (several tenants are possible if pr was updated). output from cleanup job:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Checking pr for tenant: platform_core_382_10

delete tenant function

sucessfully deleted platform_core_382_10

platform-core-382

could not find bucket platform-core-382

Checking pr for tenant: platform_core_382_11

delete tenant function

sucessfully deleted platform_core_382_11

platform-core-382

could not find bucket platform-core-382

Checking pr for tenant: platform_core_382_12

delete tenant function

sucessfully deleted platform_core_382_12

platform-core-382

could not find bucket platform-core-382

Checking pr for tenant: platform_core_382_13

delete tenant function

sucessfully deleted platform_core_382_13

platform-core-382

could not find bucket platform-core-382

Checking pr for tenant: platform_core_382_14

delete tenant function

sucessfully deleted platform_core_382_14

platform-core-382

could not find bucket platform-core-382

Checking pr for tenant: platform_core_382_15

delete tenant function

sucessfully deleted platform_core_382_15

platform-core-382

could not find bucket platform-core-382

Checking pr for tenant: platform_core_382_16

delete tenant function

sucessfully deleted platform_core_382_16

platform-core-382

could not find bucket platform-core-382

Checking pr for tenant: platform_core_382_6

delete tenant function

sucessfully deleted platform_core_382_6

platform-core-382

could not find bucket platform-core-382
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="81267">FOLIO-2056</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="81258">FOLIO-2194</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10144"><![CDATA[Core: Platform]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0044n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1469">CP: sprint 72</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10044" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 10 Sep 2019 13:41:41 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>