Coder Social home page Coder Social logo

Comments (14)

trel avatar trel commented on August 16, 2024 2

yes, i would think unique by data_id - has nothing to do with status.

from python-irodsclient.

trel avatar trel commented on August 16, 2024 1

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.

trel avatar trel commented on August 16, 2024 1

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.

trel avatar trel commented on August 16, 2024

Permissions are per object - not per replica - so on first glance, I agree this double listing looks like a bug.

from python-irodsclient.

d-w-moore avatar d-w-moore commented on August 16, 2024

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.

korydraughn avatar korydraughn commented on August 16, 2024

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.

trel avatar trel commented on August 16, 2024

the filesystem logic was derived partly from the implementation of ils.

i remember this as well.

from python-irodsclient.

d-w-moore avatar d-w-moore commented on August 16, 2024

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.

d-w-moore avatar d-w-moore commented on August 16, 2024

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.

d-w-moore avatar d-w-moore commented on August 16, 2024

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.

korydraughn avatar korydraughn commented on August 16, 2024

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.

d-w-moore avatar d-w-moore commented on August 16, 2024

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.

korydraughn avatar korydraughn commented on August 16, 2024

Got it.

from python-irodsclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.