Browse Source

feat(backup): Remove `org_role` from `sentry.team` on import (#71069)

This completes the too-early attempt from this PR:
https://github.com/getsentry/sentry/pull/69003

Closes https://github.com/getsentry/sentry/issues/66247

---------

Co-authored-by: Cathy Teng <cathy.teng@sentry.io>
Alex Zaslavsky 10 months ago
parent
commit
182bf20a0e
2 changed files with 2 additions and 4 deletions
  1. 1 2
      fixtures/backup/fresh-install.json
  2. 1 2
      src/sentry/backup/imports.py

+ 1 - 2
fixtures/backup/fresh-install.json

@@ -214,8 +214,7 @@
     "status": 0,
     "actor": 1,
     "idp_provisioned": false,
-    "date_added": "2023-06-22T22:54:28.821Z",
-    "org_role": null
+    "date_added": "2023-06-22T22:54:28.821Z"
   }
 },
 {

+ 1 - 2
src/sentry/backup/imports.py

@@ -64,9 +64,8 @@ logger = logging.getLogger(__name__)
 # each entry in this dict, please leave a TODO comment pointed to a github issue for removing
 # the shim, noting in the comment which self-hosted release will trigger the removal.
 DELETED_FIELDS: dict[str, set[str]] = {
-    # TODO(getsentry/sentry#66247): Remove once self-hosted 24.4.0 is released.
     # The actor field should be retained until 24.6.0
-    "sentry.team": {"org_role", "actor"},
+    "sentry.team": {"actor"},
     # TODO(mark): Safe to remove after july 2024 after self-hosted 24.6.0 is released
     "sentry.rule": {"owner"},
     # TODO(mark): Safe to remove after july 2024 after self-hosted 24.6.0 is released