Fixing sample data to make the comments consistent

remotes/origin/issue/4795/notification_even_they_are_disabled
Alejandro Alonso 2016-11-24 11:02:19 +01:00
parent 9970f68d2b
commit 09e40b9968
1 changed files with 7 additions and 7 deletions

View File

@ -318,7 +318,6 @@ class Command(BaseCommand):
attachment = self.create_attachment(wiki_page, i+1) attachment = self.create_attachment(wiki_page, i+1)
take_snapshot(wiki_page, take_snapshot(wiki_page,
comment=self.sd.paragraph(),
user=wiki_page.owner) user=wiki_page.owner)
# Add history entry # Add history entry
@ -374,7 +373,6 @@ class Command(BaseCommand):
bug.save() bug.save()
take_snapshot(bug, take_snapshot(bug,
comment=self.sd.paragraph(),
user=bug.owner) user=bug.owner)
# Add history entry # Add history entry
@ -421,7 +419,6 @@ class Command(BaseCommand):
attachment = self.create_attachment(task, i+1) attachment = self.create_attachment(task, i+1)
take_snapshot(task, take_snapshot(task,
comment=self.sd.paragraph(),
user=task.owner) user=task.owner)
# Add history entry # Add history entry
@ -476,7 +473,6 @@ class Command(BaseCommand):
take_snapshot(us, take_snapshot(us,
comment=self.sd.paragraph(),
user=us.owner) user=us.owner)
# Add history entry # Add history entry
@ -533,7 +529,6 @@ class Command(BaseCommand):
epic.save() epic.save()
take_snapshot(epic, take_snapshot(epic,
comment=self.sd.paragraph(),
user=epic.owner) user=epic.owner)
# Add history entry # Add history entry
@ -559,9 +554,15 @@ class Command(BaseCommand):
# Add history entry # Add history entry
take_snapshot(epic, take_snapshot(epic,
comment=self.sd.paragraph(),
user=epic.owner) user=epic.owner)
# Add history entry
epic.status=self.sd.db_object_from_queryset(project.epic_statuses.filter(is_closed=False))
epic.save()
take_snapshot(epic,
comment=self.sd.paragraph(),
user=epic.owner)
return epic return epic
def create_project(self, counter, is_private=None, blocked_code=None): def create_project(self, counter, is_private=None, blocked_code=None):
@ -633,4 +634,3 @@ class Command(BaseCommand):
def generate_color(self, tag): def generate_color(self, tag):
color = sha1(tag.encode("utf-8")).hexdigest()[0:6] color = sha1(tag.encode("utf-8")).hexdigest()[0:6]
return "#{}".format(color) return "#{}".format(color)