metalogico / django-sonar

The missing debug tool for django
MIT License
183 stars 3 forks source link

Feature request: filtering requests #11

Open eriktelepovsky opened 2 months ago

eriktelepovsky commented 2 months ago

Hello.

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

Thank you.

metalogico commented 2 months ago

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 ;) )

eriktelepovsky commented 2 months ago

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'))
metalogico commented 1 month ago

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