Commit b04b629
LP#2098043,2098407,2098117: Angular Bucket updates
This commit builds on several improvements to the open-ils.pcrud
service, allowing for improved performance and removal of some layers of
indirection that additionally provide the opportunity for permission and
correctness bugs.
General changes:
* Add "count_only" support directly to the pcrud services, a la idlist.
* Improve open-ils.fielder map generation by only causing joins on
fields that are used for sorting or filtering; displayed fields come
from fleshing.
* Use pcrud to add and remove bucket items via the bucket service
Bucket UI improvements:
* Use pcrud for all grids on all tabs, rather than open-ils.actor
methods, leveraging the new permission testing functionality.
* Deserialize count fetching, and use pcrud
* Remove unnecessary grid and count refreshing
* Add user-applied grid filters to the datasource's query for fetching
buckets to display. These filters are /not/ included in the count
call that populates the tab label, that is always the unfiltered
count.
The definitions for "Shared with {me|others}" and "Visible to me" have changed
such that:
* Shared with me - all NON-public buckets that I can see. That is, if I
don't own the bucket, I have one of CREATE_BIB_BUCKET, ADMIN_BIB_BUCKET,
VIEW_CONTAINER, or UPDATE_CONTAINER permissions at the bucket owning
lib or one of the share_maps orgs, or have VIEW_CONTAINER or
UPDATE_CONTAINER object permissions on a bucket assigned by the
owner.
* Shared with others - all buckets that I own that have entries in the
share map table (org sharing) or that have entries in the object
permission mapping table (user permission grant).
* Visible to me - All PUBLIC buckets that I don't own.
We actively exclude "temp" btype buckets and add an index to support
that exclusion. These buckets are only used for transient purposes and
will not accumulate on a normal, production instance. However, if
(for instance) A/T event definitions used for printing and emailing
records are disabled, the buckets are not cleaned up. This can happen
on a test instance where most A/T events are disabled to avoid sending
test-data emails to "real" email addresses. In such cases, there may be
many orders of magnitude more "temp" buckets than actual user-created
ones.
Signed-off-by: Mike Rylander <[email protected]>
Signed-off-by: Galen Charlton <[email protected]>1 parent f589fee commit b04b629
File tree
7 files changed
+97
-60
lines changed- Open-ILS
- examples
- src
- eg2/src/app
- core
- sql/Pg
- upgrade
7 files changed
+97
-60
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9050 | 9050 | | |
9051 | 9051 | | |
9052 | 9052 | | |
9053 | | - | |
| 9053 | + | |
9054 | 9054 | | |
9055 | 9055 | | |
9056 | | - | |
9057 | | - | |
| 9056 | + | |
| 9057 | + | |
9058 | 9058 | | |
9059 | 9059 | | |
9060 | | - | |
| 9060 | + | |
9061 | 9061 | | |
9062 | 9062 | | |
9063 | 9063 | | |
9064 | 9064 | | |
9065 | | - | |
| 9065 | + | |
9066 | 9066 | | |
9067 | 9067 | | |
9068 | 9068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
169 | 175 | | |
170 | 176 | | |
171 | 177 | | |
| |||
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
52 | 65 | | |
53 | 66 | | |
54 | 67 | | |
55 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
56 | 76 | | |
57 | 77 | | |
58 | 78 | | |
| |||
Lines changed: 4 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 70 | + | |
79 | 71 | | |
80 | 72 | | |
81 | 73 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
92 | 77 | | |
93 | 78 | | |
94 | 79 | | |
| |||
Lines changed: 53 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
| 142 | + | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
155 | | - | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
296 | 309 | | |
297 | 310 | | |
298 | 311 | | |
| |||
314 | 327 | | |
315 | 328 | | |
316 | 329 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
322 | 339 | | |
323 | 340 | | |
324 | 341 | | |
| |||
353 | 370 | | |
354 | 371 | | |
355 | 372 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
365 | 384 | | |
366 | 385 | | |
367 | 386 | | |
| |||
458 | 477 | | |
459 | 478 | | |
460 | 479 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
| 480 | + | |
465 | 481 | | |
466 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
467 | 490 | | |
468 | 491 | | |
469 | 492 | | |
| |||
473 | 496 | | |
474 | 497 | | |
475 | 498 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
| 499 | + | |
480 | 500 | | |
481 | 501 | | |
482 | 502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments