-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into backpressure-redis-cluster-reconfig
- Loading branch information
Showing
451 changed files
with
7,126 additions
and
6,504 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
27 changes: 27 additions & 0 deletions
27
.../safe_migrations_apps/bad_flow_delete_field_double_pending_app/migrations/0001_initial.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)), | ||
], | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
...igrations_apps/bad_flow_delete_field_double_pending_app/migrations/0002_delete_pending.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
...igrations_apps/bad_flow_delete_field_double_pending_app/migrations/0003_double_pending.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
] |
Empty file.
5 changes: 5 additions & 0 deletions
5
fixtures/safe_migrations_apps/bad_flow_delete_field_double_pending_app/models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
45 changes: 45 additions & 0 deletions
45
...ions_apps/bad_flow_delete_field_pending_with_fk_constraint_app/migrations/0001_initial.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
), | ||
], | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
...low_delete_field_pending_with_fk_constraint_app/migrations/0002_delete_without_pending.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
] |
Empty file.
12 changes: 12 additions & 0 deletions
12
fixtures/safe_migrations_apps/bad_flow_delete_field_pending_with_fk_constraint_app/models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
25 changes: 25 additions & 0 deletions
25
...igrations_apps/bad_flow_delete_field_pending_with_not_null_app/migrations/0001_initial.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()), | ||
], | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
...bad_flow_delete_field_pending_with_not_null_app/migrations/0002_delete_without_pending.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
] |
Empty file.
5 changes: 5 additions & 0 deletions
5
fixtures/safe_migrations_apps/bad_flow_delete_field_pending_with_not_null_app/models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
27 changes: 27 additions & 0 deletions
27
...safe_migrations_apps/bad_flow_delete_field_without_pending_app/migrations/0001_initial.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()), | ||
], | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
..._apps/bad_flow_delete_field_without_pending_app/migrations/0002_delete_without_pending.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
] |
Empty file.
5 changes: 5 additions & 0 deletions
5
fixtures/safe_migrations_apps/bad_flow_delete_field_without_pending_app/models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
26 changes: 26 additions & 0 deletions
26
.../safe_migrations_apps/bad_flow_delete_model_double_pending_app/migrations/0001_initial.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
), | ||
), | ||
], | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
...igrations_apps/bad_flow_delete_model_double_pending_app/migrations/0002_delete_pending.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
...igrations_apps/bad_flow_delete_model_double_pending_app/migrations/0003_double_pending.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
] |
Empty file.
5 changes: 5 additions & 0 deletions
5
fixtures/safe_migrations_apps/bad_flow_delete_model_double_pending_app/models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
26 changes: 26 additions & 0 deletions
26
...safe_migrations_apps/bad_flow_delete_model_without_pending_app/migrations/0001_initial.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
), | ||
), | ||
], | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
..._apps/bad_flow_delete_model_without_pending_app/migrations/0002_delete_without_pending.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
] |
Empty file.
5 changes: 5 additions & 0 deletions
5
fixtures/safe_migrations_apps/bad_flow_delete_model_without_pending_app/models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Oops, something went wrong.