If I want to delete a tournament record that was created by another user in my group, what should I do?
A tournament with played games?
No. I mean tournament record. It is an option in the group.
Here. I mean right button option. Not middle.
Huh, guess I never added the button. The backend endpoint is there. For now you can do this manually by going to the tournament record, looking at the address bar to get the tournament record id:
then going to https://online-go.com/api/v1/tournament_records/IDHERE
and click the delete button there.
Anyone want a quick UI patch to do, should add a button to do that on the tournament record edit page
I want that patch!
I tried. Did not work. No reaction at all.
Same experience.
I would just like to echo my interest in seeing a way to delete these records added. In my group a lot of people played with the feature, but not a single record is genuine. I tried to manually delete a record using Aneokās manual fix method, but nothing happens when I click the DELETE button.
the work around doesnāt work
I need this to tidy up the mess that a few helpers have made in one of our tournament records In a sense the information is there, so not āabsolutely criticalā⦠but having a delete button for tournament records and for rounds within a tournament record seems so basic need to be still unresolved XD
@anoek , the suggested workaround fails, as loading that page gets a 404 error when looking for https://cdn.online-go.com/5.1/rest_framework/js/jquery-3.5.1.min.js . Thus jquery is not loaded and the page buttons are unresponsive.
I managed to actually erase a few tournament records and tournament rounds by manually creating the HTTP requests myself using curl, by copying the information from the browser dev-tools. It is probably best to add those delete buttons to the interface, but in case it helps anybody else, the curl requests I used were (you should change YOUR_SESSION_ID, YOUR_TOKEN and YOUR_USER_AGENT to the values you see in the browser devtools when logged in with your user):
To delete a Tournament Record:
curl -X DELETE -H āX-CSRFTOKEN: YOUR_TOKENā -H āupgrade-insecure-requests: 1ā -H āuser-agent: YOUR_USER_AGENTā -H āreferer: https://online-go.com/api/v1/tournament_records/1307ā -H ācookie: csrftoken=YOUR_TOKEN; sessionid=YOUR_SESSION_IDā āhttps://online-go.com/api/v1/tournament_records/1307ā
To delete a specific Tournament Record Round (must first look at the json shown in anoekās link to find the precise ID of the Round to delete), do exactly as above but the url in both referer and the DELETE request url itself should be something like https://online-go.com/api/v1/tournament_records/1307/rounds/1258
Wow, thanks for the detailed research and our appologies for not noticing sooner that there was at least a semi-urgent need. Iāll try poking anoek a bit to see if it might be prioritized a bit if itās a relatively easy fix.
Any updates on this?