Code review comment for ~ack/maas:test-results-limits

Revision history for this message
Lee Trager (ltrager) wrote :

I forgot that we already have code written to property list a scripts full history, accounting for storage devices. You should be able to do something like this

for script_result in new_script_set:
    if len(script_result.history) > limit:
        script_result.history[limit:].delete()

review: Needs Fixing

« Back to merge proposal