Skip to content

Commit

Permalink
Merge pull request #94 from archesproject/jmc/53_54_migrate_lingo_col…
Browse files Browse the repository at this point in the history
…lections_and_graphs

53/54 Migrate lingo collections and graphs to use lists & reference datatype
  • Loading branch information
robgaston authored Oct 28, 2024
2 parents d080c4c + 0c4ee3e commit d84ae35
Show file tree
Hide file tree
Showing 8 changed files with 91,660 additions and 36,070 deletions.
29 changes: 29 additions & 0 deletions arches_lingo/migrations/0002_load_lingo_lists.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import os
from django.db import migrations
from django.core import management
from arches_lingo.settings import APP_ROOT
from arches_references.models import List, ListItem, ListItemValue


class Migration(migrations.Migration):

dependencies = [
("arches_lingo", "0001_initial"),
("arches_references", "0004_require_controlledlistitem_uri"),
]

def load_lists(apps, schema_editor):
management.call_command(
"loaddata",
os.path.join(
APP_ROOT,
"pkg",
"reference_data",
"controlled_lists",
"lingo_lists.json",
),
)

operations = [
migrations.RunPython(load_lists, migrations.RunPython.noop),
]
336 changes: 149 additions & 187 deletions arches_lingo/pkg/graphs/resource_models/Concept.json

Large diffs are not rendered by default.

192 changes: 85 additions & 107 deletions arches_lingo/pkg/graphs/resource_models/Scheme.json

Large diffs are not rendered by default.

Loading

0 comments on commit d84ae35

Please sign in to comment.