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

add drop_old_partitions crontabber job & test; bug 1014128 #2070

Closed
wants to merge 26 commits into from

Conversation

phrawzty
Copy link
Contributor

@rhelmer r?

(Please be gentle.)

http://socorro.readthedocs.org/en/latest/databaseadminfunctions.html#drop
-old-partitions
See https://bugzilla.mozilla.org/show_bug.cgi?id=1014128
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you! Thank you for using this space to write a really good description with good links.

@peterbe
Copy link
Contributor

peterbe commented Jun 2, 2014

Sorry, I hijacked this PR review.

A couple of nits but r- on the lack of tests of the actual PG "content" and risk of a lingering table.

# Determine date of Monday preceeding year-old-date.
# This is an add operation but of a negative value, so subtraction.
year_old_monday = one_year_ago + timedelta(days=delta_previous_monday)

Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nit because this code works fine but I find it a little confusing (comments help here 👍 ) - dateutil.relativedelta has weekday instances, this might read a little better if you use MO to get the previous Monday.

unlinks the nightly builds report from the UI and removes the URL route so the page cannot be accessed directly. Reverting this will restore functionality. A follow up bug will be filed to remove the code generating this report.
@lonnen
Copy link
Contributor

lonnen commented Jun 18, 2014

@phrawzty needs rebase

lonnen and others added 18 commits June 18, 2014 16:31
Removes the unlinked view for the nightly builds report. This leaves the model and api call intact; it is less clear who is using that and how.
At startup, these would be S98socorro-*.pid and log, and if you did
'service socorro-foo start' it would just be socorro-*.pid. This unifies
it by stripping S?? prefixes.
…fig-in-deploy

deploy: Point crontabber partitioning at ini.
…t-install-src-doc

bug 1027664 - split dev/prod install docs
…alize-correlations-module

Bug1025987 normalize correlations module
make it explicit where manage.py is, and pass --noinput to syncdb
@phrawzty
Copy link
Contributor Author

Oh god this is some nonsense.

@phrawzty phrawzty closed this Jun 24, 2014
@phrawzty phrawzty deleted the bug1014128 branch July 15, 2014 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants