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

Hidden duplicated videos end up having empty ACLs #372

Merged
merged 2 commits into from
May 6, 2024

Conversation

ferishili
Copy link
Contributor

This PR fixes #371

Description

Please refer to the issue's description and comments. #371 (comment)

Solution

  • Added a new argument to the methods: get_permanent_acl_rules_for_status and get_acl_rules_for_status called $forceonhidden which is a flag to return the permanent roles even if the visibility is hidden.
    • The reason to add new argument is to maintain the original concept and to not touch any old behavior.
  • if that flag is true then in get_acl_rules_for_status in case of hidden we check first if it is permanent and it is forced to return roles, then we prepare the roles and pass it back as the result.

How to TEST this PR.

  • Make sure you are using duplicate event mode for import videos.
  • Try to import a mixture of hidden and visible videos in a course to a new one, either by Manual import or Course (bulk) Import wizard.
  • Make sure the cronjob is working.
  • You would need to wait for both process_duplicate_event and ultimately process_duplicated_event_visibility_change adhoc tasks to be performed.
    • That means it takes some times for moodle to perform the duplicate event and then when the workflow in opencast is finished the visibility change will take place (so wait until both are done)
  • At the end you should confirm that the imported videos (duplicated) have the same original visibility status (except group) in the new course. (hidden->hidden) (visible->visible) (group->hidden)

Copy link
Collaborator

@justusdieckmann justusdieckmann left a comment

Choose a reason for hiding this comment

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

Hey @ferishili,

I have added to small questions, thank you very much!

classes/local/apibridge.php Show resolved Hide resolved
@justusdieckmann justusdieckmann merged commit 6f00cce into Opencast-Moodle:master May 6, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected behavior by visibility change
2 participants