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

Schedule compliance purging #19264

Merged

Conversation

d-m-u
Copy link
Contributor

@d-m-u d-m-u commented Sep 5, 2019

Compliances should be purged, it's on a weekly daily basis just the same as things mentioned in #19264 (comment) but honestly I don't even know anything at all about how often it should happen so feel free to argue

For https://bugzilla.redhat.com/show_bug.cgi?id=1733641 but really it's just up because I want to get people talking about it. @gtanzillo @yrudman @jrafanie maybe @kbrock, I dunno

@miq-bot miq-bot added the wip label Sep 5, 2019
@d-m-u d-m-u force-pushed the schedule_compliance_purge_or_whatever branch 9 times, most recently from c316d01 to 9497005 Compare September 6, 2019 14:52
@d-m-u d-m-u changed the title [WIP] Schedule compliance purging Schedule compliance purging Sep 6, 2019
@d-m-u
Copy link
Contributor Author

d-m-u commented Sep 6, 2019

@miq-bot remove_label wip
@miq-bot add_label enhancement, performance

@d-m-u d-m-u force-pushed the schedule_compliance_purge_or_whatever branch 2 times, most recently from cda6c5f to fe68819 Compare September 6, 2019 15:04
config/settings.yml Outdated Show resolved Hide resolved
@gtanzillo gtanzillo self-assigned this Sep 6, 2019
@d-m-u d-m-u force-pushed the schedule_compliance_purge_or_whatever branch from fe68819 to 51f4a51 Compare September 6, 2019 16:02
@miq-bot
Copy link
Member

miq-bot commented Sep 6, 2019

Checked commit d-m-u@51f4a51 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
5 files checked, 0 offenses detected
Everything looks fine. 🏆

where(arel_table[:timestamp].lteq(older_than))
end

def purge_associated_records(ids)
Copy link
Member

@kbrock kbrock Sep 6, 2019

Choose a reason for hiding this comment

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

TANGENT: I do wonder if we could pass scopes into purge_associated_records

no action required

Copy link
Member

@kbrock kbrock left a comment

Choose a reason for hiding this comment

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

just the 1 business question

@@ -74,6 +74,10 @@
:memory_method_description: High Normal Range of Allocated Memory
:failover:
:rule: discovered
:compliances:
:history:
:keep_compliances: 6.months
Copy link
Member

Choose a reason for hiding this comment

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

@jcarter12 Do you have a suggestion for this value?

Copy link
Member

Choose a reason for hiding this comment

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

response - check with loic

@kbrock kbrock added bug and removed enhancement labels Sep 6, 2019
@d-m-u
Copy link
Contributor Author

d-m-u commented Sep 10, 2019

we can merge and backport to 5.8 for the issue that LJ and Jared were looking at yesterday
:trollface:

@gtanzillo gtanzillo added this to the Sprint 120 Ending Sep 16, 2019 milestone Sep 10, 2019
@gtanzillo gtanzillo merged commit 87935ce into ManageIQ:master Sep 10, 2019
@d-m-u
Copy link
Contributor Author

d-m-u commented Sep 10, 2019

@miq-bot add_label changelog/yes

@d-m-u d-m-u deleted the schedule_compliance_purge_or_whatever branch September 10, 2019 15:02
@simaishi
Copy link
Contributor

simaishi commented Nov 1, 2019

@d-m-u can this be ivanchuk/yes?

@d-m-u
Copy link
Contributor Author

d-m-u commented Nov 1, 2019

@simaishi : should be fine as long as you take the bug that's fixed in 19326 too.
@miq-bot add_label ivanchuk/yes

simaishi pushed a commit that referenced this pull request Nov 1, 2019
@simaishi
Copy link
Contributor

simaishi commented Nov 1, 2019

Ivanchuk backport details:

$ git log -1
commit 7a50e8eba2eebcea1e8a26e8afab989353d6feb2
Author: Gregg Tanzillo <gtanzill@redhat.com>
Date:   Tue Sep 10 09:28:14 2019 -0400

    Merge pull request #19264 from d-m-u/schedule_compliance_purge_or_whatever
    
    Schedule compliance purging
    
    (cherry picked from commit 87935ce0e85cad7dd6f9554136fdc5f69f200d12)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1767808

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 participants