stopstalk-deployment icon indicating copy to clipboard operation
stopstalk-deployment copied to clipboard

Handle cases when it get's invalid

Open raj454raj opened this issue 7 years ago • 2 comments
trafficstars

At present the retrieval script marks handles invalid but they don't delete the submissions from the submission table for the previously valid handle.

raj454raj avatar May 27 '18 18:05 raj454raj

Hi @raj454raj , can you explain the problem little more? (my understanding is - if a user first gives a valid handle, all his submissions get recorded under table submission. Afterward, he changes it to some other handle then the previous submissions under that handle name needs to be deleted from 'submission' table).

Sayak9495 avatar Jun 14 '18 20:06 Sayak9495

So for example: https://www.stopstalk.com/user/profile/tanujkhattar The current codeforces handle of the user is tanujkhattar. Now this handle is invalid because the user has changed it to Baba and hence we made an entry in invalid_handle table for tanujkhattar. At this point in submission retrieval, we also need to delete the codeforces submissions with previously valid handle.

raj454raj avatar Jun 14 '18 22:06 raj454raj