You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #166 is successfully added, most import/export operations will be successfully described the single __relocation_scope__ attribute on Sentry models. There are, however, a small smattering of Sentry models that require more nuanced handling. In particular, instances of the model may sometimes fit better in one scope or another, depending on that particulars of that instance itself.
Consider NotificationAction. The naive thing to do would be to give it a global relocation scope, since it depends on Integration and SentryApp. But both of those dependencies are actually optional. That means that for instances of the model where at least one is set, that instance is in the global scope. When neither is set, the instance can (and should!) be exported in the organization scope.
The basic outline for how to handle this would be to add a Variable entry to the RelocationScope enum, which would then signal to the exporter/importer that the model definition itself has a special method (perhaps __resolve_relocation_scope__()?) that will derive and return the correct relocation scope for any give instance of the model.
The text was updated successfully, but these errors were encountered:
After #166 is successfully added, most import/export operations will be successfully described the single
__relocation_scope__
attribute on Sentry models. There are, however, a small smattering of Sentry models that require more nuanced handling. In particular, instances of the model may sometimes fit better in one scope or another, depending on that particulars of that instance itself.Consider
NotificationAction
. The naive thing to do would be to give it a global relocation scope, since it depends onIntegration
andSentryApp
. But both of those dependencies are actually optional. That means that for instances of the model where at least one is set, that instance is in the global scope. When neither is set, the instance can (and should!) be exported in the organization scope.The basic outline for how to handle this would be to add a
Variable
entry to theRelocationScope
enum, which would then signal to the exporter/importer that the model definition itself has a special method (perhaps__resolve_relocation_scope__()
?) that will derive and return the correct relocation scope for any give instance of the model.The text was updated successfully, but these errors were encountered: