Skip to content
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] More 3.5.x fixes #1043

Merged
merged 10 commits into from
Feb 6, 2024
Merged

Conversation

Badatos
Copy link
Collaborator

@Badatos Badatos commented Feb 1, 2024

  • Remove everey useless "card-group" class as there is never several cards grouped with it
  • Code formatting (remove useless spaces & indent)
  • Add z-index to .card-footer-pod to prevent from hide by thumbnail below
  • Add missing globals in some js files
  • Video stats view highlights : color the th linked to the clicked stat from the video
  • Now contrib.role is properly translated in video-info
  • Remove the more_style block (redundant with page_extra_head)
  • Replace some specific breadcrumb by generic {{page_title}} var
  • Polish some templates (directs, directs_all, playlists
  • Shrink vjs toolbar on very small screens (<=400px width)
  • JS : test presence of favorite-btn-link

…cards grouped with it

* Code formatting (remove useless spaces & indent)
* Add z-index to .card-footer-pod to prevent from hide by thumbnail below
* Add missing globals in some js files
* Video stats view highlights : color the th linked to the clicked stat from the video
* Now contrib.role is properly translated in video-info
@Badatos Badatos self-assigned this Feb 1, 2024
* Replace some specific breadcrumb by generic {{page_title}} var
* Polish some templates (directs, directs_all, playlists
* Shrink vjs toolbar on very small screens (<=400pw width)
* JS : test presence of favorite-btn-link
@Badatos Badatos changed the title [WIP] More 3.5.x fixes [DONE] More 3.5.x fixes Feb 2, 2024
@Badatos Badatos marked this pull request as ready for review February 2, 2024 16:05
@AymericJak AymericJak self-requested a review February 5, 2024 09:22
@AymericJak AymericJak added the bug Something isn't working label Feb 5, 2024
pod/bbb/templates/bbb/live_list_meeting.html Show resolved Hide resolved
pod/bbb/templates/bbb/live_list_meeting.html Show resolved Hide resolved
pod/bbb/views.py Show resolved Hide resolved
pod/completion/admin.py Outdated Show resolved Hide resolved
pod/import_video/templates/import_video/add_or_edit.html Outdated Show resolved Hide resolved
pod/video/models.py Show resolved Hide resolved
pod/video/static/js/video_stats_view.js Show resolved Hide resolved
pod/video/templates/videos/footer_link.html Outdated Show resolved Hide resolved
pod/video/templates/videos/video-info.html Show resolved Hide resolved
pod/video/views.py Outdated Show resolved Hide resolved
pod/live/templates/live/event_immediate_edit.html Outdated Show resolved Hide resolved
pod/live/templates/live/events.html Show resolved Hide resolved
pod/locale/fr/LC_MESSAGES/django.po Show resolved Hide resolved
pod/meeting/templates/meeting/add_or_edit.html Outdated Show resolved Hide resolved
pod/video/static/js/video_stats_view.js Show resolved Hide resolved
pod/video/templates/videos/dashboard.html Show resolved Hide resolved
pod/video/templates/videos/video-info.html Outdated Show resolved Hide resolved
@Badatos
Copy link
Collaborator Author

Badatos commented Feb 5, 2024

Merci @AymericJak & @SebastienCozeDev !
Branche à jour, avec vos propositions incluses ^^

<span class="spinner-border text-primary" role="status">
</span>
<i class="bi bi-play-btn" aria-hidden="true"></i>&nbsp;<span
class="spinner-border text-primary" role="status"> </span>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi un espace comme ça dans la span ?

Une utilité ? Ou on pourrait mettre &nbsp;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est juste pour être certain de ne pas altérer le comportement précédent, comme ce n'est pas mon script, vu qu'il y avait des espace j'en ai laissé un ^^.

</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="${gettext(
"Close",
)}"></button>
</div>
<div class="modal-body">
<div class="text-center">
<span class="spinner-border text-primary" role="status">
</span>
<span class="spinner-border text-primary" role="status"> </span>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pareil

@@ -870,7 +870,8 @@ def get_filtered_videos_list(request, videos_list):
return videos_list.distinct()


def get_owners_has_instances(owners):
def get_owners_has_instances(owners: list) -> list:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On peut même spécifier ce que contient la liste : -> list[Owner]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le souci c'est que la classe Owner n'est pas dans ce script, et ca m'embête de l'importer juste pour un doctype :/

Comment on lines 866 to 871
def set_password(self):
"""Encrypt the password if video is protected. An encrypted password cannot be re-encrypted."""
"""
Encrypt the password if video is protected.

An encrypted password cannot be re-encrypted.
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mettre None serait une bonne idée ^^

@@ -870,7 +870,8 @@ def get_filtered_videos_list(request, videos_list):
return videos_list.distinct()


def get_owners_has_instances(owners):
def get_owners_has_instances(owners: list) -> list:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il serait peut-être préférable de mettre le type list[Owner]

Copy link
Collaborator

@AymericJak AymericJak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est bon pour moi !!

Merci beaucoup pour cette myriade de fix 😁

@AymericJak
Copy link
Collaborator

Par contre, pourquoi les tests ne passent plus ?

@AymericJak
Copy link
Collaborator

  File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/django/template/loader_tags.py", line 212, in do_block
    raise TemplateSyntaxError("'%s' tag with name '%s' appears more than once" % (bits[0], block_name))
django.template.exceptions.TemplateSyntaxError: 'block' tag with name 'page_content' appears more than once

* now test translated strings
* one of test users is now staff
@Badatos
Copy link
Collaborator Author

Badatos commented Feb 6, 2024

C'est bon les tests repassent ;)
Apparament ca venait du fait que les tests sur les imports de vidéos étaient faits sur les chaines non traduites.
Avec les chaines traduites ca passe ;)

J'en ai profité pour corriger le test sur RESTRICT_EDIT_IMPORT_VIDEO_ACCESS_TO_STAFF_ONLY : il était envoyé au template sans être utilisé. Maintenant la page affiche bien que l'acces est restreint.

Copy link
Collaborator

@SebastienCozeDev SebastienCozeDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parfait pour moi

@ptitloup ptitloup merged commit d1a3fcc into EsupPortail:develop Feb 6, 2024
5 checks passed
@Badatos Badatos deleted the feature/More_3.5.X_fixes branch February 9, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants