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

Include author, if possible, when migrating to content bank #37

Closed
wants to merge 1 commit into from

Conversation

sarjona
Copy link
Member

@sarjona sarjona commented Jun 8, 2021

Content in the content bank will be migrated taking the user who created the mod_hvp as author (when this information exists in logs).

Content in the content bank will be migrated taking the user who
created the mod_hvp as author (when this information exists in logs).
@sarjona sarjona linked an issue Jun 8, 2021 that may be closed by this pull request
Copy link
Contributor

@doctorlard doctorlard left a comment

Choose a reason for hiding this comment

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

Could the author information come from mdl_files instead, or in the case where it's not found in the logs?

@sarjona
Copy link
Member Author

sarjona commented Aug 10, 2021

@doctorlard The mod_hvp stores the H5P content in database so there is no .h5p file in mdl_files... That's why the only approach we can use here (or, at least, the only one I was able to find), is trying to find the author in the logs :-(

@doctorlard
Copy link
Contributor

I'm working on something that can try and get the user id from files, or fall back to the first user with moodle/contentbank:manageowncontent or moodle/contentbank:manageanycontent - which should be an editingteacher or manager/coursecreator respectively.

@sarjona
Copy link
Member Author

sarjona commented Nov 29, 2022

I'm closing this because a new PR with more cases has been sent: #46

@sarjona sarjona closed this Nov 29, 2022
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