Correct Located URI visiblity collab/miker/located_uri_visiblity_fix_2_1
authorMike Rylander <mrylander@gmail.com>
Mon, 3 Oct 2011 19:01:26 +0000 (15:01 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 3 Oct 2011 19:17:25 +0000 (15:17 -0400)
commit0122e25d147b939fa25306da75b59b596024cea5
tree6401645c655295d68e8e1c24fd4cefacd3796412
parent7e66a7e134c7ac8815c00d5bb7226f93496a2ff2
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]