Skip to content

Commit

Permalink
Merge branch 'master' into backpressure-redis-cluster-reconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kneeyo1 authored Nov 25, 2024
2 parents 35cac5a + 98db829 commit 6849bff
Show file tree
Hide file tree
Showing 451 changed files with 7,126 additions and 6,504 deletions.
2 changes: 0 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ yarn.lock @getsentry/owners-js-de
/tests/snuba/api/endpoints/test_organization_events_vitals.py @getsentry/visibility
/tests/snuba/api/endpoints/test_organization_tagkey_values.py @getsentry/visibility

/src/sentry/api/endpoints/organization_transaction_anomaly_detection.py @getsentry/data

/src/sentry/spans/ @getsentry/visibility
/tests/sentry/spans/ @getsentry/visibility

Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Django 3.1 on 2019-09-22 21:47

from django.db import migrations, models

from sentry.new_migrations.migrations import CheckedMigration


class Migration(CheckedMigration):

initial = True

dependencies = []

operations = [
migrations.CreateModel(
name="TestTable",
fields=[
(
"id",
models.AutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
("field", models.IntegerField(null=True)),
],
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.fields import SafeRemoveField
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):

dependencies = [
("bad_flow_delete_field_double_pending_app", "0001_initial"),
]

operations = [
SafeRemoveField(
model_name="testtable",
name="field",
deletion_action=DeletionAction.MOVE_TO_PENDING,
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.fields import SafeRemoveField
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):

dependencies = [
("bad_flow_delete_field_double_pending_app", "0002_delete_pending"),
]

operations = [
SafeRemoveField(
model_name="testtable",
name="field",
deletion_action=DeletionAction.MOVE_TO_PENDING,
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.db import models


class TestTable(models.Model):
field = models.IntegerField(default=0, null=False)
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import django
from django.db import migrations, models

import sentry
from sentry.new_migrations.migrations import CheckedMigration


class Migration(CheckedMigration):

initial = True

dependencies = []

operations = [
migrations.CreateModel(
name="FkTable",
fields=[
(
"id",
models.AutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
],
),
migrations.CreateModel(
name="TestTable",
fields=[
(
"id",
models.AutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
(
"fk_table",
sentry.db.models.fields.foreignkey.FlexibleForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="bad_flow_delete_field_pending_with_fk_constraint_app.fktable",
db_index=False,
),
),
],
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.fields import SafeRemoveField
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):
atomic = False

dependencies = [
("bad_flow_delete_field_pending_with_fk_constraint_app", "0001_initial"),
]

operations = [
SafeRemoveField(
model_name="testtable",
name="fk_table",
deletion_action=DeletionAction.MOVE_TO_PENDING,
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from django.db import models

from sentry.db.models import FlexibleForeignKey


class FkTable(models.Model):
field = models.IntegerField(default=0, null=False)


class TestTable(models.Model):
field = models.IntegerField(default=0, null=False)
fk_table = FlexibleForeignKey(FkTable, db_index=False)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from django.db import migrations, models

from sentry.new_migrations.migrations import CheckedMigration


class Migration(CheckedMigration):

initial = True

dependencies = []

operations = [
migrations.CreateModel(
name="TestTable",
fields=[
(
"id",
models.AutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
("field", models.IntegerField()),
],
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.fields import SafeRemoveField
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):
dependencies = [
("bad_flow_delete_field_pending_with_not_null_app", "0001_initial"),
]

operations = [
SafeRemoveField(
model_name="testtable",
name="field",
deletion_action=DeletionAction.MOVE_TO_PENDING,
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.db import models


class TestTable(models.Model):
field = models.IntegerField(default=0, null=False)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Django 3.1 on 2019-09-22 21:47

from django.db import migrations, models

from sentry.new_migrations.migrations import CheckedMigration


class Migration(CheckedMigration):

initial = True

dependencies = []

operations = [
migrations.CreateModel(
name="TestTable",
fields=[
(
"id",
models.AutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
("field", models.IntegerField()),
],
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.fields import SafeRemoveField
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):

dependencies = [
("bad_flow_delete_field_without_pending_app", "0001_initial"),
]

operations = [
SafeRemoveField(
model_name="testtable",
name="field",
deletion_action=DeletionAction.DELETE,
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.db import models


class TestTable(models.Model):
field = models.IntegerField(default=0, null=False)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Django 3.1 on 2019-09-22 21:47

from django.db import migrations, models

from sentry.new_migrations.migrations import CheckedMigration


class Migration(CheckedMigration):

initial = True

dependencies = []

operations = [
migrations.CreateModel(
name="TestTable",
fields=[
(
"id",
models.AutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
],
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.models import SafeDeleteModel
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):

dependencies = [
("bad_flow_delete_model_double_pending_app", "0001_initial"),
]

operations = [
SafeDeleteModel(
name="TestTable",
deletion_action=DeletionAction.MOVE_TO_PENDING,
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.models import SafeDeleteModel
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):

dependencies = [
("bad_flow_delete_model_double_pending_app", "0002_delete_pending"),
]

operations = [
SafeDeleteModel(
name="TestTable",
deletion_action=DeletionAction.MOVE_TO_PENDING,
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.db import models


class TestTable(models.Model):
field = models.IntegerField(default=0, null=False)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Django 3.1 on 2019-09-22 21:47

from django.db import migrations, models

from sentry.new_migrations.migrations import CheckedMigration


class Migration(CheckedMigration):

initial = True

dependencies = []

operations = [
migrations.CreateModel(
name="TestTable",
fields=[
(
"id",
models.AutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
],
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.models import SafeDeleteModel
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):

dependencies = [
("bad_flow_delete_model_without_pending_app", "0001_initial"),
]

operations = [
SafeDeleteModel(
name="TestTable",
deletion_action=DeletionAction.DELETE,
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.db import models


class TestTable(models.Model):
field = models.IntegerField(default=0, null=False)
Empty file.
Loading

0 comments on commit 6849bff

Please sign in to comment.