Skip to content

Commit

Permalink
Merge pull request #4274 from archesproject/433_release_prep
Browse files Browse the repository at this point in the history
433 release prep
  • Loading branch information
chiatt authored Nov 1, 2018
2 parents 2c5595f + bbb0500 commit 48d3d9c
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arches/__init__.py
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion arches/app/models/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 31 additions & 0 deletions arches/app/models/migrations/3892_integrity_error.py
Original file line number Diff line number Diff line change
@@ -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),
]
30 changes: 30 additions & 0 deletions releases/4.3.3.md
Original file line number Diff line number Diff line change
@@ -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 <http://arches.readthedocs.io>

#### Upgrading an Arches project

0 comments on commit 48d3d9c

Please sign in to comment.