diff --git a/arches/__init__.py b/arches/__init__.py index a8673fba223..0168536c5c2 100644 --- a/arches/__init__.py +++ b/arches/__init__.py @@ -1,5 +1,5 @@ from arches.setup import get_version -VERSION = (4, 3, 2, 'final', 0) +VERSION = (4, 3, 3, 'final', 0) __version__ = get_version(VERSION) diff --git a/arches/app/models/card.py b/arches/app/models/card.py index 1f8f89e365e..817d40ba642 100644 --- a/arches/app/models/card.py +++ b/arches/app/models/card.py @@ -97,7 +97,7 @@ def __init__(self, *args, **kwargs): widget_id = widget.get('widget_id', None) if cardxnodexwidgetid is None and (node_id is not None and card_id is not None and widget_id is not None): try: - wm = models.CardXNodeXWidget.objects.get(node_id=node_id, card_id=card_id, widget_id=widget_id) + wm = models.CardXNodeXWidget.objects.get(node_id=node_id, card_id=card_id) cardxnodexwidgetid = wm.pk except: pass diff --git a/arches/app/models/migrations/3892_integrity_error.py b/arches/app/models/migrations/3892_integrity_error.py new file mode 100644 index 00000000000..2ac65fcf565 --- /dev/null +++ b/arches/app/models/migrations/3892_integrity_error.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.10 on 2018-08-29 11:09 +from __future__ import unicode_literals + +from django.db import migrations, models + +def forwards_func(apps, schema_editor): + # We get the model from the versioned app registry; + # if we directly import it, it'll be the wrong version + CardXNodeXWidget = apps.get_model("models", "CardXNodeXWidget") + CardModel = apps.get_model("models", "CardModel") + + for card in CardModel.objects.all(): + cnw = CardXNodeXWidget.objects.filter(card=card)[1:] + for item in cnw: + item.delete() + +def reverse_func(apps, schema_editor): + # there is no way to reverse this + pass + + +class Migration(migrations.Migration): + + dependencies = [ + ('models', '3965_cardxnodexwidget_visible'), + ] + + operations = [ + migrations.RunPython(forwards_func, reverse_func), + ] diff --git a/releases/4.3.3.md b/releases/4.3.3.md new file mode 100644 index 00000000000..b614086ed9f --- /dev/null +++ b/releases/4.3.3.md @@ -0,0 +1,30 @@ +### Arches 4.3.3 release notes + +The Arches team has been busy improving Arches and fixing several bugs as well. +Below you'll find a listing of all the changes that are included in the latest release. + +Some of the highlights: +- Fixes duplicate entries in cards_x_nodes_x_widgets + +#### Known Issues + +- [#4044](https://github.com/archesproject/arches/issues/4044) - Exporting data that uses the File-list datatype in csv format can't be successfully re-imported. + + **Workaround:** If users need to export data that uses the File-list datatype, then they should export in JSON format instead, so that data can be successfully re-imported. + +#### Upgrading Arches + +Users are encouraged to update at their earliest convenience. Completely re-installing Arches is the easiest way to accomplish this. + +If you can't completely re-install Arches (because you have data in the system that you want to preserve) then you'll need to upgrade by running the following commands in your activated virtual environment: + +``` +pip install arches --upgrade --no-binary :all: +python manage.py migrate +``` + +If you have Arches running on a web server such as Apache, be sure to update your static files directory and restart your web server. + +As always the documentation can be found at + +#### Upgrading an Arches project