#6871 (Error when user registers as guest)
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
In patrols1, sign in as some normal user ("Steward"), then click on a ⚑ to register as a guest in some event. The action works successfully (green balloon message), but the refresh afterwards fails and causes a red balloon "Bad request", the server process says "ValueError: invalid literal for int() with base 10: 'undefined'" and "Not Found: /api/patrols/PatrolsPlanner/undefined".
Concepts sous-jacents
Commentaires
- 4 mois, 1 semaine ago by Luc Saffre about #6871 (Error when user registers as guest) : I pushed my changes in lino and xl.
- 4 mois, 1 semaine ago by Luc Saffre about #6871 (Error when user registers as guest) : Wow, this was subtle, but I think I got it now (waiting for the test suite to pass). I had to change a rule in Store.init_store() : When it doesn't find the primary key in grid_fields, it no longer raises an exception but sets Store.pk to None (which basically means that the actor is readonly).
- 4 mois, 1 semaine ago by Luc Saffre in reply to Luc Saffre about #6871 (Error when user registers as guest) : I must write a get_pk_field() method because otherwise the Store.pk is None.
- 4 mois, 1 semaine ago by Luc Saffre about #6871 (Error when user registers as guest) (1 reply) : Yes, something like this. It's a DaysTable, i.e. the "primary key" is the offset from today().
- 4 mois, 1 semaine ago by Sharif Mehedi about #6871 (Error when user registers as guest) : Could it be because these rows has no "pk" field? And if there's no "pk", then we will have to figure out another a way to query the related row.
- 4 mois, 1 semaine ago by Luc Saffre about #6871 (Error when user registers as guest) : @8lurry here is a little task for you, probably related to the refresh per row in the Patrols planner. Make sure to pull the latest version before lookin at this.
- 4 mois, 1 semaine ago by Luc Saffre about #6871 (Error when user registers as guest) : Created new Ticket #6871 (Error when user registers as guest).