LuminosoInsight / sales-engineering-code

Code for sales engineering, particularly for code that will be given to customers
MIT License
0 stars 0 forks source link

Add call to purge older messages #59

Closed sheyvaert closed 6 years ago

sheyvaert commented 6 years ago

This script post messages to the so-called "Evergreen" project to simulate a live Compass project that creates a new batch of unsupervised topics at regular intervals, so sales people will have something to demo. As messages (and classifications) accumulate, the old and tired UI becomes more an more unresponsive.

The present modification adds a step that will delete messages (and classifications) older than a day every time it POSTs a batch of messages. It does so via the little-know (and undocumented) /purge endpoint.

sheyvaert commented 6 years ago

janitor data from Ever-green projects in Staging and Production.