Coder Social home page Coder Social logo

index bases clean up (dangling) about devpi HOT 6 OPEN

devpi avatar devpi commented on June 4, 2024
index bases clean up (dangling)

from devpi.

Comments (6)

devpi-bot avatar devpi-bot commented on June 4, 2024

Original comment by @hpk42

we need to think about how to keep indices relations consistent. Could you maybe jump on IRC to #devpi on irc.freenode.net?

from devpi.

devpi-bot avatar devpi-bot commented on June 4, 2024

Original comment by @hpk42

Should index deletion be rejected when someone else inherits from it?

from devpi.

devpi-bot avatar devpi-bot commented on June 4, 2024

Original comment by @lbrack

That's a good question. It does make sense to reject it if someone inherits from it (at least another user).

But then, the draw back is if I create myself a sandbox, someone sees it and uses it as base, then I would have to chase that person around.

So I am wondering if we could do the following:

I am thinking in the line of public, protected and private.

  • public means that anyone can see it, and use it as a base
  • protected means that everyone can see it but can not use it as a base
  • private only the owner see this (maybe this is too much)

But again, we are adding complexity which might not be needed.

However I can see a scenario where Jane inherits from one of my index. I don't know she does, and delete my index, messing her environment.

Even worst, we have the GTI prod index, and someone, by accident deletes it. Ouch.

from devpi.

devpi-bot avatar devpi-bot commented on June 4, 2024

Original comment by @hpk42

What about preventing deletion of an index that is non-volatile? Volatile so far means that you can overwrite releases and release files on upload but we can extend the meaning to make an index non-volatile. a Prod index would be non-volatile. I just switched even hpk/dev to non-volatile.

from devpi.

devpi-bot avatar devpi-bot commented on June 4, 2024

Original comment by @lbrack

Yup. It makes a lot of sense. A dev index is by definition something that is subject to flux.

so basically if an index is non-volatile and is a base to another index, it can't be deleted. Obviously could change from non-volatile to volatile but at least there is some warning.

from devpi.

devpi-bot avatar devpi-bot commented on June 4, 2024

Original comment by @lbrack

One other thing to keep in mind. Deleting a user that has a non-volatile index which is used by someone else should be forbidden.

I will add a test case as a reminder

from devpi.

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.