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

RHINENG-13371: remove old package_data from advisory_metadata #1493

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

psegedy
Copy link
Member

@psegedy psegedy commented Sep 30, 2024

Secure Coding Practices Checklist GitHub Link

Secure Coding Checklist

  • Input Validation
  • Output Encoding
  • Authentication and Password Management
  • Session Management
  • Access Control
  • Cryptographic Practices
  • Error Handling and Logging
  • Data Protection
  • Communication Security
  • System Configuration
  • Database Security
  • File Management
  • Memory Management
  • General Coding Practices

Copy link

jira-linking bot commented Sep 30, 2024

Referenced Jiras:
https://issues.redhat.com/browse/RHINENG-13371

@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.03%. Comparing base (d0a7214) to head (82ab3c9).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1493   +/-   ##
=======================================
  Coverage   65.03%   65.03%           
=======================================
  Files         114      114           
  Lines        7880     7880           
=======================================
  Hits         5125     5125           
  Misses       2216     2216           
  Partials      539      539           
Flag Coverage Δ
unittests 65.03% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -0,0 +1,2 @@
delete from advisory_metadata am where package_data is json array = 'f' and not exists (select 1 from advisory_account_data aad where aad.advisory_id = am.id);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
delete from advisory_metadata am where package_data is json array = 'f' and not exists (select 1 from advisory_account_data aad where aad.advisory_id = am.id);
delete from advisory_metadata am where package_data is not json array and not exists (select 1 from advisory_account_data aad where aad.advisory_id = am.id);

@@ -0,0 +1,2 @@
delete from advisory_metadata am where package_data is json array = 'f' and not exists (select 1 from advisory_account_data aad where aad.advisory_id = am.id);
update advisory_metadata set package_data = null where package_data is json array = 'f';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
update advisory_metadata set package_data = null where package_data is json array = 'f';
update advisory_metadata set package_data = null where package_data is not json array;

@psegedy psegedy merged commit 6bbd0eb into RedHatInsights:master Sep 30, 2024
6 of 7 checks passed
@psegedy psegedy deleted the old_package_data branch September 30, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants