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

Delete duplicate AssetBed records of "HL7MONITOR" asset_class #1595

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

rithviknishad
Copy link
Member

@rithviknishad rithviknishad commented Sep 11, 2023

Proposed Changes

  • Custom Migration to delete every (except 1) AssetBed records of asset_class: "HL7MONITOR" grouped by duplicate (asset_id, bed_id).

Associated Issue

Migrations tested with staging db clone

Before Migration

image

Query Asset Bed table with asset_class=HL7MONITOR, asset_id=71 and bed_id=16 (duplicates)

image

After Migration

image

Query Asset Bed table with asset_class=HL7MONITOR, asset_id=71 and bed_id=16

image

Merge Checklist

  • Tests added/fixed
  • Update docs in /docs
  • Linting Complete
  • Any other necessary step

@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins

@vigneshhari vigneshhari merged commit e83c10b into master Sep 11, 2023
9 checks passed
@vigneshhari vigneshhari deleted the del-duplicate-assetbed-records branch September 11, 2023 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 Para monitor feed duplicity in view CNS button
4 participants