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

Add annotations for CourseYoutubeBlockedFlag #270

Open
pdpinch opened this issue Aug 6, 2021 · 10 comments
Open

Add annotations for CourseYoutubeBlockedFlag #270

pdpinch opened this issue Aug 6, 2021 · 10 comments
Labels

Comments

@pdpinch
Copy link
Member

pdpinch commented Aug 6, 2021

The CourseYoutubeBlockedFlag video config model isn't documented. We're using it on mitxonline, so it would be nice to capture how it's used.

https://github.com/edx/edx-platform/blob/8aedebcdb29bb16b94786503c12a52b07c73dff5/openedx/core/djangoapps/video_config/models.py#L96-L102

@asadiqbal08
Copy link

asadiqbal08 commented Oct 8, 2021

Is CourseYoutubeBlockedFlag currently using in mitxonline ?
Do we need to document it somewhere in this story ? any link where need to do such ?

@asadiqbal08 asadiqbal08 self-assigned this Oct 8, 2021
@pdpinch
Copy link
Member Author

pdpinch commented Oct 8, 2021

When we exported courses from edx.org and imported them into mitxonline, we found that the videos played from YouTube on mitxonline, instead of from cloudfront, as they do on edx.org. After a lot of experimentation, we hit on setting CourseYoutubeBlockedFlag for each course so that the YouTube videos wouldn't play, and users were presented with cloudfront.

See, for example, https://courses-qa.mitxonline.mit.edu/admin/video_config/courseyoutubeblockedflag/

The setting isn't documented, and I'm not really sure what it was designed for. I'm hoping that by doing some research in the codebase, and maybe talking to some folks at edX, we can find out and get it documented. I'm not even sure it's the best way to achieve our goals. It is annoying that we need to create a waffle flag for each course run.

@asadiqbal08
Copy link

asadiqbal08 commented Oct 12, 2021

@pdpinch that is the particular PR basically introduced this change set. The description over this PR pointing these settings are specific to courses (that really annoying to set this flag for every courses). Other side, I found very limited use of this feature only under this block only

Here two things comes in my mind:

1- Should we only need to document this behavior at some specific file/location for our reference ?
OR
2- Are we thinking to extend this feature set by introducing a generic environment / setting toggle variable that not be specific to any course (along with this implementation) ?

@pdpinch
Copy link
Member Author

pdpinch commented Oct 12, 2021

Thanks for finding the PR. I'm a little surprised to see that this flag was added exactly for the reason we're using it: courses that have lost access to their YouTube channels.

I'm sorry I wasn't clear in the issue description. What I'm really looking for is to have the code annotated the way waffle flags are supposed to be annotated (OEP-17), so the documentation shows up in https://edx.readthedocs.io/projects/edx-platform-technical/en/latest/index.html

@asadiqbal08
Copy link

@pdpinch , I get your point but the issue is that, The way, CourseYoutubeBlockedFlag , is implemented in edx platform is bit different than waffle flags annotations. Actually, they separately defined the configurations models for them please see this file that is different from this waffle annotation logic for course level.

I am not sure why it was required earlier to define these models instead of waffle annotation.

Can you redirect me to edx channel where I can ask this question and direction where we can document such implemented stuff ?

@pdpinch
Copy link
Member Author

pdpinch commented Oct 13, 2021

I would suggest posting to https://discuss.openedx.org/c/development/11 because it seems to get more attention than Slack. On Slack, you might consider #documentation or #video.

I think Regis Behmo and Rob Raposa are the experts on annotations. I don't remember who is expert on video.

@asadiqbal08
Copy link

@asadiqbal08
Copy link

@pdpinch I am thinking to get follow up on early basis over the slack channels as you mentioned but It is requiring me to use edx credentials ( that I may not have), Is that any alternative ?

@pdpinch
Copy link
Member Author

pdpinch commented Nov 29, 2021

I believe anyone can create an account on openedx.slack.com. It shouldn't require edx credentials. There should be a link somewhere on openedx.org to create an account.

@shaidar
Copy link
Collaborator

shaidar commented Jan 5, 2022

@pdpinch Does anyone need to ask edx again about this or should we close the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants