-
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 #511 from uktrade/release/tequila
Release/tequila
- Loading branch information
Showing
63 changed files
with
1,480 additions
and
173 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
from .support.models import MyDisableableModel | ||
|
||
|
||
pytestmark = pytest.mark.django_db | ||
|
||
|
||
|
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,30 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.5 on 2017-10-02 09:50 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('event', '0008_add_service'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='eventtype', | ||
name='disabled_on', | ||
field=models.DateTimeField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='locationtype', | ||
name='disabled_on', | ||
field=models.DateTimeField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='programme', | ||
name='disabled_on', | ||
field=models.DateTimeField(blank=True, null=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
24 changes: 12 additions & 12 deletions
24
fixtures/metadata/interactions.yaml → ...tion/fixtures/communication_channels.yaml
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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
# Interaction type | ||
- model: metadata.interactiontype | ||
# Interaction communication channel | ||
- model: interaction.communicationchannel | ||
pk: 70c226d7-5d95-e211-a939-e4115bead28a | ||
fields: {name: Email/Website} | ||
- model: metadata.interactiontype | ||
- model: interaction.communicationchannel | ||
pk: 72c226d7-5d95-e211-a939-e4115bead28a | ||
fields: {name: Telephone} | ||
- model: metadata.interactiontype | ||
- model: interaction.communicationchannel | ||
pk: 74c226d7-5d95-e211-a939-e4115bead28a | ||
fields: {name: Letter/Fax} | ||
- model: metadata.interactiontype | ||
- model: interaction.communicationchannel | ||
pk: a5d71fdd-5d95-e211-a939-e4115bead28a | ||
fields: {name: Face to Face} | ||
- model: metadata.interactiontype | ||
- model: interaction.communicationchannel | ||
pk: a7d71fdd-5d95-e211-a939-e4115bead28a | ||
fields: {name: Video/Teleconf.} | ||
- model: metadata.interactiontype | ||
- model: interaction.communicationchannel | ||
pk: a8d71fdd-5d95-e211-a939-e4115bead28a | ||
fields: {name: Social Media} | ||
- model: metadata.interactiontype | ||
- model: interaction.communicationchannel | ||
pk: 71c226d7-5d95-e211-a939-e4115bead28a | ||
fields: {name: Fax} | ||
- model: metadata.interactiontype | ||
- model: interaction.communicationchannel | ||
pk: 73c226d7-5d95-e211-a939-e4115bead28a | ||
fields: {name: Telex} | ||
- model: metadata.interactiontype | ||
- model: interaction.communicationchannel | ||
pk: 75c226d7-5d95-e211-a939-e4115bead28a | ||
fields: {name: UKTI Website} | ||
- model: metadata.interactiontype | ||
- model: interaction.communicationchannel | ||
pk: a4d71fdd-5d95-e211-a939-e4115bead28a | ||
fields: {name: SMS} | ||
- model: metadata.interactiontype | ||
- model: interaction.communicationchannel | ||
pk: a6d71fdd-5d95-e211-a939-e4115bead28a | ||
fields: {name: Business Card} |
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,23 @@ | ||
from datahub.interaction import models | ||
from datahub.metadata.fixtures import Fixture | ||
from datahub.metadata.registry import registry | ||
|
||
|
||
class InteractionFixtures(Fixture): | ||
"""Metadata fixtures (for the loadmetadata command).""" | ||
|
||
files = [ | ||
'fixtures/communication_channels.yaml' | ||
] | ||
|
||
|
||
registry.register( | ||
metadata_id='communication-channel', | ||
model=models.CommunicationChannel, | ||
) | ||
|
||
# For backwards compatibility. Will be removed once front end updated. | ||
registry.register( | ||
metadata_id='interaction-type', | ||
model=models.CommunicationChannel, | ||
) |
21 changes: 21 additions & 0 deletions
21
datahub/interaction/migrations/0008_add_interaction_kind.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,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.5 on 2017-09-29 14:27 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('interaction', '0007_add_date_index'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='interaction', | ||
name='kind', | ||
field=models.CharField(choices=[('interaction', 'Interaction'), ('service_delivery', 'Service delivery')], default='interaction', max_length=255), | ||
preserve_default=False, | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
datahub/interaction/migrations/0009_add_interaction_event.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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.5 on 2017-09-29 15:58 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('event', '0008_add_service'), | ||
('interaction', '0008_add_interaction_kind'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='interaction', | ||
name='event', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='interactions', to='event.Event'), | ||
), | ||
] |
20 changes: 20 additions & 0 deletions
20
datahub/interaction/migrations/0010_ren_interaction_type_comm_channel.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,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.5 on 2017-10-02 09:04 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('interaction', '0009_add_interaction_event'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='interaction', | ||
old_name='interaction_type', | ||
new_name='communication_channel', | ||
), | ||
] |
33 changes: 33 additions & 0 deletions
33
datahub/interaction/migrations/0011_move_interaction_type.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,33 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.5 on 2017-10-02 10:46 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('interaction', '0010_ren_interaction_type_comm_channel'), | ||
('metadata', '0005_auto_20171002_0950'), | ||
] | ||
|
||
state_operations = [ | ||
migrations.CreateModel( | ||
name='CommunicationChannel', | ||
fields=[ | ||
('id', models.UUIDField(primary_key=True, serialize=False)), | ||
('name', models.TextField(blank=True)), | ||
('disabled_on', models.DateTimeField(blank=True, null=True)), | ||
], | ||
options={ | ||
'ordering': ('name',), | ||
'abstract': False, | ||
'db_table': 'metadata_interactiontype' | ||
}, | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.SeparateDatabaseAndState(state_operations=state_operations) | ||
] |
21 changes: 21 additions & 0 deletions
21
datahub/interaction/migrations/0012_update_interaction_type_fkeys.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,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.5 on 2017-10-02 10:53 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('interaction', '0011_move_interaction_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='interaction', | ||
name='communication_channel', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=models.deletion.SET_NULL, | ||
to='interaction.CommunicationChannel') | ||
) | ||
] |
19 changes: 19 additions & 0 deletions
19
datahub/interaction/migrations/0013_rename_interaction_type_table.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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.5 on 2017-10-02 13:17 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('interaction', '0012_update_interaction_type_fkeys'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelTable( | ||
name='communicationchannel', | ||
table=None, | ||
), | ||
] |
Oops, something went wrong.