Closed Bug 1411921 Opened 8 years ago Closed 8 years ago

Auto disable snippets that have passed their publish end date

Categories

(Snippets :: Service, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: giorgos, Assigned: giorgos)

Details

(Whiteboard: 2017Q4)

Attachments

(1 file)

Currently the service has a lot of snippets that are passed their publish end date but have not been disabled by the editors. >>> Snippet.objects.filter(disabled=False).count() 861 >>> Snippet.objects.filter(disabled=False, publish_end__lte = now).count() 775 This situation gains us nothing and increases the DB and CPU use, to fetch the queries and to calculate the available snippets accordingly. To solve this we should create an automated cron job to auto-disable snippets that have passed their publish end date.
Assignee: nobody → giorgos
Status: NEW → ASSIGNED
Attached file PR 310
Commits pushed to master at https://github.com/mozmeao/snippets-service https://github.com/mozmeao/snippets-service/commit/2ffe098c60426adbf62831bf33564ec2a313693b [Fix Bug 1411921] Auto disable snippets that have passed their publish end date. https://github.com/mozmeao/snippets-service/commit/d3fce97603deda34a6af9426dc7cc04cc3c036f7 Merge pull request #310 from glogiotatidis/auto-disable-snippets [Fix Bug 1411921] Auto disable snippets that have passed their publish end date.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: