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

TransactionAdmin: make it faster by caching description values

Open PetrDlouhy opened this issue 2 years ago • 1 comments

PetrDlouhy avatar Aug 23 '23 14:08 PetrDlouhy

Codecov Report

Patch coverage: 73.33% and project coverage change: -0.16% :warning:

Comparison is base (79703ea) 92.97% compared to head (f13e807) 92.81%. Report is 1 commits behind head on master.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
- Coverage   92.97%   92.81%   -0.16%     
==========================================
  Files          59       59              
  Lines        3829     3844      +15     
  Branches      250      254       +4     
==========================================
+ Hits         3560     3568       +8     
- Misses        224      229       +5     
- Partials       45       47       +2     
Files Changed Coverage Δ
hordak/admin.py 92.70% <73.33%> (-7.30%) :arrow_down:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Aug 23 '23 15:08 codecov-commenter

@PetrDlouhy – As part of my work on #127 I realise that I removed description from list_filter. I removed it because it seemed like the kind of field I would normally search against, but not filter against. However I'm guessing you've been using it as a category field of some kind?

I'm inclined to continue omitting description from list_filter, but could you extend the TransactionAdmin class on your site and customise it as you need?

I think there is also a wider conversation to be had regarding customisability. In particular people wanting to add fields to models. (UPDATE: Created #132)

adamcharnock avatar Jun 30 '24 20:06 adamcharnock

@adamcharnock You are right, that having only few different descriptions would be rather project specific. So yes, I would add it to my TransactionAdmin extension.

PetrDlouhy avatar Jul 01 '24 09:07 PetrDlouhy

Ok, thanks! I'll go ahead and close this then.

adamcharnock avatar Jul 01 '24 10:07 adamcharnock