-
Notifications
You must be signed in to change notification settings - Fork 92
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
Create flag to disable Discussions configuration #383
Comments
assign me |
@asadazam93 should be in the conversation here, as there are already several flags related to Discussions. |
@arbrandes @asadazam93 are there flags beside those
listed in openedx/wg-build-test-release/issues/204 Other flags are related is So this how it looks like I assume we want it to look like this: If we hide people might still be accessing it via the url i.e https://apps.olive.zaat.dev/authoring/course/course-v1:zaatdev+101+1/pages-and-resources/discussion/settings So do we need to hide it and disbale the route or only hiding it is enough? In terms of how to implement it, if we just hide it we can probably just add a css/sass role, or through the API, I beleive these boxes are coming from the api:
Of which its response is [
{
"id": "calculator",
"enabled": false,
"name": "Calculator",
"description": "Provide an in-course calculator for simple and complex calculations.",
"allowed_operations": {
"enable": true,
"configure": false
},
"documentation_links": {
"learn_more_configuration": "https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/latest/exercises_tools/calculator.html"
}
},
{
"id": "custom_pages",
"enabled": false,
"name": "Custom pages",
"description": "Provide additional course content and resources with custom pages",
"allowed_operations": {
"enable": false,
"configure": true
},
"documentation_links": {
"learn_more_configuration": "https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/latest/course_assets/pages.html#adding-custom-pages"
},
"legacy_link": "https://studio.olive.zaat.dev/tabs/course-v1:zaatdev+101+1"
},
{
"id": "discussion",
"enabled": true,
"name": "Discussion",
"description": "Encourage participation and engagement in your course with discussions.",
"allowed_operations": {
"enable": true,
"configure": true
},
"documentation_links": {
"learn_more_configuration": "https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/latest/course_components/create_discussion.html"
}
},
{
"id": "progress",
"enabled": true,
"name": "Progress",
"description": "Keep learners engaged and on track throughout the course.",
"allowed_operations": {
"enable": true,
"configure": true
},
"documentation_links": {
"learn_more_configuration": "https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/latest/course_assets/pages.html?highlight=progress#hiding-or-showing-the-wiki-or-progress-pages"
}
},
{
"id": "textbooks",
"enabled": false,
"name": "Textbooks",
"description": "Create and manage a library of course readings, textbooks, and chapters.",
"allowed_operations": {
"enable": false,
"configure": true
},
"documentation_links": {
"learn_more_configuration": "https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/latest/course_assets/textbooks.html"
},
"legacy_link": "https://studio.olive.zaat.dev/textbooks/course-v1:zaatdev+101+1"
},
{
"id": "wiki",
"enabled": false,
"name": "Wiki",
"description": "Enable learners to access, and collaborate on course-related information.",
"allowed_operations": {
"enable": true,
"configure": true
},
"documentation_links": {
"learn_more_configuration": "https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/latest/course_assets/course_wiki.html"
}
}
] So if we remove the discussion tab then we could change the CMS not affectring the this MFE, but this would probably lead to the route exists. May be there is already a config that disbale that tab? |
@arbrandes / @ghassanmas I am trying to understand the requirement here. Why do you want to remove the discussions tab from the course authoring MFE? The discussions settings are not specific for the new discussions MFE. Those settings are also applicable for the old legacy discussions, we just moved out the discussion settings from advanced settings and put them in the discussions card in the course authoring MFE. Configuring discussions via course authoring does not mean that it would be configured for the new discussions MFE. |
Enabling |
That clears things up a whole lot, thanks! We'd been under the impression the settings were exclusive to the new discussions MFE. To be clear, that makes this issue moot. The point was to make this MFE usable in Olive without having to bring in frontend-app-discussions, which we can evidently do. Thanks all (in particular @ghassanmas) for the input. |
In order to include course-authoring in the next release and still have the Pages & Resources feature, we need a way to disable the frontend-app-discussions configuration.
The text was updated successfully, but these errors were encountered: