#6871 (Error when user registers as guest)

by Luc Saffre · in Developers · assigned to Luc Saffre

Kurzbeschreibung

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".


Kinder

Kommentare

  • 4 Monate, 1 Woche ago von Luc Saffre about #6871 (Error when user registers as guest) : I pushed my changes in lino and xl.
  • 4 Monate, 1 Woche ago von 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 Monate, 1 Woche ago von Luc Saffre Antwort auf 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 Monate, 1 Woche ago von Luc Saffre about #6871 (Error when user registers as guest) (1 Antwort) : Yes, something like this. It's a DaysTable, i.e. the "primary key" is the offset from today().
  • 4 Monate, 1 Woche ago von 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 Monate, 1 Woche ago von 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 Monate, 1 Woche ago von Luc Saffre about #6871 (Error when user registers as guest) : Created new Ticket #6871 (Error when user registers as guest).