-
Notifications
You must be signed in to change notification settings - Fork 77
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
[DONE] Fix the bug in the playlist application #1000
[DONE] Fix the bug in the playlist application #1000
Conversation
ed1d9f4
to
f28fab4
Compare
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
27b76bf
to
7afe706
Compare
Ok pour moi niveau fonctionnel - RAS |
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.
Pas testé, mais quelques remarques à apporter :)
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.
quelques remarques ci-dessous
@@ -0,0 +1,6 @@ | |||
{% load i18n %} |
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.
pas besoin d'i18n a priori sur cette page ^^
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.
On utilise directement ce template pour remplacer la page en AJAX. C'est fait dans la vue get_video
de l'app playlist.
pod/enrichment/templates/enrichment/video_enrichment_page_aside.html
Outdated
Show resolved
Hide resolved
pod/enrichment/templates/enrichment/video_enrichment_page_aside.html
Outdated
Show resolved
Hide resolved
<div class="card-body card-text text-center"> | ||
{% include "videos/link_video.html" with hide_favorite_link=True %} | ||
</div> | ||
<div class="card" id="card-enrichment-informations" style="display: none;"> |
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.
On pourrait regarder implement si enrichment est dans l'URL courant, fait un truc du genre :
{% if "enrichment" in request.URL %} {% include information %}{% endif %}
C'est effectivement fonctionnel pour ce template
On a besoin de la div pour pouvoir refresh à chaque vidéo :
|
<div class="card-body card-text text-center"> | ||
{% include "videos/link_video.html" with hide_favorite_link=True %} | ||
</div> | ||
<div class="card" id="card-enrichment-informations" style="display: none;"> |
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.
as-tu tester ce point ?
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.
Good !
Ah non, un test ne passe pas. Corrige comme suit pour le type de retour : from typing import Union
def function() -> Union[str, None]: |
Oui |
On a besoin de la div des deux côtés. Sinon, on aura aucun moyen de l'afficher pour les vidéos enriches lors de la lecture de la playlist. |
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.
ok pour moi, le point sur l'inclusion des templates en cas de vidéos enrichies reste un mystère mais qui n'enleve en rien la quelité de cette contribution. Merci bcp
* Fix the playlists sorting * 🐛 Fix the autoplay * 🐛 Fix enriched videos in playlists * 🎨 Fix flake8 * 🐛 Fix the error 500 for AnonymousUser in playlist * 🐛 Fix enriched videos in playlists * 🐛 Fix the numberPlaylists condition * 🔒 Fix GitGuardian * 🎨 Add line at the end file * 🎨 Replace 'var' by 'let' when it is possible * 🎨 Rename illegible identifier * Add aria-hidden attribute * 📝 Add JSDocs * 📝 Add PyDocs * 🎨 Improve condition * Create a real request error * Rename 'enrichmentinformations_card.html to 'enrichment_informations_card_aside.html' * 🎨 Fix flake8 * 🐛 Replace enrichmentinformations_card by erichment_informations_card_aside * Remove unused load * Re-add aria-hidden attributes * Update the quotation marks * 📝 Update PyDoc * 🐛 Fix coverage
Before sending your pull request, make sure the following are done :
develop
branch.[WIP]
or[DONE]
.Bug fixes
AnonymousUser
in playlist.