Correct Located URI visiblity collab/miker/located_uri_visibility_fix_2_0
authorMike Rylander <mrylander@gmail.com>
Mon, 3 Oct 2011 19:01:26 +0000 (15:01 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 4 Oct 2011 01:54:25 +0000 (21:54 -0400)
commit87377202224b5798c51d9604d7b7ec286b90586e
tree1468a9939eadfd4a6b97a1b6fb3b5411370be408
parent652671db71b47895456f57500ecfb8bc97d6e98c
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>
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]