louking / rrwebapp

Race Results Web Application
0 stars 1 forks source link

DataTables warning when accessing race from earlier year #343

Open louking opened 5 years ago

louking commented 5 years ago

From Mike Kearney:

Just an FYI on a warning I saw this morning. I know you catch these things in the log, so I thought I'd describe what I did to cause it.

I received a race result from Jamie Wisz, for the YMCA Santa Run in

  1. Went to scoretility, switched club to 2018 FSRC Racing Team, went to Races > YMCA Santa Run > Results > Edit Participants, received the 'scoretility says' popup with text: DataTables warning: table id=_rrwebapp-table-editparticipants - Requested unknown parameter 'runnerid' for row 0, column 8. For more information about this error, please see http://datatables.net/tn/4

Clicked OK and got list of participants. Jamie's result was already there, so I didn't need to enter it again.

In documenting the above for this note, I repeated the process and it generated the warning again.

Then I entered some races and results for 2019 FSRC Racing Team races, and didn't encounter the warning again. I hope that helps.

louking commented 5 years ago

Does this happens because the member list used isn't from last year, confusing the data in scoretility's response when trying to bring up the race table?

Also see on console

DataTables warning: table id=_rrwebapp-table-editparticipants - Possible column misalignment. For more information about this error, please see http://datatables.net/tn/6

Response contained

{"data":[{"age":33,"club":"","confirm":true,"disposition":"definite","gender":"M","hometown":"","id":"183591","membertype":"member","place":"1.0","resultname":"Dustin Campion","runnerid":"2135","time":"39:36"},{"age":44,"club":"","confirm":true,"disposition":"definite","gender":"F","hometown":"","id":"183592","membertype":"member","place":"2.0","resultname":"Claire Heasman","runnerid":"3780","time":"39:44"},{"age":39,"club":"","confirm":true,"disposition":"","gender":"M","hometown":"","id":"183593","membertype":"","place":"3.0","resultname":"Andrew Daniels","runnerid":"None","time":"40:11"},{"age":32,"club":"","confirm":true,"disposition":"","gender":"M","hometown":"","id":"183594","membertype":"","place":"4.0","resultname":"Javier Montenegro","runnerid":"None","time":"40:17"},{"age":46,"club":"","confirm":true,"disposition":"definite","gender":"M","hometown":"","id":"183595","membertype":"member","place":"5.0","resultname":"Michael Geisler","runnerid":"2464","time":"41:35"},{"age":28,"club":"","confirm":true,"disposition":"definite","gender":"F","hometown":"","id":"183596","membertype":"member","place":"6.0","resultname":"Jamie Wisz","runnerid":"2500","time":"44:14"},{"age":41,"club":"","confirm":true,"disposition":"","gender":"M","hometown":"","id":"183597","membertype":"","place":"7.0","resultname":"Jason Stevens","runnerid":"None","time":"46:13"},{"age":53,"club":"","confirm":true,"disposition":"","gender":"M","hometown":"","id":"183598","membertype":"","place":"8.0","resultname":"John Way","runnerid":"None","time":"46:56"},{"age":38,"club":"","confirm":true,"disposition":"","gender":"F","hometown":"","id":"183599","membertype":"","place":"9.0","resultname":"Erica Mccann","runnerid":"None","time":"47:08"},{"age":36,"club":"","confirm":true,"disposition":"","gender":"F","hometown":"","id":"183600","membertype":"","place":"10.0","resultname":"Katharine Warehime","runnerid":"None","time":"47:40"}],"draw":"2","recordsFiltered":"45","recordsTotal":"45","tableselects":{},"yadcf_data_5":["","definite","similar","missed"]}

Good response (from current year) contains:

{"data":[{"age":46,"club":"","confirm":true,"disposition":"definite","gender":"M","hometown":"","id":"183769","membertype":"member","place":"0.0","resultname":"Michael Geisler","runnerid":"2464","time":"25:36"}],"draw":"2","recordsFiltered":"1","recordsTotal":"1","tableselects":{},"yadcf_data_5":["","definite","similar","missed"]}

louking commented 5 years ago

See also #192