Skip to content

Do not hide all the elements of the units with graded problems to anonymous users - #22385

Merged
ormsbee merged 1 commit into
openedx:masterfrom
eduNEXT:lmm/publicaccess
Feb 24, 2020
Merged

Do not hide all the elements of the units with graded problems to anonymous users#22385
ormsbee merged 1 commit into
openedx:masterfrom
eduNEXT:lmm/publicaccess

Conversation

@morenol

@morenol morenol commented Nov 22, 2019

Copy link
Copy Markdown
Contributor

Right now the units of a public course are hidden if there is at least a graded activity in them. This is done because a change that was done before the implementation of public_view mechanism for unenrolled users.

I think that since those components don;t have implemented the public_view, it is safe to do this change.

After this change, this is how it looks a unit with a checkbox component and a video.
image

How to test:

  • Create a course.
  • Add a unit with a graded component
  • Enable public access
  • Access in LMS that unit from a public user.

Current behaviour:

The units with graded component are hidden. Somehow the subsections of the course are broken when it is accessed using the links in course outline

Expected behaviour:

Graded components display a message saying that it is only accessible from enrolled users.

@morenol
morenol requested a review from a team November 22, 2019 15:07
@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @morenol! I've created OSPR-3934 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams.

Feel free to add as much of the following information to the ticket:

  • supporting documentation
  • edx-code email threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here.

@openedx-webhooks openedx-webhooks added needs triage open-source-contribution PR author is not from Axim or 2U labels Nov 22, 2019
@morenol
morenol force-pushed the lmm/publicaccess branch 2 times, most recently from 68355b0 to 8f9e1fd Compare November 22, 2019 20:06
@natabene

Copy link
Copy Markdown
Contributor

@morenol Thank you for your contribution. Please let me know once all tests are green.

@natabene

Copy link
Copy Markdown
Contributor

jenkins run all

@openedx-webhooks openedx-webhooks added waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. and removed needs triage labels Nov 22, 2019
@morenol

morenol commented Nov 22, 2019

Copy link
Copy Markdown
Contributor Author

Hello @natabene, all tests are green!

@natabene

Copy link
Copy Markdown
Contributor

@marcotuts Can you give this a quick look?

@openedx-webhooks openedx-webhooks added product review PR requires product review before merging and removed waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. labels Nov 25, 2019
@morenol morenol changed the title Do not hide all the elements of the units with problems to anonymous … Do not hide all the elements of the units with graded problems to anonymous users Nov 26, 2019
@morenol

morenol commented Jan 3, 2020

Copy link
Copy Markdown
Contributor Author

Hello @natabene, any updates on this?

@natabene

natabene commented Jan 6, 2020

Copy link
Copy Markdown
Contributor

@morenol Sorry, no updates yet.

@marcotuts

Copy link
Copy Markdown
Contributor

This can move to engineering review next and should be reviewed eventually by @ormsbee. I have no product feedback on this necessarily. If other work on public views has negated the need for this in the default code im ok to remove but need to double check the implications of this in various cases. Thanks!

@openedx-webhooks openedx-webhooks added awaiting prioritization and removed product review PR requires product review before merging labels Jan 8, 2020
@morenol

morenol commented Feb 17, 2020

Copy link
Copy Markdown
Contributor Author

Hello, any updates on this?

@natabene

Copy link
Copy Markdown
Contributor

@morenol Sorry, no updates yet.

@ormsbee

ormsbee commented Feb 21, 2020

Copy link
Copy Markdown
Contributor

jenkins run all

@ormsbee ormsbee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for your patience. Please rebase (just for a sanity check) and modify your commit message to include some of the context from your PR message. I'll merge after that's done.

@morenol

morenol commented Feb 21, 2020

Copy link
Copy Markdown
Contributor Author

@ormsbee @natabene Rebase done! please trigger the tests again

…users:

Right now the units of a public course are hidden if there is at least a graded activity in them. This is done due to a change(edx@69eeca6) that was done before the implementation of public_view mechanism for unenrolled users.

Since we use public_view now and by default it restricts the unit rendering for anonymous users we do not need to limit the access at this way for anonymous users.
@natabene

Copy link
Copy Markdown
Contributor

jenkins run all

@natabene

Copy link
Copy Markdown
Contributor

Tests won't start for some reason. I will try to figure out why tomorrow.

@edx-status-bot

Copy link
Copy Markdown

Your PR has finished running tests. There were no failures.

@ormsbee
ormsbee merged commit 1c67d61 into openedx:master Feb 24, 2020
@openedx-webhooks

Copy link
Copy Markdown

@morenol 🎉 Your pull request was merged!

Please take a moment to answer a two question survey so we can improve your experience in the future.

@morenol
morenol deleted the lmm/publicaccess branch February 24, 2020 14:41
@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production.

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged open-source-contribution PR author is not from Axim or 2U

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants