[Archivesspace_Users_Group] Event Outcome Problems
Shaun D. Ellis
shaune at Princeton.EDU
Fri Sep 28 10:04:16 EDT 2018
This sounds like a bug to me. Is there some place other than this list where it should be reported?
It seems to me that the solution is to place a database constraint on that field, so that NULL values can’t be used for foreign keys, but perhaps there is more to the issue?
Shaun Ellis
--
UX Web Developer / Frontend Engineer
Princeton University Library<https://library.princeton.edu/>
Princeton, NJ 08544
From: <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Jenn Colt <jrc88 at cornell.edu>
Reply-To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Date: Thursday, September 27, 2018 at 9:54 AM
To: "archivesspace_users_group at lyralists.lyrasis.org" <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Event Outcome Problems
I'm seeing this as well when I make a new event but leave the outcome blank.
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of James R Griffin III <jrg5 at princeton.edu>
Sent: Tuesday, September 25, 2018 2:36:25 PM
To: archivesspace_users_group at lyralists.lyrasis.org
Subject: [Archivesspace_Users_Group] Event Outcome Problems
Hello Everyone,
Please forgive any misunderstandings on my part, as I'm relatively new to this software and the project.
I'm currently working with an installation of ArchivesSpace which has been updated to 2.5.0, and I've encountered a problem in which Event "Outcome" values can be persisted into the database with NULL foreign keys:
[archivesspace]> select count(e.id<http://e.id/>) from event as e where e.outcome_id IS NULL;
+-------------+
| count(e.id<http://e.id/>) |
+-------------+
| 14324 |
+-------------+
Is this expected? When these are set as NULL, the corresponding enumeration_value cannot be retrieved for translation in the locale, leading to the following errors:
translation missing: enumerations.event_outcome.
...where the tag following enumerations.event_outcome (normally some value like pass or fail, as found in https://github.com/archivesspace/archivesspace/blob/v2.5.0/common/locales/enums/en.yml#L442) is simply blank.
Is this something which others have encountered before? Might this be an issue which must be addressed with database record cleaning for these NULL foreign keys? Thank you for your time and support.
Sincerely,
James Griffin
--
Digital Infrastructure Developer
Princeton University Library<https://library.princeton.edu/>
Princeton, NJ 08544
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20180928/3f295b7c/attachment.html>
More information about the Archivesspace_Users_Group
mailing list