-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* celery task for processing agent merging in the background * remove circular model import * fix Agent import error * prevent other Agent import errors * revised agent merging unit tests * add status url * fix progress in unit tests * Spmerging django migration * fix django migration issues by moving spmerging * fix serialization error * clean up status of failed merges * move starting notification to be inside the celery task * fix progress closure * confirmed successful celery task execution * catch unhandled errors and send notification * add additional information fields for spmerging * tmp github unit test fix * github test database restart to fix unit testing * fix the test_SpecifyDB for unit testing * remove previous test_SpecifyDB * try a different test database * remove deleting test database action * revert temp test db * add github action step for debugging * debug db connection * fix debug db connection test * add verbosity to testing * move spmerging model definition outside of the specify app and into notifications to prevent errors * revert GitHub actions to previous state * add additional info to notifications
- Loading branch information
1 parent
b3eba68
commit 2eed710
Showing
6 changed files
with
316 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django.utils.timezone | ||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('specify', '__first__'), | ||
('notifications', '0002_message_read'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Spmerging', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=256)), | ||
('taskid', models.CharField(max_length=256)), | ||
('mergingstatus', models.CharField(max_length=256)), | ||
('table', models.CharField(max_length=256)), | ||
('newrecordid', models.SmallIntegerField(null=True)), | ||
('newrecordata', models.JSONField(null=True)), | ||
('oldrecordids', models.JSONField(null=True)), | ||
('collection', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='specify.Collection')), | ||
('specifyuser', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
('timestampcreated', models.DateTimeField(default=django.utils.timezone.now)), | ||
('timestampmodified', models.DateTimeField(auto_now=True)), | ||
('createdbyagent', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='specify.agent')), | ||
('modifiedbyagent', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='specify.agent')), | ||
], | ||
options={ | ||
'db_table': 'spmerging' | ||
}, | ||
), | ||
] |
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
Oops, something went wrong.