Closed stephsachrajda closed 8 months ago
The other consideration would be to go the full distance but place it behind a configuration option to allow for an easier transition.
As discussed in person, I would be in favour of this so we can leave the old behaviour (or at least make it possible to restore the old behaviour).
Background
Currently, deprecation toolkit uses
class.name.underscore
to name the files where it stores the deprecations, which works well in most cases, but means that in the case of subclasses in test files (or typos), the actual files containing the deprecations are hard to find.The Change
This allows the user to configure the file path/name format for their setup. It would allow folks to use the full file paths if that's easier for them and customize in any way that suits while maintaining the current behaviour as the default.