drf-tracking icon indicating copy to clipboard operation
drf-tracking copied to clipboard

Some requests are not recorded

Open vhin0210 opened this issue 6 years ago • 2 comments

I can't find some requests and I have a feeling it's because of the path field max length is too small?

vhin0210 avatar May 17 '19 15:05 vhin0210

I can confirm that this is the case for me. The path can get very long in this particular application. This results in a database error (postgresql):

2019-06-05 10:40:31.930 CEST [3437] user@db ERROR: value too long for type character varying(200) 2019-06-05 10:40:31.930 CEST [3437] user@db STATEMENT: INSERT INTO "rest_framework_tracking_apirequestlog" (...)

And the only field that is 200 long wihich has a value that doesn't fit is "path".

drf-tracking seems to handle this by not inserting the data.

Is there a workaround to this? It should be possible to change the datatype for the "path" field from varchar to text. But i'd rather change it in a model if possible.

wbloos avatar Jun 06 '19 13:06 wbloos

https://github.com/aschn/drf-tracking/pull/140

gryevns avatar Jun 10 '19 13:06 gryevns