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] Ptitloup/feature add video token #1052
Conversation
…ll it from edit and views template
…access token model, fix translate
"initial_data.json", | ||
] | ||
|
||
def setUp(self): |
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.
idem : bien noter que setup est réexecuté avant chaque test.
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.
Oui et donc il faut créer à chaque fois la video pour qu'elle soit retrouvée dans les tests...
def setUp(self):
user = User.objects.create(username="pod", password="pod1234pod")
print("VIDEO : %s" % Video.objects.all().count())
[...]
Renvoie à chaque passage 0 même si une vidéo a été créé lors du précédent passage...
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.
Bizarre. Dans les tests de vidéo encode on n’encore les video qu’une seule fois c’est permanent au sein des tests de la même classe.
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.
humm à voir mais en attendant, tu peux valider ma PR :)
…o ptitloup/feature_add_video_token
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 :)
commit 793d1d0 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 13:29:30 2024 +0000 Fixup. Format code with Black commit 6fd6734 Author: Ptitloup <nicolas.can@univ-lille.fr> Date: Thu Feb 15 14:28:59 2024 +0100 [DONE] Ptitloup/feature add video token (EsupPortail#1052) * add video token models, add it in admin, add view to manage token, call it from edit and views template * add access to video with token, improve token list display and add translation * fix indent * add uniq constraints for video access token, add unit test for video access token model, fix translate * add unit test for view, complete unit test for model, improve access token view * add copy to clipboard icon, add video access test view * add js to copy link and embed value * change col size and align middle * improve indent, add translation and pydoc * add info to delete token commit c104e93 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 10:14:37 2024 +0000 Fixup. Format code with Black commit ac8bf7e Author: pampletousse <51699553+pampletousse@users.noreply.github.com> Date: Thu Feb 15 11:14:10 2024 +0100 [DONE] Pampletousse/fix improve bulk update tests (EsupPortail#1053) * Change default sort dashboard videos title into date_added * Change title to type test and add owner test * Change get videos objects * Change values for owner test * Change user for post request * Add test_bulk_update_tags and fix owner bulk update (missing move file) * Fix pep8 * Try to repair test_update_video_owner * Change order of tests + add bulk_delete test * Try to repair bulk_delete test * Try to repair bulk_delete test with user3 videos * add response check of bulk_delete failure * Fix bad value sending to change owner * Fix again test_views not working * Add doc on test_update_video_owner --------- Co-authored-by: pampletousse <sylvain.loppin@grenet.fr> commit 033f7ae Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:39 2024 +0000 Auto-update configuration files commit d588781 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:17 2024 +0000 Fixup. Format code with Black commit 8770413 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:08 2024 +0000 Fixup. Format code with Prettier commit 2d982a8 Author: Olivier Bado-Faustin <bado@unice.fr> Date: Thu Feb 15 10:23:39 2024 +0100 [DONE] Fix dressing Watermark path (EsupPortail#1048) * * Replace `settings.BASE_DIR` by watermark.file.path for video dressing watermark * Some code formatting & docs * Send email to admin on encoding error * * Setup of Video & Audio encoding test case is only called once (This testCase will be 4x faster) * another try to run setup only once * Fix small bug * correct typo * small correction * modify encoding test * * Polish `change video owner` template * move every "mandatory fields" help messagre in a main template to be included * Small change on encoding error handling * Minor QoC * correct typos * Corrections after peer review: * Use django url block * Use {{ owner }} and {{ user }} default str * Various QoC * Add missing parameter types * Specify types of some lists in functions hints * Remove every list content type hint, as they appear only in python >= 3.9
* add video token models, add it in admin, add view to manage token, call it from edit and views template * add access to video with token, improve token list display and add translation * fix indent * add uniq constraints for video access token, add unit test for video access token model, fix translate * add unit test for view, complete unit test for model, improve access token view * add copy to clipboard icon, add video access test view * add js to copy link and embed value * change col size and align middle * improve indent, add translation and pydoc * add info to delete token
commit 793d1d0 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 13:29:30 2024 +0000 Fixup. Format code with Black commit 6fd6734 Author: Ptitloup <nicolas.can@univ-lille.fr> Date: Thu Feb 15 14:28:59 2024 +0100 [DONE] Ptitloup/feature add video token (EsupPortail#1052) * add video token models, add it in admin, add view to manage token, call it from edit and views template * add access to video with token, improve token list display and add translation * fix indent * add uniq constraints for video access token, add unit test for video access token model, fix translate * add unit test for view, complete unit test for model, improve access token view * add copy to clipboard icon, add video access test view * add js to copy link and embed value * change col size and align middle * improve indent, add translation and pydoc * add info to delete token commit c104e93 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 10:14:37 2024 +0000 Fixup. Format code with Black commit ac8bf7e Author: pampletousse <51699553+pampletousse@users.noreply.github.com> Date: Thu Feb 15 11:14:10 2024 +0100 [DONE] Pampletousse/fix improve bulk update tests (EsupPortail#1053) * Change default sort dashboard videos title into date_added * Change title to type test and add owner test * Change get videos objects * Change values for owner test * Change user for post request * Add test_bulk_update_tags and fix owner bulk update (missing move file) * Fix pep8 * Try to repair test_update_video_owner * Change order of tests + add bulk_delete test * Try to repair bulk_delete test * Try to repair bulk_delete test with user3 videos * add response check of bulk_delete failure * Fix bad value sending to change owner * Fix again test_views not working * Add doc on test_update_video_owner --------- Co-authored-by: pampletousse <sylvain.loppin@grenet.fr> commit 033f7ae Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:39 2024 +0000 Auto-update configuration files commit d588781 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:17 2024 +0000 Fixup. Format code with Black commit 8770413 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:08 2024 +0000 Fixup. Format code with Prettier commit 2d982a8 Author: Olivier Bado-Faustin <bado@unice.fr> Date: Thu Feb 15 10:23:39 2024 +0100 [DONE] Fix dressing Watermark path (EsupPortail#1048) * * Replace `settings.BASE_DIR` by watermark.file.path for video dressing watermark * Some code formatting & docs * Send email to admin on encoding error * * Setup of Video & Audio encoding test case is only called once (This testCase will be 4x faster) * another try to run setup only once * Fix small bug * correct typo * small correction * modify encoding test * * Polish `change video owner` template * move every "mandatory fields" help messagre in a main template to be included * Small change on encoding error handling * Minor QoC * correct typos * Corrections after peer review: * Use django url block * Use {{ owner }} and {{ user }} default str * Various QoC * Add missing parameter types * Specify types of some lists in functions hints * Remove every list content type hint, as they appear only in python >= 3.9
* feature for a dyanamic home page * flake * fix model * fixe lang * compilemessages * init data * fix * little fixes * black formatter * [DONE] Fix dressing Watermark path (#1048) * * Replace `settings.BASE_DIR` by watermark.file.path for video dressing watermark * Some code formatting & docs * Send email to admin on encoding error * * Setup of Video & Audio encoding test case is only called once (This testCase will be 4x faster) * another try to run setup only once * Fix small bug * correct typo * small correction * modify encoding test * * Polish `change video owner` template * move every "mandatory fields" help messagre in a main template to be included * Small change on encoding error handling * Minor QoC * correct typos * Corrections after peer review: * Use django url block * Use {{ owner }} and {{ user }} default str * Various QoC * Add missing parameter types * Specify types of some lists in functions hints * Remove every list content type hint, as they appear only in python >= 3.9 * Fixup. Format code with Prettier * Fixup. Format code with Black * Auto-update configuration files * first correction after the first review * Squashed commit of the following: commit c104e93 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 10:14:37 2024 +0000 Fixup. Format code with Black commit ac8bf7e Author: pampletousse <51699553+pampletousse@users.noreply.github.com> Date: Thu Feb 15 11:14:10 2024 +0100 [DONE] Pampletousse/fix improve bulk update tests (#1053) * Change default sort dashboard videos title into date_added * Change title to type test and add owner test * Change get videos objects * Change values for owner test * Change user for post request * Add test_bulk_update_tags and fix owner bulk update (missing move file) * Fix pep8 * Try to repair test_update_video_owner * Change order of tests + add bulk_delete test * Try to repair bulk_delete test * Try to repair bulk_delete test with user3 videos * add response check of bulk_delete failure * Fix bad value sending to change owner * Fix again test_views not working * Add doc on test_update_video_owner --------- Co-authored-by: pampletousse <sylvain.loppin@grenet.fr> commit 033f7ae Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:39 2024 +0000 Auto-update configuration files commit d588781 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:17 2024 +0000 Fixup. Format code with Black commit 8770413 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:08 2024 +0000 Fixup. Format code with Prettier commit 2d982a8 Author: Olivier Bado-Faustin <bado@unice.fr> Date: Thu Feb 15 10:23:39 2024 +0100 [DONE] Fix dressing Watermark path (#1048) * * Replace `settings.BASE_DIR` by watermark.file.path for video dressing watermark * Some code formatting & docs * Send email to admin on encoding error * * Setup of Video & Audio encoding test case is only called once (This testCase will be 4x faster) * another try to run setup only once * Fix small bug * correct typo * small correction * modify encoding test * * Polish `change video owner` template * move every "mandatory fields" help messagre in a main template to be included * Small change on encoding error handling * Minor QoC * correct typos * Corrections after peer review: * Use django url block * Use {{ owner }} and {{ user }} default str * Various QoC * Add missing parameter types * Specify types of some lists in functions hints * Remove every list content type hint, as they appear only in python >= 3.9 * [DONE] Fix dressing Watermark path (#1048) * * Replace `settings.BASE_DIR` by watermark.file.path for video dressing watermark * Some code formatting & docs * Send email to admin on encoding error * * Setup of Video & Audio encoding test case is only called once (This testCase will be 4x faster) * another try to run setup only once * Fix small bug * correct typo * small correction * modify encoding test * * Polish `change video owner` template * move every "mandatory fields" help messagre in a main template to be included * Small change on encoding error handling * Minor QoC * correct typos * Corrections after peer review: * Use django url block * Use {{ owner }} and {{ user }} default str * Various QoC * Add missing parameter types * Specify types of some lists in functions hints * Remove every list content type hint, as they appear only in python >= 3.9 * Fixup. Format code with Prettier * Fixup. Format code with Black * [DONE] Pampletousse/fix improve bulk update tests (#1053) * Change default sort dashboard videos title into date_added * Change title to type test and add owner test * Change get videos objects * Change values for owner test * Change user for post request * Add test_bulk_update_tags and fix owner bulk update (missing move file) * Fix pep8 * Try to repair test_update_video_owner * Change order of tests + add bulk_delete test * Try to repair bulk_delete test * Try to repair bulk_delete test with user3 videos * add response check of bulk_delete failure * Fix bad value sending to change owner * Fix again test_views not working * Add doc on test_update_video_owner --------- Co-authored-by: pampletousse <sylvain.loppin@grenet.fr> * Fixup. Format code with Black * compilemessages * make lang + compilemessages * Squashed commit of the following: commit 793d1d0 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 13:29:30 2024 +0000 Fixup. Format code with Black commit 6fd6734 Author: Ptitloup <nicolas.can@univ-lille.fr> Date: Thu Feb 15 14:28:59 2024 +0100 [DONE] Ptitloup/feature add video token (#1052) * add video token models, add it in admin, add view to manage token, call it from edit and views template * add access to video with token, improve token list display and add translation * fix indent * add uniq constraints for video access token, add unit test for video access token model, fix translate * add unit test for view, complete unit test for model, improve access token view * add copy to clipboard icon, add video access test view * add js to copy link and embed value * change col size and align middle * improve indent, add translation and pydoc * add info to delete token commit c104e93 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 10:14:37 2024 +0000 Fixup. Format code with Black commit ac8bf7e Author: pampletousse <51699553+pampletousse@users.noreply.github.com> Date: Thu Feb 15 11:14:10 2024 +0100 [DONE] Pampletousse/fix improve bulk update tests (#1053) * Change default sort dashboard videos title into date_added * Change title to type test and add owner test * Change get videos objects * Change values for owner test * Change user for post request * Add test_bulk_update_tags and fix owner bulk update (missing move file) * Fix pep8 * Try to repair test_update_video_owner * Change order of tests + add bulk_delete test * Try to repair bulk_delete test * Try to repair bulk_delete test with user3 videos * add response check of bulk_delete failure * Fix bad value sending to change owner * Fix again test_views not working * Add doc on test_update_video_owner --------- Co-authored-by: pampletousse <sylvain.loppin@grenet.fr> commit 033f7ae Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:39 2024 +0000 Auto-update configuration files commit d588781 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:17 2024 +0000 Fixup. Format code with Black commit 8770413 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:08 2024 +0000 Fixup. Format code with Prettier commit 2d982a8 Author: Olivier Bado-Faustin <bado@unice.fr> Date: Thu Feb 15 10:23:39 2024 +0100 [DONE] Fix dressing Watermark path (#1048) * * Replace `settings.BASE_DIR` by watermark.file.path for video dressing watermark * Some code formatting & docs * Send email to admin on encoding error * * Setup of Video & Audio encoding test case is only called once (This testCase will be 4x faster) * another try to run setup only once * Fix small bug * correct typo * small correction * modify encoding test * * Polish `change video owner` template * move every "mandatory fields" help messagre in a main template to be included * Small change on encoding error handling * Minor QoC * correct typos * Corrections after peer review: * Use django url block * Use {{ owner }} and {{ user }} default str * Various QoC * Add missing parameter types * Specify types of some lists in functions hints * Remove every list content type hint, as they appear only in python >= 3.9 * compilemessages * make lang * test reset lang * + nl * [DONE] Fix dressing Watermark path (#1048) * * Replace `settings.BASE_DIR` by watermark.file.path for video dressing watermark * Some code formatting & docs * Send email to admin on encoding error * * Setup of Video & Audio encoding test case is only called once (This testCase will be 4x faster) * another try to run setup only once * Fix small bug * correct typo * small correction * modify encoding test * * Polish `change video owner` template * move every "mandatory fields" help messagre in a main template to be included * Small change on encoding error handling * Minor QoC * correct typos * Corrections after peer review: * Use django url block * Use {{ owner }} and {{ user }} default str * Various QoC * Add missing parameter types * Specify types of some lists in functions hints * Remove every list content type hint, as they appear only in python >= 3.9 * [DONE] Pampletousse/fix improve bulk update tests (#1053) * Change default sort dashboard videos title into date_added * Change title to type test and add owner test * Change get videos objects * Change values for owner test * Change user for post request * Add test_bulk_update_tags and fix owner bulk update (missing move file) * Fix pep8 * Try to repair test_update_video_owner * Change order of tests + add bulk_delete test * Try to repair bulk_delete test * Try to repair bulk_delete test with user3 videos * add response check of bulk_delete failure * Fix bad value sending to change owner * Fix again test_views not working * Add doc on test_update_video_owner --------- Co-authored-by: pampletousse <sylvain.loppin@grenet.fr> * [DONE] Ptitloup/feature add video token (#1052) * add video token models, add it in admin, add view to manage token, call it from edit and views template * add access to video with token, improve token list display and add translation * fix indent * add uniq constraints for video access token, add unit test for video access token model, fix translate * add unit test for view, complete unit test for model, improve access token view * add copy to clipboard icon, add video access test view * add js to copy link and embed value * change col size and align middle * improve indent, add translation and pydoc * add info to delete token * Fixup. Format code with Black * fixe lang * little fixes * [DONE] Fix dressing Watermark path (#1048) * * Replace `settings.BASE_DIR` by watermark.file.path for video dressing watermark * Some code formatting & docs * Send email to admin on encoding error * * Setup of Video & Audio encoding test case is only called once (This testCase will be 4x faster) * another try to run setup only once * Fix small bug * correct typo * small correction * modify encoding test * * Polish `change video owner` template * move every "mandatory fields" help messagre in a main template to be included * Small change on encoding error handling * Minor QoC * correct typos * Corrections after peer review: * Use django url block * Use {{ owner }} and {{ user }} default str * Various QoC * Add missing parameter types * Specify types of some lists in functions hints * Remove every list content type hint, as they appear only in python >= 3.9 * first correction after the first review * [DONE] Fix dressing Watermark path (#1048) * * Replace `settings.BASE_DIR` by watermark.file.path for video dressing watermark * Some code formatting & docs * Send email to admin on encoding error * * Setup of Video & Audio encoding test case is only called once (This testCase will be 4x faster) * another try to run setup only once * Fix small bug * correct typo * small correction * modify encoding test * * Polish `change video owner` template * move every "mandatory fields" help messagre in a main template to be included * Small change on encoding error handling * Minor QoC * correct typos * Corrections after peer review: * Use django url block * Use {{ owner }} and {{ user }} default str * Various QoC * Add missing parameter types * Specify types of some lists in functions hints * Remove every list content type hint, as they appear only in python >= 3.9 * make lang + compilemessages * Squashed commit of the following: commit 793d1d0 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 13:29:30 2024 +0000 Fixup. Format code with Black commit 6fd6734 Author: Ptitloup <nicolas.can@univ-lille.fr> Date: Thu Feb 15 14:28:59 2024 +0100 [DONE] Ptitloup/feature add video token (#1052) * add video token models, add it in admin, add view to manage token, call it from edit and views template * add access to video with token, improve token list display and add translation * fix indent * add uniq constraints for video access token, add unit test for video access token model, fix translate * add unit test for view, complete unit test for model, improve access token view * add copy to clipboard icon, add video access test view * add js to copy link and embed value * change col size and align middle * improve indent, add translation and pydoc * add info to delete token commit c104e93 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 10:14:37 2024 +0000 Fixup. Format code with Black commit ac8bf7e Author: pampletousse <51699553+pampletousse@users.noreply.github.com> Date: Thu Feb 15 11:14:10 2024 +0100 [DONE] Pampletousse/fix improve bulk update tests (#1053) * Change default sort dashboard videos title into date_added * Change title to type test and add owner test * Change get videos objects * Change values for owner test * Change user for post request * Add test_bulk_update_tags and fix owner bulk update (missing move file) * Fix pep8 * Try to repair test_update_video_owner * Change order of tests + add bulk_delete test * Try to repair bulk_delete test * Try to repair bulk_delete test with user3 videos * add response check of bulk_delete failure * Fix bad value sending to change owner * Fix again test_views not working * Add doc on test_update_video_owner --------- Co-authored-by: pampletousse <sylvain.loppin@grenet.fr> commit 033f7ae Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:39 2024 +0000 Auto-update configuration files commit d588781 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:17 2024 +0000 Fixup. Format code with Black commit 8770413 Author: github-actions <github-actions@github.com> Date: Thu Feb 15 09:24:08 2024 +0000 Fixup. Format code with Prettier commit 2d982a8 Author: Olivier Bado-Faustin <bado@unice.fr> Date: Thu Feb 15 10:23:39 2024 +0100 [DONE] Fix dressing Watermark path (#1048) * * Replace `settings.BASE_DIR` by watermark.file.path for video dressing watermark * Some code formatting & docs * Send email to admin on encoding error * * Setup of Video & Audio encoding test case is only called once (This testCase will be 4x faster) * another try to run setup only once * Fix small bug * correct typo * small correction * modify encoding test * * Polish `change video owner` template * move every "mandatory fields" help messagre in a main template to be included * Small change on encoding error handling * Minor QoC * correct typos * Corrections after peer review: * Use django url block * Use {{ owner }} and {{ user }} default str * Various QoC * Add missing parameter types * Specify types of some lists in functions hints * Remove every list content type hint, as they appear only in python >= 3.9 * test reset lang * fix last conflicts * make lang * make lang * add visible field * fix default block * fix flake * remove test events_next.html * bugfix after review * flake8 and unit test * bugfix unit test * add unit test and bugfix * add unit test main views * add unit test main views * remove tempate last videos and some variables * update after review * fix error block template * fix after review * fix card_list and lang * pydoc fix and translation --------- Co-authored-by: Valentin Sabatier <valentin.sabatier@hotmail.fr> Co-authored-by: Olivier Bado-Faustin <bado@unice.fr> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: pampletousse <51699553+pampletousse@users.noreply.github.com> Co-authored-by: pampletousse <sylvain.loppin@grenet.fr> Co-authored-by: Ptitloup <nicolas.can@univ-lille.fr> Co-authored-by: Valentin Sabatier <62725910+vsabatie@users.noreply.github.com> Co-authored-by: Charneau Franck <franck.charneau@univ-lr.fr>
Before sending your pull request, make sure the following are done :
develop
branch.[WIP]
or[DONE]
.