cr-api-ux
cr-api-ux copied to clipboard
Clan War Analytics: Display all current members (including non-participants)
From Discord. User @doktoraxt#2658 Use case to test https://royaleapi.com/clan/9GG2VRPU/war/analytics
What you need to get the member who haven't participated in a cw are the two following lists:
- List of clanmembers at the moment when the cw was started (can we get this?)
- List of member who have participated in the cw
And then basically compare the two lists for the difference.
There is no way for us to know ahead of time which clan will need this data. Our site does not presume that every clan will need it.
I am fully aware that what needs to be done if I had to track it for a few clans (e.g. my own). However, it is not possible for the website to know which clan will require this functionality. Doing so for everyone where 99% of the time it will not be used would be very costly for us given our limited system resources.
So what you will get right now is what I’ve suggested. Compare current members only. If you need to track it per war, you can write an app with our API.
I would also like to add that even if I could schedule a task to execute by the time the war ends, if the queue is long and the task has missed its mark, it will not be fetched successfully. As you know, the collection day data vanishes by the time war day starts.
And if I were to leave a buffer of, e.g. 10 minutes before collection ends, if people decide to play their collection battles the very last minute, it would not be accurate.
My gut is that since I can’t control if the task can be executed on the dot or not, I would rather not make any promises that the site will be able to log it.
What I will do instead is try to work with Supercell to get those fields available instead of trying to work on workarounds where it’s not necessarily guaranteed to execute.
First of all thanks for your investigation in this issue. Your method of comparing with current members will fit my needs. But first I have to introduce me to the API and find out with what language I can realize that kind of function.
I hope Supercell can provide that data so that we can work with it and create features in order to do simple management tasks. I think every intermediate clan leader wants to keep track of cw activity, e.g. the members who haven't participated in two cws in a row. That would be one functionality but really useful.