-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utilisation des colonnes dans l'affichage et le filtrage #10875
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c'est un grand oui 💍 1ere passe, jvais checkout pour clarifier mes incertitude
app/components/dossiers/notified_toggle_component/notified_toggle_component.html.haml
Outdated
Show resolved
Hide resolved
e44538d
to
5ec3156
Compare
f409d2b
to
b808eb7
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10875 +/- ##
==========================================
- Coverage 84.51% 84.41% -0.10%
==========================================
Files 1142 1145 +3
Lines 25243 25242 -1
Branches 4715 4703 -12
==========================================
- Hits 21334 21309 -25
- Misses 3909 3933 +24 ☔ View full report in Codecov by Sentry. |
021c285
to
0667184
Compare
0667184
to
b2c108c
Compare
b2c108c
to
87f87dc
Compare
Co-authored-by: mfo <mfo@users.noreply.github.com>
Co-authored-by: mfo <mfo@users.noreply.github.com>
Co-authored-by: mfo <mfo@users.noreply.github.com>
Co-authored-by: mfo <mfo@users.noreply.github.com>
87f87dc
to
5621edc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
première passe
|
||
def self.find(h_id) | ||
Procedure.with_discarded.find(h_id[:procedure_id]).find_column(h_id:) | ||
begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
j'imagine que rails fait sa magie pr cacher le truc, mais j'aimerais tester
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cacher ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qd on deserialize une Column
, ca tappe la db. cf: https://github.com/demarches-simplifiees/demarches-simplifiees.fr/blob/main/app/types/column_type.rb#L20
bref, il y a une n+1. Ça arrive quand on a des filtres/displayed columns (que j'ai compris en cherchant), ça pourrait piquer avec des tableaux un peu plus personnalisés (bcp de displayed_columns).
Mais après recherche, je pense que c'est un cas trop a la marge pour s'en soucier vraiment/maintenant. Je pense qu'on peut accepter cette n+1 et voir si en prod ça devient génant. Qu'en penses-tu ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
j'ai comme toi en local un chargement en dixieme de ms, du coup, je te rejoins et je me dis qu'il vaudrait peut être mieux voir si c est un pb en prod. J'ai un peu peur du cache ...
No description provided.