Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWATCH-1613: Fully drop uom column from instance measurements table #2471

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

Sgitario
Copy link
Contributor

@Sgitario Sgitario commented Sep 1, 2023

Jira issue: SWATCH-1613

Description

After https://issues.redhat.com/browse/SWATCH-371 is released, we need to fully drop the uom column from the instance measurements.

Testing

1.- Run the migration using: ./gradlew :liquibaseUpdate. The column uom should have been dropped from the tables instance_measurements and instance_monthly_totals.
2.- Test the rollback by calling twice: ./gradlew :liquibaseRollbackCount -PliquibaseCommandValue=2. The column uom should have been back to the tables instance_measurements and instance_monthly_totals.

@awood awood self-assigned this Sep 1, 2023
@@ -122,8 +122,7 @@
<!-- <include file="liquibase/202308211518-rename-rhel-product-ids.xml"/> -->
<include file="liquibase/202307261851-event-change-event-type-data.xml"/>
<include file="liquibase/202308210806-add-metric-id-instance-measurements.xml"/>
<!-- Uncomment once the above changeset has landed in prod -->
<!-- <include file="liquibase/202308210906-drop-uom-column-instance-measurements.xml"/> -->
<include file="liquibase/202308210906-drop-uom-column-instance-measurements.xml"/>
<include file="liquibase/202308231356-add-metric-id-tally-measurements.xml"/>
<!-- Uncomment once the above changeset has landed in prod -->
<!-- <include file="liquibase/202308231456-drop-uom-column-tally-measurements.xml"/> -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have card for dropping the column off tally_measurements as well? I did a search on the backlog but didn't see anything. If not, should we roll dropping uom on tally_measurements into this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I created this ticket https://issues.redhat.com/browse/SWATCH-1657 for dropping uom from tally_measurements which we can't do yet because https://issues.redhat.com/browse/SWATCH-430 is not released yet.

@ntkathole ntkathole added the QE Unneeded Pull request does not need QE approval label Sep 4, 2023
@Sgitario Sgitario merged commit 14b7e25 into RedHatInsights:main Sep 4, 2023
6 checks passed
@Sgitario Sgitario deleted the SWATCH-1613 branch September 4, 2023 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QE Unneeded Pull request does not need QE approval
Projects
None yet
3 participants