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 support for MDL-79151 #9

Open
jaypha opened this issue Jan 2, 2024 · 8 comments
Open

Add support for MDL-79151 #9

jaypha opened this issue Jan 2, 2024 · 8 comments

Comments

@jaypha
Copy link

jaypha commented Jan 2, 2024

MDL-79151 provides the ability for custom fields to backup file annotations.

@jaypha
Copy link
Author

jaypha commented Jan 2, 2024

Hello Andrew. I have been working on a fix to integrate MDL-79151 into your plugin. I have noticed that you use save the files using the config context, rather than the instance context, which is normally used.

I would like to ask if there was a specific reason for doing this?

If it is of no consequence, I would like to to change it to use the instance context. It would make backup/restore simpler and more robust. I have figured out how to do it and just need your permission.

Thanks for your time and efforts.
Regards, Jason.

@andrewhancox
Copy link
Owner

andrewhancox commented Jan 3, 2024 via email

@jaypha
Copy link
Author

jaypha commented Jan 4, 2024

I'll leave it with you then. Thanks.

@jaypha
Copy link
Author

jaypha commented Mar 26, 2024

Any word yet on support?

@dmitriim
Copy link

dmitriim commented May 6, 2024

Hi @andrewhancox

it feels like backup and restore would never work for this plugin properly until context is sorted properly. Otherwise there is no way to match context when restoring to a different Moodle instance.

Context issue can be potentially fixed which will require all existing records to be updated. I have created #10

@andrewhancox
Copy link
Owner

The context issue is now resolved so if anyone wants to contribute a fix here they are welcome to

@PM84
Copy link

PM84 commented Jan 7, 2025

I believe this is a potential contribution, but sadly without Pullrequest.

https://github.com/TomoTsuyuki/moodle-customfield_file/tree/fix-issue4

@dmitriim
Copy link

dmitriim commented Jan 7, 2025

@PM84 this branch has been already merged here #11

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

No branches or pull requests

4 participants