-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from alameda-project/workspaces-enhancements-…
…and-more Workspaces enhancements and more
- Loading branch information
Showing
12 changed files
with
168 additions
and
98 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
17 changes: 17 additions & 0 deletions
17
matorral/contrib/sites/migrations/0003_alter_site_options.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 @@ | ||
# Generated by Django 4.2.10 on 2024-02-23 09:07 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('sites', '0002_set_site_domain_and_name'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='site', | ||
options={'ordering': ['domain'], 'verbose_name': 'site', 'verbose_name_plural': 'sites'}, | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
matorral/sprints/migrations/0008_alter_historicalsprint_options_and_more.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,22 @@ | ||
# Generated by Django 4.2.10 on 2024-02-23 09:07 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('sprints', '0007_auto_20200815_1611'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='historicalsprint', | ||
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical sprint', 'verbose_name_plural': 'historical sprints'}, | ||
), | ||
migrations.AlterField( | ||
model_name='historicalsprint', | ||
name='history_date', | ||
field=models.DateTimeField(db_index=True), | ||
), | ||
] |
31 changes: 31 additions & 0 deletions
31
matorral/stories/migrations/0010_alter_historicalepic_options_and_more.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,31 @@ | ||
# Generated by Django 4.2.10 on 2024-02-23 09:07 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('stories', '0009_auto_20200816_1042'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='historicalepic', | ||
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical epic', 'verbose_name_plural': 'historical epics'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='historicalstory', | ||
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical story', 'verbose_name_plural': 'historical stories'}, | ||
), | ||
migrations.AlterField( | ||
model_name='historicalepic', | ||
name='history_date', | ||
field=models.DateTimeField(db_index=True), | ||
), | ||
migrations.AlterField( | ||
model_name='historicalstory', | ||
name='history_date', | ||
field=models.DateTimeField(db_index=True), | ||
), | ||
] |
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,56 @@ | ||
# Generated by Django 4.2.10 on 2024-02-23 09:10 | ||
|
||
from django.db import migrations | ||
|
||
|
||
story_slug_name_list = [ | ||
("pl", "Planning"), | ||
("pr", "Prioritized & Ready"), | ||
("ip", "In Progress"), | ||
("qa", "In QA"), | ||
("3p", "Waiting for 3rd Party"), | ||
("dn", "Done"), | ||
("wd", "Won't Do"), | ||
] | ||
|
||
epic_slug_name_list = [ | ||
("pl", "Planning"), | ||
("pr", "Prioritized & Ready"), | ||
("ip", "In Progress"), | ||
("dn", "Done"), | ||
] | ||
|
||
|
||
def create_story_states(apps, schema_editor): | ||
StoryState = apps.get_model("stories", "StoryState") | ||
|
||
for slug, name in story_slug_name_list: | ||
StoryState.objects.get_or_create(slug=slug, defaults={"name": name}) | ||
|
||
EpicState = apps.get_model("stories", "EpicState") | ||
|
||
for slug, name in epic_slug_name_list: | ||
EpicState.objects.get_or_create(slug=slug, defaults={"name": name}) | ||
|
||
|
||
def remove_story_states(apps, schema_editor): | ||
StoryState = apps.get_model("stories", "StoryState") | ||
|
||
for slug, _ in story_slug_name_list: | ||
StoryState.objects.filter(slug=slug).delete() | ||
|
||
EpicState = apps.get_model("stories", "EpicState") | ||
|
||
for slug, _ in epic_slug_name_list: | ||
EpicState.objects.filter(slug=slug).delete() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('stories', '0010_alter_historicalepic_options_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(create_story_states, remove_story_states), | ||
] |
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
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 @@ | ||
# Generated by Django 4.2.10 on 2024-02-23 09:07 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('users', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='user', | ||
name='first_name', | ||
field=models.CharField(blank=True, max_length=150, verbose_name='first name'), | ||
), | ||
] |
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
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
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