django-sonar icon indicating copy to clipboard operation
django-sonar copied to clipboard

Feature request: filtering requests

Open eriktelepovsky opened this issue 10 months ago • 3 comments

Hello.

Filtering requests by method, path and status (maybe date as well) would be really useful!

Thank you.

eriktelepovsky avatar Apr 19 '24 19:04 eriktelepovsky

Hello.

This is a bit tricky to achieve because the data is collected in a structured way inside a json field. I'll look into it. ( for instance, on Laravel Telescope is not possible ;) )

metalogico avatar Apr 20 '24 08:04 metalogico

It is stored separately as charfields in SonarRequest, right?

class SonarRequest(models.Model):
    verb = models.CharField(max_length=255, verbose_name=_('Verb'))
    path = models.CharField(max_length=255, verbose_name=_('Path'))
    status = models.CharField(max_length=255, verbose_name=_('Status'))

eriktelepovsky avatar Apr 24 '24 12:04 eriktelepovsky

Yes I will add a filter on path, verb and status in the next release. thanks

metalogico avatar May 23 '24 14:05 metalogico