GithubHelp home page GithubHelp logo

Not all models cascade deletes about apollo HOT 5 CLOSED

dodumosu avatar dodumosu commented on June 12, 2024
Not all models cascade deletes

from apollo.

Comments (5)

blynchNDI avatar blynchNDI commented on June 12, 2024

Thanks @dodumosu , this makes sense given what I was seeing

from apollo.

blynchNDI avatar blynchNDI commented on June 12, 2024

@dodumosu Just verifying that this is the same issue: when I go to delete anything from elections.demcloud.org (e.g. locations, participant sets, events, or forms), I get an error like the one below (in this case, when deleting a location)

Integrity error. (psycopg2.IntegrityError) null value in column "location_set_id" violates not-null constraint DETAIL: Failing row contains (11, d1, f, f, f, null, null). [SQL: 'UPDATE location_type SET location_set_id=%(location_set_id)s WHERE location_type.id = %(location_type_id)s'] [parameters: ({'location_set_id': None, 'location_type_id': 11}, {'location_set_id': None, 'location_type_id': 12}, {'location_set_id': None, 'location_type_id': 13})] (Background on this error at: http://sqlalche.me/e/gkpj)

from apollo.

dodumosu avatar dodumosu commented on June 12, 2024

@takinbo @stigsfoot @blynchNDI just want to point out that if we allow deletes on location or participant sets (ie, we enable the cascade delete), everything that depends on that data will be deleted too. for example, if you have checklists that are linked to the participant or location set, they will be deleted too. So, do we want to enable deletes or disable them?

from apollo.

takinbo avatar takinbo commented on June 12, 2024

reviewing #95

from apollo.

takinbo avatar takinbo commented on June 12, 2024

resolved.

from apollo.

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.