]> git.evergreen-ils.org Git - Evergreen.git/commit
Correct Located URI visiblity
authorMike Rylander <mrylander@gmail.com>
Mon, 3 Oct 2011 19:01:26 +0000 (15:01 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 4 Oct 2011 02:16:24 +0000 (22:16 -0400)
commitba47ecc6196055886ad6f23284819be5dec8448d
treea94477eeecd9d72d2d94287fea676987d6a264e6
parent0e9dab142d4cd6eabc395a01971eeef1005e50c3
Correct Located URI visiblity

Located URIs should be visible when they exist at the search context org unit
or an ancestor thereof.  However, before the change embodied in this commit,
they effectively acted exactly like copies, making records visible anywhere
within the context+depth range.

An example, using the stock example OU hierarchy:

 * Before this change, a Located URI with an owner of BR1 would cause its
record to show up in a search at (or scoped to via a depth parameter) BR1,
SYS1 or CONS.

 * Before this change, a Located URI with an owner of SYS1 would NOT cause its
record to show up in a search at (or scoped to via a depth parameter) BR1!

 * After this change, a Located URI with an owner of BR1 will cause its record
to show up only in a search with a context OU of BR1, irrespective of depth
scoping.

 * After this change, a Located URI with an owner of SYS1 WILL cause its
record to show up in a search with a context OU of BR1 or SYS1, regardless of
depth scoping.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.located_uri_visiblity_fix.sql [new file with mode: 0644]