Comments (14)
yes, i would think unique by data_id - has nothing to do with status.
from python-irodsclient.
agreed - should be fine - but could be less efficient / heavyweight when there are lots of objects to investigate/report.
workaround for 2.1.0 fixes the bug.
from python-irodsclient.
i think the set -> list thing is fine. we'll make it better later - let's just fix the bug now and make a new issue for optimization.
from python-irodsclient.
Permissions are per object - not per replica - so on first glance, I agree this double listing looks like a bug.
from python-irodsclient.
Indeed, seems like we perhaps need to make the ACLs query more "distinct", or hit the database for the replica with good status only, by default.
from python-irodsclient.
Seems the PRC should follow the same pattern as the filesystem library.
Notice the fetching of ACLs for a collection is handled via a specific query on L158 - ShowCollAcls
.
I'm pretty sure the filesystem logic was derived partly from the implementation of ils
.
from python-irodsclient.
the filesystem logic was derived partly from the implementation of ils.
i remember this as well.
from python-irodsclient.
Seems the PRC should follow the same pattern as the filesystem library.
Notice the fetching of ACLs for a collection is handled via a specific query on L158 -
ShowCollAcls
.I'm pretty sure the filesystem logic was derived partly from the implementation of
ils
.
Agreed, both should use the same logic. Switching over to use of a specific query is an extensive change however, so maybe a milestone of v3.0.0 for that, and make a different issue for it ? I've got a workable solution here that should be fine for v2.1.0, for the meantime.
from python-irodsclient.
agreed - should be fine - but could be less efficient / heavyweight when there are lots of objects to investigate/report.
workaround for 2.1.0 fixes the bug.
That's true. Another of many ways in which PRC (in current form) isn't optimal for efficiency. But at least the O(n) complexity is linear!
from python-irodsclient.
agreed - should be fine - but could be less efficient / heavyweight when there are lots of objects to investigate/report.
workaround for 2.1.0 fixes the bug.
There's another approach that might work better for efficiency, and that's to order_by
replica number and only process ACLs reported within the first set of rows, ie sharing the common replica number. Thoughts @trel @alanking @korydraughn ?
from python-irodsclient.
That sounds reasonable for now.
Switching over to use of a specific query is an extensive change however, so maybe a milestone of v3.0.0 for that, and make a different issue for it ?
What makes the switch an extensive change?
Is the retrieval of ACLs complicated?
from python-irodsclient.
That sounds reasonable for now.
Switching over to use of a specific query is an extensive change however, so maybe a milestone of v3.0.0 for that, and make a different issue for it ?
What makes the switch an extensive change? Is the retrieval of ACLs complicated?
Just that so far the bulk of the machinery is GenQuery based. A lot of code would change, was my meaning. In principle, no , the retrieval of the string fields from the DB rows is all that's necessary under the hood.
from python-irodsclient.
Got it.
from python-irodsclient.
Related Issues (20)
- Add support for library features API
- Add support for replica truncate API
- Add support for GenQuery2 API HOT 6
- TTL issue for pam_password with v2.0.0 HOT 15
- Document auxiliary test script setupssl.py HOT 6
- (in iRODS 4.3.2) an iRODSGroup cannot be removed HOT 1
- Prevent creating `iRODSUser` of type `rodsgroup` HOT 1
- Downloading large file to directory throws IsADirectoryError HOT 2
- Make error-passing interface more uniform HOT 1
- Make README clearer with regard to version references
- Trying to add and set non string metadata values raise different errors HOT 2
- Add support for client hints HOT 1
- Investigate interpreter segfault TODO comment for Python 3.6 vs 3.11
- question: is there a way to get events' results that can be captured in server, for example by `Rule`? HOT 4
- Add support for `get_library_features` API HOT 2
- Return better error on incorrectly constructing `iRODSAccess`
- For enumerating ACLs, PRC should follow ils's pattern and use of specific query
- Simplified acl check for a user
- irods.connection pool management (active vs idle) can go haywire HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-irodsclient.