mirror of
https://github.com/bugsink/bugsink.git
synced 2026-05-20 23:28:42 -05:00
Remove some 'maybe' comments for 'drop immediately'
This commit is contained in:
@@ -203,11 +203,6 @@ class BaseIngestAPIView(View):
|
||||
# "what is a limit anyway, if you can go either over it, or work is done before the limit is reached")
|
||||
evict_for_max_events(project, timestamp, project_stored_event_count)
|
||||
|
||||
# project.retention_last_eviction = timestamp
|
||||
# project.retention_max_total_irrelevance
|
||||
# TODO-if-the-above: actually save the project? or use an update call?
|
||||
# TODO-if-the-above: the idea of cooling off the max_total_irrelevance
|
||||
|
||||
# NOTE: an event always has a single (automatically calculated) Grouping associated with it. Since we have that
|
||||
# information available here, we could add it to the Event model.
|
||||
event, event_created = Event.from_ingested(
|
||||
|
||||
@@ -64,11 +64,6 @@ class Project(models.Model):
|
||||
quota_exceeded_until = models.DateTimeField(null=True, blank=True)
|
||||
retention_max_event_count = models.PositiveIntegerField(default=10_000)
|
||||
|
||||
# bookkeeping of the eviction algorithm
|
||||
# this will be needed if/when we take an approach of 'drop immediately'
|
||||
# retention_last_eviction = models.DateTimeField(null=True, blank=True)
|
||||
# retention_max_total_irrelevance = models.PositiveIntegerField(null=True, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user