Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
Bug Fixes 🐛
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
sentrivana
left a comment
There was a problem hiding this comment.
I haven't looked at the surrounding code so maybe this is already there, but: even if we don't emit a deprecation warning, there should still be some way to tell via conventions that an attribute is deprecated so that packages using this can act on it if they choose to. Something like a set of the deprecated names, or a function that returns True/False based on whether the supplied attribute name is deprecated.
Lms24
left a comment
There was a problem hiding this comment.
Two thoughts:
- I don't think, sentry-conventions should be user-facing. For example, I wouldn't expose these constants via the python SDK (we don't do this in JS either). Talked a bit with @alexander-alderman-webb yesterday and I don't think we do this, but just wanted to mention anyway.
- Let's make sure we're aligned with product. I imagine being aware of deprecations in this package is useful for the Sentry backend and Snuba (if it were JS I'd like to know about deprecations when linting my code for example).
Happy to leave everything up to you but let's make sure the solution works for SDKs and product
The JSON models hold deprecation info. The metadata written to Python contains classes for deprecation information which are filled from the models by the codegen and can be used to check for deprecation. Example in the generated attributes. This |
Description
Remove metaclass that emits runtime deprecation warnings when reading deprecated attributes. Deprecation warnings sent this way can be passed on to users through pytest. This behaviour is not desirable as attributes likely will not be fully removed from conventions.
PR Checklist
yarn testand verified that the tests pass.yarn generateto generate and format code and docs.