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:37:15 +0000 (22:37 -0400)
commit9b8c9668d8e9e086c32e3df2d6234c4f01632970
tree176cac9d94919440a56cdb362451b67639d78269
parenteffa4d715919f45dda4b7be8d9e3a92d7e5da3dd
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]