GithubHelp home page GithubHelp logo

Comments (6)

nuwang avatar nuwang commented on August 28, 2024 1

I have this vague recollection that the GCE provider was running into similar issues. It makes sense I guess, since there are potentially thousands of images, and it doesn't make sense to page through them all - you'd typically want to find a particular image by name, architecture or some other attribute.

What if we do this - calling list() by default adds the "Owned by me" filter? If you call find() though, that default filter is removed, and the user-specified filter takes effect. We could even make it part of the Image.list()'s definition. By default, it only lists images in tenancy/project/account. But find() will search through all public and private images.

from cloudbridge.

afgane avatar afgane commented on August 28, 2024

The AWS dashboard lists Owned by me images by default so I'd say that's a reasonable default for us as well. However, it's a bit undesirable that such filtering applies to AWS only though.

from cloudbridge.

nuwang avatar nuwang commented on August 28, 2024

Conclusion: By default, list will show images belonging to the project. However, if you do a "find", it searches everything. Have parameter filter_by_owner=True/False

from cloudbridge.

afgane avatar afgane commented on August 28, 2024

I added the filtering but I don't recall if we said the filter_by_owner should be added at the interface level and hence implemented for all the providers or something else?

from cloudbridge.

nuwang avatar nuwang commented on August 28, 2024

Yes, the conclusion was to add it at interface level for all providers for the list method, but remove it when doing a find etc.

from cloudbridge.

afgane avatar afgane commented on August 28, 2024

Finished up with c7b46a3

from cloudbridge.

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.