Giter Site home page Giter Site logo

bug: Functionality Bug about dashpress HOT 4 CLOSED

dashpresshq avatar dashpresshq commented on August 14, 2024
bug: Functionality Bug

from dashpress.

Comments (4)

thrownullexception avatar thrownullexception commented on August 14, 2024 1

Thanks @MuhammadAliashraf

The issue is not with DashPress but with the film_actor table. The issue is that this table does not have a primary key so it doesn't know which ID to select. If you try selecting multiple items on tables with a primary key (e.g https://demo.dashpress.io/admin/customer), this will not happen
There is no code change from my end to fix this issue other than to add a primary key to the database. Will look into adding a primary key for the table though

from dashpress.

MuhammadAliashraf avatar MuhammadAliashraf commented on August 14, 2024

@thrownullexception
Thanks

from dashpress.

thrownullexception avatar thrownullexception commented on August 14, 2024

Taking a look now I see why my checks are not even working, because I wrote this

"This entity doesn't have a primary key. Kindly ask your administrator to add one then restart the application and this error will go away."

And I check the schema and I see this

Screenshot 2024-05-06 at 16 28 56

The film_actor has a two primary keys which is problematic for Dashpress, so I will update the logic of the code above to also error out of the number of primary keys is not equal to one.

Thanks for reporting this issue

from dashpress.

thrownullexception avatar thrownullexception commented on August 14, 2024

Added checks to block actions when there are multiple primary IDs, Won't solve this issue in particular but users will get the error when they try to performs on the entity

from dashpress.

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.