-
Notifications
You must be signed in to change notification settings - Fork 305
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
Changes for MDL-80677 #868
Conversation
✅ Deploy Preview for moodledevdocs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the deploy preview of this PR
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Andrew! This looks good to me overall.
Should we also update the Deprecation policy to provide information on using the core/deprecated
attribute and core/deprecation
during initial and final deprecation?
I considered this but I don't know. It's not intended to replace the current deprecation, but to aid it. Maybe a note like:
|
The buggest problem with Moodle deprectation messages is that people tell you to stop doing something without telling you what to do instead. If what to do instead is not requred information, this is moving deckchairs on the Titanic. Certainly, all the give examples in the new docs should set a good example "reason: 'No longer required'," is so bad, it is basically a parody, right? |
Thanks for the feedback Tim. I thought about making this a required field, but there is not always a replacement. Sometimes things are just removed and that should be mentioned in the reason. Do you have a better suggestion on how we can do this? |
When you say "I thought about making this a required field, but there is not always a replacement. Sometimes things are just removed and that should be mentioned in the reason." you are thinking about things from the wrong angle. Think about things from the point of view as a plugin developer. You don't just call Moodle core APIs for a laugh. Any time you are calling a core API, an you are trying to achieve some end goal on behalf of the user. Generally, Moodle does not make it impossible to do things that were possible in the past. There must always be some sort of new recommended way to do thin thing that you were doing the old way. Anyway, when you make an API change that broke my plugin, I don't really care why you thought it was a good idea. I just want to know what I should do now in my code. So, that should be the required information. |
8e08c0e
to
7d8da43
Compare
No description provided.