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

♻️(backend) rename playlist tokens #2377

Merged
merged 6 commits into from
Aug 23, 2023
Merged

Conversation

kernicPanel
Copy link
Member

Purpose

As we now have only playlist tokens, classes, attributes and variables must be renamed for reflecting it.

@kernicPanel kernicPanel force-pushed the backend-playlist-token branch from 26a690b to f246a3f Compare August 17, 2023 08:39
@kernicPanel kernicPanel force-pushed the rename-playlist-tokens branch from 05ac9e3 to da50295 Compare August 17, 2023 13:32
@kernicPanel kernicPanel force-pushed the backend-playlist-token branch from f246a3f to f30c747 Compare August 17, 2023 14:44
@kernicPanel kernicPanel force-pushed the rename-playlist-tokens branch 7 times, most recently from ef74946 to f55d2ee Compare August 18, 2023 10:01
@kernicPanel kernicPanel requested review from polyhb and lunika August 18, 2023 10:08
@kernicPanel kernicPanel marked this pull request as ready for review August 18, 2023 10:08
Copy link
Member

@lunika lunika left a comment

Choose a reason for hiding this comment

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

Part of the code is commented. Did you plan to remove it ?

src/backend/marsha/bbb/utils/tokens.py Outdated Show resolved Hide resolved
@kernicPanel kernicPanel requested a review from lunika August 21, 2023 15:27
@kernicPanel kernicPanel requested a review from lunika August 22, 2023 09:12
@kernicPanel kernicPanel force-pushed the backend-playlist-token branch from 66895ba to fba89e9 Compare August 22, 2023 13:05
@kernicPanel kernicPanel force-pushed the rename-playlist-tokens branch from a1d8271 to 4625321 Compare August 22, 2023 13:05
@kernicPanel kernicPanel force-pushed the backend-playlist-token branch from fba89e9 to d8a338d Compare August 22, 2023 15:39
@kernicPanel kernicPanel force-pushed the rename-playlist-tokens branch 2 times, most recently from 28acfd4 to 57869c9 Compare August 22, 2023 15:56
@kernicPanel kernicPanel force-pushed the backend-playlist-token branch from d8a338d to a681cc8 Compare August 22, 2023 16:00
@kernicPanel kernicPanel force-pushed the rename-playlist-tokens branch from 57869c9 to 4368dc9 Compare August 22, 2023 16:00
Comment on lines 235 to 244
# class PlaylistLtiTokenFactory(InstructorOrAdminLtiTokenFactory):
# """
# LTI resource forged token for instructor or administrators with a playlist access.
# See `marsha.core.views.LTISelectView`.
# """
#
# permissions = factory.SubFactory(ResourcePermissionsFactory, can_update=True)
#
# class Params: # pylint:disable=missing-class-docstring
# playlist = factory.SubFactory(PlaylistFactory)
Copy link
Member

Choose a reason for hiding this comment

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

to be deleted ?

Copy link
Member

Choose a reason for hiding this comment

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

still not ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Surely, you reviewed an outdated diff, as this code has been removed :/

src/backend/marsha/core/tests/api/video/test_stats.py Outdated Show resolved Hide resolved
@kernicPanel kernicPanel force-pushed the backend-playlist-token branch from a681cc8 to 3dcba1d Compare August 22, 2023 16:22
@kernicPanel kernicPanel force-pushed the rename-playlist-tokens branch from 4368dc9 to fa5fa7e Compare August 22, 2023 16:23
@kernicPanel kernicPanel force-pushed the backend-playlist-token branch from 3dcba1d to 4e5b7fb Compare August 22, 2023 16:30
@kernicPanel kernicPanel force-pushed the rename-playlist-tokens branch 2 times, most recently from bdc07af to db27a89 Compare August 22, 2023 16:41
@kernicPanel kernicPanel force-pushed the backend-playlist-token branch from 4e5b7fb to 42fcb94 Compare August 22, 2023 16:47
@kernicPanel kernicPanel requested a review from lunika August 22, 2023 16:48
@kernicPanel kernicPanel force-pushed the rename-playlist-tokens branch from db27a89 to 545a559 Compare August 22, 2023 16:52
Base automatically changed from backend-playlist-token to master August 22, 2023 17:03
To avoid confusion, playlist_id has been renamed to port_to_playlist_id
for portability requests.
As we are now using the playlists as token resource, it can be used for
portability requests.
Permissions names related to playlists were not very intuitive.
As we now have only playlist tokens, the simple_jwt classes must be renamed
for reflecting it.
As we now have only playlist tokens, the simple_jwt attributes must
be renamed for reflecting it.
As we now have only playlist tokens, the simple_jwt attributes must be
renamed for reflecting it.
@kernicPanel kernicPanel force-pushed the rename-playlist-tokens branch from 545a559 to 375affe Compare August 22, 2023 17:05
@kernicPanel kernicPanel merged commit 644ae91 into master Aug 23, 2023
@kernicPanel kernicPanel deleted the rename-playlist-tokens branch August 23, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants