Aron Roberts [Mon, 20 Sep 2010 22:45:39 +0000 (22:45 +0000)]
CSPACE-2863: Trivial modification of comment to reference current discussion about how to handle cases where a term is used in more than one source field in a record; happened across this when working on CSPACE-2783.
Aron Roberts [Mon, 20 Sep 2010 22:04:28 +0000 (22:04 +0000)]
CSPACE-2783: Trivial tweak to short identifiers, display names in Intakes service client test of referencing objects for organization items, to better distinguish organizations from persons.
Patrick Schmitz [Fri, 17 Sep 2010 20:55:22 +0000 (20:55 +0000)]
CSPACE-2021 - Updated to use more recent version of the RestEasy, that fixes a problem encoding non-latin1 Unicode chars as parameters. This caused search tests to pass unicode search terms and terms with punctuation incorrectly.
Changed the handling of partial-term and keyword search to properly escape punctuation, allowing for search on names like O'Hara.
Added beginnings of logic to support search on partial-keyword (keywords with wildcards) and search on keyword phrases (in quotes).
Aron Roberts [Mon, 13 Sep 2010 23:05:27 +0000 (23:05 +0000)]
CSPACE-650: Added test case for keyword search on a Unicode UTF-8 string to CollectionObject tests. Test currently fails and is commented out so as not to break the services tests. (This could potentially be due to a RESTEasy bug that Patrick identified in an SOA-Tech list posting on 2010-09-07.)
Aron Roberts [Mon, 13 Sep 2010 21:38:40 +0000 (21:38 +0000)]
CSPACE-1886: Corrected construction of a Unicode UTF-8 term against which to test partial term querying, per Patrick's comment that \u escapes must be in chars, not Strings.
Aron Roberts [Fri, 10 Sep 2010 18:21:13 +0000 (18:21 +0000)]
CSPACE-2544: Values for the sortBy query parameter are now checked. The use of an invalid value will cause the 'read list' request to fail. This checking introduces a temporary limitation of sorting only on a single field name; a new JIRA will be filed for the task of expanding this to permit sorting on multiple fields.
Aron Roberts [Fri, 10 Sep 2010 18:10:54 +0000 (18:10 +0000)]
CSPACE-2881: Search test of CollectionObject service now has tests for searches on keywords both found within a single field, and for keywords found across two different fields.
Aron Roberts [Thu, 2 Sep 2010 04:28:44 +0000 (04:28 +0000)]
CSPACE-2334,CSPACE-2761,CSPACE-2762: Corrected error in Movement ID pattern; added Object Exit and Transfer of Title ID pattern, to the set of default ID generators.
Richard Millet [Wed, 1 Sep 2010 23:11:36 +0000 (23:11 +0000)]
CSPACE-2142: When a role is deleted, its association(s) with account(s) are not deleted. Consequently, "ghost" roles are being returned in the /accounts/{csid}/accountroles list.
Aron Roberts [Wed, 1 Sep 2010 23:09:06 +0000 (23:09 +0000)]
CSPACE-2066: Added additional test to verify that services are correctly returning authority references from multiple value instances of a repeatable scalar field.
Richard Millet [Mon, 30 Aug 2010 22:44:18 +0000 (22:44 +0000)]
CSPACE-2678: actionGroup not always returned in permroles list views. PermRoles were not being derived from existing Roles and Permissions. Instead, they were being created as independent entities. Now the Import util still creates them as independent payloads, but service calls will create derived entities.
Patrick Schmitz [Sat, 28 Aug 2010 03:01:02 +0000 (03:01 +0000)]
CSPACE-2542 Bug was a side effect of an improperly constructed Person item (passing in a payload with inAuthority set to something different from the authority the Person was actually being added to). This is turn was not detected by services code which should have forced this to be correct. Changed services code for authorities to ensure that this cannot happen. inAuthority values in payloads will be ignored. Made analogous changes to contact service, which has parent references.
Patrick Schmitz [Fri, 27 Aug 2010 06:33:10 +0000 (06:33 +0000)]
CSPACE-2542 Modified the handling of Authorities to support range of specifiers for authority and item, across operations. Modified authorities that support contact sub-resources to support all specifier forms for the authority and item, across operations. Refactored the AuthorityResource classes for the authorities that support contact sub-resources, to simplify code and ensure consistent support.
Richard Millet [Thu, 26 Aug 2010 20:03:11 +0000 (20:03 +0000)]
CSPACE-2727: AuthZ management resources were not responding to gets of /accountroles/{csid}, /permroles/{csid} correctly. These gets now return the details of the relationship records.
Aron Roberts [Wed, 25 Aug 2010 22:09:46 +0000 (22:09 +0000)]
CSPACE-2541,CSPACE-2711: 'owner' field now a repeatable scalar ('owners->owner') in Acquisition records. Multiple value instances of 'owner' field now returned in summary items in lists of Acquisition records, as well. 'fieldCollectionEventName' field now a repeatable scalar ('fieldCollectionEventNames->fieldCollectionEventName') in CollectionObject, Intake, and Acquisition records. Changes made to Nuxeo doctype schemas, and thus requires an 'ant deploy' and a 2-server restart to reflect these changes in the services layer.
Aron Roberts [Wed, 25 Aug 2010 19:58:01 +0000 (19:58 +0000)]
CSPACE-1355: Removed currentLocation and normalLocation fields from authRef properties for Movement service for now, as these two fields will hold plain text values, rather than authority references, in 1.0 alpha.
Patrick Schmitz [Tue, 24 Aug 2010 00:17:19 +0000 (00:17 +0000)]
CSPACE-2660. Added first responsibleDepartment (from list) and the objectName field from the first objectName repeating structure, to the summary list schema.
Aron Roberts [Mon, 23 Aug 2010 20:40:32 +0000 (20:40 +0000)]
CSPACE-2677: Services document framework (and Movement service, in which date fields are first being prototyped) once again allows entry of blank / empty dates in date fields, an obvious requirement in retrospect.
Aron Roberts [Fri, 20 Aug 2010 02:01:35 +0000 (02:01 +0000)]
CSPACE-2671: Multiple changes to CollectionSpace record schema in the services layer, reflecting 1.0 alpha changes specified by the Functional team. Added ten (10) fields, removed two (2) fields, and converted six (6) fields from scalar to repeatable scalar. See comment in issue for list of fields changed. No services tests failed after these changes, however there are no tests currently in place to verify that these fields are working; that work is identified to be carried out in CSPACE-2609.
Aron Roberts [Thu, 19 Aug 2010 23:25:02 +0000 (23:25 +0000)]
CSPACE-2300: Added borrowersAuthorizer field to LoansIn (aka LoansIn) records, in services schema. Constitutes a Nuxeo document type update, and as such requires an 'ant deploy' and a 2-server restart.
Aron Roberts [Thu, 19 Aug 2010 21:11:12 +0000 (21:11 +0000)]
CSPACE-2671: Annotated CollectionObject schema (Nuxeo doctype schema), in the services layer, to reflect the results of a schema change and repeatability review. All fields that will be changed - added, removed, made singly repeatable - are annotated with a '[1.0 alpha]' note; other notes reflect upcoming changes, post-1.0 alpha, to create repeatable groups and the like.
Richard Millet [Thu, 19 Aug 2010 15:54:31 +0000 (15:54 +0000)]
CSPACE-1432: Odd that my SVN client shows these added and checked-in, but apparently not. Original post: Apply "List - pagination (return total items, current page, total pages) " functionality to Account
Richard Millet [Thu, 19 Aug 2010 15:53:12 +0000 (15:53 +0000)]
CSPACE-1432: Odd that my SVN client shows these added and checked-in, but apparently not. Original post: Apply "List - pagination (return total items, current page, total pages) " functionality to Account
Aron Roberts [Wed, 18 Aug 2010 04:12:45 +0000 (04:12 +0000)]
CSPACE-2653: Dates in unrecognized formats, when sent to services as values in date-type fields, now generate error messages, rather than being silently 'dropped' and resulting in null/empty values being stored in those fields. Recognized formats include Nuxeo's supported ISO 8601-based formats, as well as any additional formats configured on a per-tenant basis.
Aron Roberts [Wed, 18 Aug 2010 01:38:25 +0000 (01:38 +0000)]
CSPACE-2418: Services can now accept, as input to date fields in their record types, dates in a variety of representation formats, specified in per-tenant configuration. This will permit free text entry of dates in formats familiar to users in various countries, such as 'MM/dd/yyyy' (USA), 'dd/MM/yyyy' (UK), and 'dd.MM.yyyy' (one of several formats used in Denmark). No validation is yet performed, and dates in unrecognized formats, that cannot be parsed and converted to the ISO 8601-based formats required by Nuxeo and MySQL, are silently dropped, as they were even before this check-in. This is addressed by a new bug, CSPACE-2653.
Aron Roberts [Tue, 17 Aug 2010 02:31:22 +0000 (02:31 +0000)]
CSPACE-2418: Groundwork for supporting free-text entry of dates in a variety of formats. Added utility routines to retrieve per-tenant lists of properties, and demonstrated retrieval of date formats from those properties, and of validating incoming dates against permitted date formats. Need to add ISO 8601-based patterns corresponding to those permitted by Nuxeo, determine how best to identify date fields whose values might be validated, and identify where during incoming payload handling to convert from non-ISO 8601 formats.
Aron Roberts [Mon, 16 Aug 2010 20:21:19 +0000 (20:21 +0000)]
CSPACE-2479: CollectionObject service now returns authority references from objectProductionPerson and objectProductionOrganization fields. (This work will need to be revisited when those two fields become part of repeatable groups; test cases added in this check-in will help ensure we make the necessary changes at that time to continue to pull authrefs from those fields.)
Aron Roberts [Fri, 13 Aug 2010 23:58:42 +0000 (23:58 +0000)]
CSPACE-827,CSPACE-2643: Added dimensions as a structured repeatable group of fields to CollectionObject records. Updated client tests to verify update behavior for dimensions groups, as described in the Common Services REST API documentation. Left six existing scalar dimensions fields in place for backwards compatibility, until dimensions are implemented as a repeatable group across all layers. Updates Nuxeo doctype definition, and thus requires 'ant deploy' from services/trunk and a 2-server restart.
Richard Millet [Thu, 12 Aug 2010 05:19:21 +0000 (05:19 +0000)]
CSPACE-2587: Add a separate log file for service profiling information. Also adding Laramie's filter class that we're using to profile requests to the service layer.
Aron Roberts [Thu, 12 Aug 2010 00:18:21 +0000 (00:18 +0000)]
CSPACE-2628: Fixed issue where the Movemement service was returning empty values in three dateTime fields. Removing the premature encoding of a calendar object to an ISO8601 string in MovementDocumentModelHandler.extractPart() resolved this issue. dateTime values are correctly encoded as ISO 8601 strings in the UTC time zone when a response document is being built, without any intervention required. Added client tests for this behavior.
Aron Roberts [Wed, 11 Aug 2010 19:22:22 +0000 (19:22 +0000)]
CSPACE-2578: Re-enabled test for XML parsing bug, where whitespace (and presumably any text) between the container element of a repeatable group and its first child prevented record creation. After the XML parsing-related improvements in CSPACE-2622, this issue appears to have been resolved, and this test now passes.
Aron Roberts [Wed, 11 Aug 2010 01:51:29 +0000 (01:51 +0000)]
CSPACE-2622: Trivial removal of several auto-generated Javadoc method comments, in favor of human-created comments which hadn't been propertly identified as Javadoc comments.
Aron Roberts [Mon, 9 Aug 2010 23:53:51 +0000 (23:53 +0000)]
CSPACE-2607: Commented out CollectionObjectResource.getIntakesCommonList(), which makes a call to getRelationList() in the relation service using a now-obsolete set of method parameters.
Aron Roberts [Mon, 9 Aug 2010 22:48:40 +0000 (22:48 +0000)]
CSPACE-2602: Checking in Laramie's changes to the deploy_jpa target in the common module's Ant buildfile. This resolves an issue, present in releases 0.7 and 0.8, which could result in a 'could not find resource file' error when running 'ant deploy'.
Aron Roberts [Mon, 9 Aug 2010 21:12:55 +0000 (21:12 +0000)]
CSPACE-2600: Checking in Laramie's set of changes to three files, to re-enable the 'query' module in the services source code tree. This module, while currently little used, will be instrumental for advanced search when that functionality is added to the services layer.
Aron Roberts [Mon, 9 Aug 2010 20:02:16 +0000 (20:02 +0000)]
CSPACE-2601: Checking in Laramie's set of changes to ten files - nearly all in sdk, sample, and import modules, which are built under a separate Maven profile - to reflect changes to object records that made object name fields repeatable as a group.
Aron Roberts [Mon, 9 Aug 2010 20:01:06 +0000 (20:01 +0000)]
CSPACE-2601: Checking in Laramie's set of changes to ten files - nearly all in sdk, sample, and import modules, which are built under a separate Maven profile - to reflect changes to object records that made object name fields repeatable as a group.
Aron Roberts [Fri, 6 Aug 2010 00:30:15 +0000 (00:30 +0000)]
CSPACE-2586: Retrieving referencing objects now works for repeatable, single scalar fields. (More specifically, this works when a referenced term is found in any value instance of a repeatable, single scalar field.) Apparently, this may not have previously worked but was missed by services client tests, and emerged only when implementing repeatable groups of fields.
Aron Roberts [Thu, 5 Aug 2010 19:26:27 +0000 (19:26 +0000)]
CSPACE-2577: Lists of referencing objects / refObjs now once again successfully returned. Fix involved commenting out one authRef field property in tenant bindings; that field, which is in a newly-introduced repeatable group of fields in Acquisition records, was causing Nuxeo's searches to fail. Also observed that we may not be currently testing for retrieving refObjs where the references occur in single scalar fields; will add JIRAs for both relevant issues.
Aron Roberts [Wed, 4 Aug 2010 22:41:49 +0000 (22:41 +0000)]
CSPACE-2578: Added client tests to demonstrate payload parsing issue where whitespace (or presumably any text node) is present between the container tag and the first child tag in a repeatable group of fields. Failing test is commented out so as not to break services tests, but can be uncommented during investigation of this issue.
Aron Roberts [Wed, 4 Aug 2010 05:31:33 +0000 (05:31 +0000)]
CSPACE-2469,CSPACE-2576,CSPACE-2577: Modified Acquisition records in the services layer, making the Acquisition Funding group repeatable. Modified document framework code to return authority references from individual value instances of fields in repeatable groups of fields. This work has temporarily broken retrieval of referenced documents associated with a term / authority reference, per newly-filed bug CSPACE-2577.
Aron Roberts [Mon, 2 Aug 2010 19:58:24 +0000 (19:58 +0000)]
CSPACE-2558: sourceField values in authority reference lists from services once again are qualified by schema names; e.g. 'acquisitions_common:acquisitionSource'. This was a regression bug caught by Chris. Will create a JIRA to add client tests of sourceField values, to help avoid such issues in the future.
Aron Roberts [Sat, 31 Jul 2010 00:31:27 +0000 (00:31 +0000)]
CSPACE-2572: Client test of sorting of Movement record by string or date type fields now exclude null values when performing comparisons, to avoid triggering Exceptions in Collator and Comparator classes.
Aron Roberts [Fri, 30 Jul 2010 23:48:30 +0000 (23:48 +0000)]
CSPACE-2558,CSPACE-2556: When returning lists of authority references (terms used) within a record, the sourceField name is once again correct for value instances of singly repeatable fields, rather than reflecting the parent field's name. This check-in assumes one level of repeatability (a parent field with 0-n child fields of the same name and type) and will require revision for complex, or nested, repeatability, but also lays the groundwork for such support.