-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor(documentation): partie 5, ajout de la vue de consultation de détail du modèle document
de l'app documentation
#789
Conversation
lacommunaute/utils/html.py
Outdated
|
||
iframe_regex = r"((<div>)?<iframe[^>]*>.*?<\/iframe>(<\/div>)?)" | ||
|
||
for match, starts_with, ends_with in re.findall(iframe_regex, text, re.DOTALL): |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
6342bcd
to
953df84
Compare
8d7ceac
to
b739176
Compare
8a223e8
to
7e484e8
Compare
b739176
to
793ad84
Compare
7e484e8
to
b4b28bf
Compare
793ad84
to
c5a17d2
Compare
b4b28bf
to
951af0a
Compare
c5a17d2
to
f15f295
Compare
951af0a
to
e241b22
Compare
dea4d1b
to
6ecbc48
Compare
document
de l'app documentation
document
de l'app documentation
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.
LGTM
[ | ||
(lambda document: None, "document_detail_view"), | ||
( | ||
lambda document: setattr(document, "partner", PartnerFactory(for_snapshot=True)) or document.save(), |
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.
Tu peux utiliser un def
pour avoir plusieurs statements, au lieu de jouer avec le fait que setattr
retourne None
🙈
Ça permettrait aussi de faire l’assignement directement, sans passer par setattr. 🤷
<div class="col-12 col-lg-3 vertical-line"> | ||
<p class="h3 text-decoration-none d-inline-block">Les autres fiches du thème {{ document.category.name }}</p> | ||
<ul class="nav nav-tabs flex-column"> | ||
{% for document_in_category in document.category.documents.all %} |
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 qu’on souhaitera exclure document.pk
de la liste ?
e241b22
to
465607d
Compare
6ecbc48
to
5ea7e61
Compare
Issue #765
Description
🎸 Ajout de la vue de detail de
Document
et de ses gabaritsType de changement
🎢 Nouvelle fonctionnalité (changement non cassant qui ajoute une fonctionnalité).
🎨 changement d'UI
Points d'attention
🦺 suite PR #786
🦺 Mise à jour de
breadcrumb
🦺 Ajout d'un test manquant concernant le remplacement des images dans
parse_response_to_soup
🦺 Enrichissement de
parse_response_to_soup
pour rendre les snapshot agnostiques vis-à-vis des dates de mises à jourCaptures d'écran (optionnel)
DocumentDetailView