Skip to content

Commit c7f4f82

Browse files
committed
Separated schema and data migrations.
- Legacy-Id: 14174
1 parent 7530e4c commit c7f4f82

4 files changed

Lines changed: 85 additions & 32 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/.Python
2222
/.settings
2323
/.tmp
24+
/.factoryboy_random_state
2425
/bin
2526
/etc
2627
/ghostdriver.log

changelog

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
ietfdb (6.63.0) ietf; urgency=medium
2+
3+
**Support for document-specific URL annotations**
4+
5+
This release adds support for document-specific URL annotations; look
6+
for 'Additional URLs' on the draft status page. These can be edited
7+
by the group chairs for group drafts and by the authors for individual
8+
drafts. There are also some changes and enhancements related to the
9+
submission automation API.
10+
11+
Commit log extract:
12+
13+
* Tweaked the submission search form to accept draft names which include
14+
revision numbers. Fixes issue #2380.
15+
16+
* Added a cancel button to the submission confirmation page. Fixes issue
17+
#2349.
18+
19+
* Removed the repeat of the error message in the HTTP reason string.
20+
Fixes issue #2378.
21+
22+
* Added 'Additional URLs' for documents, the same way we have them for
23+
groups. This could be used to point to a document source repository, to
24+
extracted yang module files, document wikis, and other relevant resources.
25+
26+
* Added migrations for document url model changes. Updated the name
27+
fixtures. Added ability for individual draft authors to edit document urls.
28+
29+
* Removed some unreachable code.
30+
31+
* Another tweak to the draft author extraction code, to handle some name
32+
transliterations using multiple leading grave accents.
33+
34+
-- Henrik Levkowetz <henrik@levkowetz.com> 27 Sep 2017 08:33:16 -0700
35+
36+
137
ietfdb (6.62.1) ietf; urgency=medium
238

339
This is a bugfix release which also brings in a utility script to add

ietf/name/migrations/0027_docurltagname.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,6 @@
44

55
from django.db import migrations, models
66

7-
def forwards(apps,schema_editor):
8-
DocUrlTagName = apps.get_model('name','DocUrlTagName')
9-
10-
DocUrlTagName.objects.create(
11-
slug='wiki',
12-
name='Document wiki',
13-
)
14-
DocUrlTagName.objects.create(
15-
slug='issues',
16-
name='Document Issue Tracker',
17-
)
18-
DocUrlTagName.objects.create(
19-
slug='repository',
20-
name='Document Source Repository',
21-
)
22-
DocUrlTagName.objects.create(
23-
slug='yang-module',
24-
name='Extracted Yang Module',
25-
)
26-
DocUrlTagName.objects.create(
27-
slug='yang-impact-analysis',
28-
name='Yang Impact Analysis',
29-
)
30-
DocUrlTagName.objects.create(
31-
slug='yang-module-metadata',
32-
name='Yang module metadata',
33-
)
34-
35-
def backwards(apps,schema_editor):
36-
pass
37-
387
class Migration(migrations.Migration):
398

409
dependencies = [
@@ -56,7 +25,6 @@ class Migration(migrations.Migration):
5625
'abstract': False,
5726
},
5827
),
59-
migrations.RunPython(forwards, backwards),
6028
]
6129

6230

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.10.8 on 2017-09-27 10:29
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations
6+
7+
def forwards(apps,schema_editor):
8+
DocUrlTagName = apps.get_model('name','DocUrlTagName')
9+
10+
DocUrlTagName.objects.create(
11+
slug='wiki',
12+
name='Document wiki',
13+
)
14+
DocUrlTagName.objects.create(
15+
slug='issues',
16+
name='Document Issue Tracker',
17+
)
18+
DocUrlTagName.objects.create(
19+
slug='repository',
20+
name='Document Source Repository',
21+
)
22+
DocUrlTagName.objects.create(
23+
slug='yang-module',
24+
name='Extracted Yang Module',
25+
)
26+
DocUrlTagName.objects.create(
27+
slug='yang-impact-analysis',
28+
name='Yang Impact Analysis',
29+
)
30+
DocUrlTagName.objects.create(
31+
slug='yang-module-metadata',
32+
name='Yang module metadata',
33+
)
34+
35+
def backwards(apps,schema_editor):
36+
pass
37+
38+
39+
class Migration(migrations.Migration):
40+
41+
dependencies = [
42+
('name', '0027_docurltagname'),
43+
('doc', '0034_documenturl'),
44+
]
45+
46+
operations = [
47+
migrations.RunPython(forwards, backwards),
48+
]

0 commit comments

Comments
 (0)