bug in club members endpoint: members in "all_time" who have been online in the last week

Sort:
skelos

I'm seeing some club members show up in the "all_time" group or "monthly" whom I expected to be in "weekly". At first I put it down to caching (one had been away and returned ~24-36 hours ago) but this one is plain wrong.

 

Documentation:

https://www.chess.com/news/view/published-data-api#pubapi-endpoint-club-members

Endpoint:

https://api.chess.com/pub/club/asger-s-great-viking-warriors/members

skelos

A big chunk of data, but I don't want a cache refresh to render this bug report "well, maybe he was confused ... let's see if it happens again" happy.png  (Been there, done that, both sides.)

 

https://api.chess.com/pub/club/asger-s-great-viking-warriors/members

{"weekly":["12345_54321","50lashes","abdul_bismilla","aimaxe_97","ajchandler","akv70","alojzi","amitdhoundiyal","anangelofmidnite","andrewevans1","ash_xyz","atlos","baldorama","bezerker3","bigliz","bison63","bitkus","bkellner","blitzcrige","blixtochdunder","bosnian_assassin","brainismr","brianonline","chelseasteve","cherkazky","christertungard","christiansloper","chrweis","chuck037","chuddog","crazykiing","d2einar","defters24","devitoria","diftsara","dj_haubi","duck1897","eppo247","eristwiederda","escksn","escud1972","exmexicano","faceless86","firebreathingcookie","fisker62","fkar","flchessplayer","fossefoss","fritzgart","geographos","getwet","gmlucki64","goofers","hamoush","hasager","hayk1965","herdwars","hisholynoodliness","igorviking","ilmave","ironicatlas","jakobolsen","jamiedelarosa","jm2007","johnnyrussell1950","johntoft","jouldax","judahworrell","kaspariano","kenneth_r","killerking97","kk0407","kmarsal","krukus","kynas","ladh3","larkis","larloch","lepalamede","lizzard63","lord_axe","lordasbury","lt_jilli","ludovicoxxx","luis_albert","lynkowsky","manaci","manchanag","mardesebas","mathewpovarenko","matussadlon1","mcaffarelli","michaelsiena","michealwelsh","ming27688","moliin","mono_loco","mortensf87","mrploy","mrulekleiv","multiwebcreation","nilocra_the_white","nqmaime","ntn42","obi707","obivan","olerandom","olipalsson","once_again_chess","orangutangen","osdalen","ouroborus2013","ove","ozimov13","parvizzakeri","pastuszek","pentala","peshkach","piaten","pixilateddoctor","pmjm61","poete-sans-boheme","pougelstad","prophetessmio","rakchitha","ramjen23","rampantlou","reti1","rhutcheson","rjdavison","robimot","rochess123","rudluk","ruler_of_gods","runelindberg","runetonseth","saroz","serg222","shakstori","skelos","snehasishmondal","snowshinedog","sojgoon","solarsapien","stanop","stealthdodger","steikt","stormram","sunterraman","szaszzo66","taigabluez","tania_singh","tapirello","tatalilisky","tatiyna1962","teamojenny","tekila63","termesz","thebig_lebowski","therong12","tigernet","tipper58","tom_lothbrok","tomasz13","treinadorbr","trimitziosp7","ukraine43","valeriobc","varego","vasgal","vikingsdevil","weeding45","zuzubolin"],"monthly":["124augie","1976brasilrecife","abdosaif7265","ady-tlr","akilo","aldapeta123","alex2298","alytrel","amirpr","anderskjbengtsson","anshk09","antibac","artur_owidzki","arvhell12","asmund_hammerstad","awnih","azztheghostmonkey","beerliker","bestever","bgnew","bjornborgkj","bjornivarsson","bobslo1611","carlosniembro1","celeron","cetus65","cf_garza","charlemagnedk","chawk57charle","chessking2151","cobrahenz","coffeechess4096","countofmontecristo","crazyzim","croc99","cunbra","dadoom","dale00007","danatlant","darrinm","deadmoroz13","deafknightmare","deiorojo","destoyer2","ding_delacruz","dl777","domkubidom","dpinnow59","dragonspaw","edwinaugustus","elcaballerobrk","emir144","espenp","falcon79","falconfire837","fammy","fernandortizf","ffilip2010","fhjull_forked_tongue","fiela","fitil","flenser","fourthy","francisco403","fraserjcamero","freddy1201","friedhof","fubar_slappstrand","gabe_h_coud","garyrz","george_riva","ggschile","gianni-gianni","gjedde67","grabaker","grebleif","groggynoggin","guoguo713_hoboken","halfamoonknight","halldorbrynjarhalldo","hammermark","haraldchess","henningward","hermanduggal","holden666","holft","holy_wars","huskatta","huttetu","iacob_dorin","iamunderrated","ilanmarcuschamer","impractical","ingrid2","iseptemberyou2","jandevlieger","jardeste","jer0226","jessboy72","jonesxesc","josegabrielmorenocam","jozzee","jr61621988","kargo79","kenjr","kentcomposer","klarsen","koustavchatterjee1","ksilen5","laburlanegra","leglessrover","lexus1979","liamchez","lonewolf71","lt2adnan","martijn25","mashtamich","mastaroov","matjo","mgruizb","mickeydeadguys","mikaelc","militrov","misterkez","mitzikate","mohamed-hany","mondgesichtstiger","moonwalker106","morphic_6","mrsunto9","muppetwarrior","nitoy","noresign","nostrademus","obeaston","olafur","oliver1518","osazenomwan","otherdog-101","oysteingul","parappo","pauloclement","pawnrook4","petr_zacek","pilotnavs","plywood64","pollakandras","poya960","pripor","pusnes","ragna_rock","rahimchavoshi","ramesh_bath","reddalek","runningpawnz88","sasakg034","saurosol","scarface323","sergerybkin","shahmata2015","shinu_hito","shortcastle","silver_assassin","sjakk123a","skakmadam","solimoo","spieman_87","sretendjokic","starwex","sturgeon60","subarusti","sulle","svarozhich77","teate70","texwilson","theresalion","thestrongviking","toloczko","tombrasil","tosivanecu","tripplish","trmann","ulfhednar_b0ss","ultimate_sanji","undersun","universityofpawns","uzabacek","valeksk","vg_","vikingchucky","villanezco","vishvaschopra","vladakis70","vladioc","wallentino","wenlock","wgm_adriana_nikolova","xristosgikas","yogininja","zamir_zvi","zelivsky","zorro2030","zudukis"],"all_time":["24gar26","7inchess","a_mak22","a-alekhine","a7med8_4","abdulla1984","aboel","abomalk","aborroto","acceptacio","acebai","adamsrj","adorjan13","adumbrate","aetolus","afghan_champ","agadmator","akacso","aknightslayer","akshi1102","akszone","alejandro808","aleksandradar","alex28032013","alexander-d-knudsen","alexasor","alexb24376","alfito2012","alien43","alnemr3000","amin_z","anderstz","andresito_ok","andrewllll","andreyvikche","anna1705","antea2005","antibrot","antisocialska","anvari-hasan","apelmahmud","ar_pharazon","aracine","ardiyono","areg37","arildto","arnaudovp","arodin","arthar1985","aryantari","askaar","askim-s","atomen","audg","augustin","axamaxa","ayad33","azibok","bad_santa","badtrouble","baecksan","bank2010","barkwest","bbaxley","bengie_reyna","benis71","benthestad","berning","bestibyen","biagionex","bihin2003","bimi-2016","bjorge","bjornkro","blue-parrot","blyantkvesseren","bobbiesfissure","bogcsab","boggen","bolivia51","bollarius75","boltonole","booshaka13","boowolf","botanicalknight","brahmant","brainiac20","brightthunder","broderaage","brooklandrunner","brucelee617","buckethead24","burcinaydo","c-carlsen","caballero1965","calafell","calixtus","camulosian","captainculpa","casanovanano","casodk","cc_v","cedrhask","chameleoniasa","chaostheory7","cheesesmog","chessmanone111","chessplayer2007","chessprio","chevy_chess","christianjessen","ciprianmariusciprian","clarke109","cleonvictor","colben","coldwildchessman","comunard","consciousuniverse","cosmufc","couldhavebeen","crazyfox6","crazyhorse_3","crazypatrasie","cristianandresvalle1","crossito","crushed0_0","cryingcat","cslaci_hun","curona","cybernaattori","cyebog","dabbistef","dagallardo","daniel_elessar","danieljhama","danielvr55","danijelviking","danny_abuzaina","dannyjjm","dapr","davide_sst","davkrot","daywalker01","dddpsm","defense_player","degmxn","demonmate","dgomata","dimonthu","djamelaldin","djonniderevnja","docmarif","doctortoncich1962","dr_euwe","drgrausam","e4player321","earliebird","eftanaz","egypt-pharaoh","eirikhp","eliasnmt","ellisjo","elmono","elomaspeor","elparfait","emhingchess","emilbah","emileagle","en0rm","eng_mahmoud_badr","eos71","eseles","espengisvold","esurytas","euntae00","eval","evenius","evgeniymilman","fab05rav07","fabricewantiez","fahro70","farzadviva","fatihcaliskan","fearnoevil12","fearnone23","ferdiant","fleksnes","fondasmakris","fourbet","francine65","frank_v","freddy_the_viking","frodehansen","frog_eater","frykman72","fxtrader1976","gabogabbiani","geeneth_p","germanyredbulls","ghetsemane","giegas","gilhoyle","giru-sp","gislex","gluecifer7","gm_undefeatable12345","gmamtzad","gmemmy","goldenmiddle","goldenslumbers","gonam3","gonsw","gpjeriksson","grabovetz68","grave_digger","grayjaguar","greenbull1","gregalain","greytimberwolf","groovyaaron","gs096","gsarenas","gtbsgajd","gusgasv","gustavomoraisnunes","halgilde","hamadataman","hansensong","hansviking","happybeavr","hargest","hartsteen","hartsteen2","heavyduty90","heidevolk","hells-gates","henriauer","henryedwardbird","hightower1","himmelon","hitorkoal","hjosic","hkp08","holdemrulzok","horielov_dima","houdini4a","howdy19","hph1989","htoenset","hudman653","hummingbird313","hyttegaarden","iceciara2010","icellist","igor1979","igor63638490","ikisa","il-duce","ilhamachess98","immortalchessgames","imperfectforce","inbetweenmove","inigz","interactiveconstruct","iqtedar_uddin","ishaqueali","ivander47","ivcuks","jackbauer111111","jagreubensingh","jameel_alsodany","jan-magnus","janroger","jcnyflot","jdonadeu","jeague","jeevan22","jeffroj51","jergo","jeziur","jhonnykemon","jimluisi","jlcarballo","jocoma","joelynch","joeybo32","johannesh","johnarkw","johnnyandersen","joker981","jolonimp2013","jonbrep","joncar","jonhatancb99","jrod44thatcher","jruse","jtf82","juhomorko","justinbrown17","jvcmhacker","jyoti-samtaney","k527","kamabarus","kapral55","karangtarunasemarang","karlbeyleveld","karygasparov1970","kasparsyn","kdshax","keithnunemaker","kemo4chess","kenshn_himura","king_almado","king_of_the_wing","kirrenor","kkqf7","klundem","knoette","koasha38","konrad_stang","kpo1","krasnopuz","kristenk","krvn","kwalak","kwillu","kyrylo26","lakandiwa","lamartyr","lambretta05","larajanzelj","last_golden_knight","lawrenceallie","lazytony54","lcviking","leahcimsa","leeminogue","leeviandtheleavings","leffa","leokaizer","leon1590","lgermanojr","lieutenant_gothmog","lightningdragon13","like-a-hurricane","lillefigo","lirkerud","lordarash999","lovelyandsmart","lowliestpawn","luis_aga_rd20_qc","luiscarlos38","luka567","lunde42","luxlucisvia","ma-se-kind","mads-nilsen","magand1985","magjak99","magnuscarlsen","magnusstuhr","mahosny1","maksimdesh","maltrey22","maningadriatico","mannysantos","marcusvs","marsnielson","marty310","masterbooboo","mastersteen2001","matebin","mateusplima","mating_maestro","matornen","mattismike123","mattosuonato","maverick_jones","maxchessfun","maximpissaroglo","mcamrod","mccarthus","mdb999","mdestroyer20","mehi8320","merimmxmx","merlar","mers65","mester2","mestermoeller","michaeldale","michaeldonald","miguelna","mihailmesser","mikee9900sbca","mikey13xm","mikhail646464","miklille","milleoscar","misterb111","mitsurud","mjauert","mmilne95","mnesje","mnsaliou","mohamadhadad1980","molecatcher","momo-nk","motrok","mounirfandi","mozart9","mrruiter","mrseven","mrvilla","muwarriorz","mvoptimist","n1llectr","nachocardona","nakorn","nannetoer","napoleon1869","nayrbsoculab","neilneilorangepeel","nephi_r","nexthawk","nhat-minh","nickdpad","ninadkulkarni39","ninjakiwi17","nkd2","nol28","norskchessforce","norway72111","notsostrongamateur64","notsoverygood","novoselic","nparma","ntgchess1233","obvold","octoberjoel","oleppedersen","oleschmidt","oqfi","oslojohan","othalberg","outposter","pacovalez","paiania","panta13","pappahole","passant54","paul_the_best_morphy","pckodak","peeuukoo","pepferre","perbacco","peskarov","petross1","phelipedasilva","philbertsky","pipoca2007","pjkjnj","poliken","praneshrambaran","prat10","primepawn","psykologknutsen","punsj","puntozero","puuntuuppaaja","quequeg","rabblebabble","radli","rahara1988","rajukaju123","ramanvis1988","randomnessity","ratiti","rayiyo","razzarainbow","rchaney","redbear11","refaee1970","regbarono","reneshin","renoreiness","reyrambler1960","rez77665","richied2601","ricky1969","riza92","rmortensen88","rnkingkiller","rob234","robersm","robertos45","roger987","rolfch11","romanignatenko","ronaldsolon","rookpete","rst2003","rulerofmind2","runerosin","runnerking","ruutu","sabtatano38","saddammalek","sadudin","sanqui14","santhoshg18","sappata","satyanugrahaputra","saurbh_751","savdmitry","savvyfellow","sawmynadenvicken","schincariol","scorpion42","scurly","seebi99","sergeylysenko","sergilo","sergiop69","seth_2500","shab221","shadow-storm","shakkikameli","shaunpa","sherifosman111","shimosingh","shlakovik","shreyasbangera33","shuffleking74","shy-man","sidarsecereli","sigurbjorn","silent_venom","simen2251","sioux02","sirleo77","sispal","sjakklek","sjohanse","skeevv","skorreborre","sm00th_0perat0r","smiljko","soleno","soloshere","sonofthunder2","sorrentinoumberto","sotirispiano","spaceguru500","spartacus25","spartak1978","spiritual_warrior","spizzirri","sporh","st-sandavagur","steve-kopite-lfc","stianrygg","stirred-not-shaken","stolheis","stolteagf","sunny_star","superaguila12","superhogne","svd27","swarnava-biswas","sweinreich","szejkusek","szeprozse","t-loughry","tareid2","tehojisi","terry222","teyyub","tgud","the_viking_king","thenomnomfactor","thomaq1964","thomasks07","thorse92","tiggerchess","timator","timothydahle","tinatinzee","tinesorli","tizzee","tklovning","tommyrexmortensen","tontonmacoutes","tonyfitz7","toppo48","torfredrik","toverlier","trogar","troger14","tronan","tronni","trurojoe","tryinglearn","trysilgutten","trysilknut69","tteshan","u4ia","uncleehewlett","undenas","unripe","vbrobakk","ved1240","vedlad","vegvaa","verniedeck","veyronguy","vhsmaltedmilk","vibhutanwar","victorhugoarevalo","victormanolo","vik9612","viking29","vinzer","virdi1966","vishy1112","volleychess","wallyweinberger","wasaker","waynemcdougall","wezzzzz","whosnextt","wile-e_coyote","willyviking","xarly_glamour","xenomorphs","xisco949","xx_leo_xx","xyz7","yavuz45","yess79","yigor","ys_kanwar","yugveer","yureesystem","zainal1905","zavodsky","zazzzzen","zigram","ziyad_habeel_shamoy","zodiacknight18","zombitroid"]}
skelos

In there is a a link for @CedrHask whom I've been playing vote chess with; he might be able to be tracked by his posts and votes in fact.

Profile:

https://www.chess.com/news/view/published-data-api#pubapi-endpoint-player

https://api.chess.com/pub/player/cedrhask

 

{"avatar":"https://images.chesscomfiles.com/uploads/v1/user/2017020.e7c7a9ff.200x200o.3d8df93596c6.jpeg","player_id":2017020,"@id":"https://api.chess.com/pub/player/cedrhask","name":"Cedrik Haskovec","username":"cedrhask","title":"NM","followers":50,"country":"https://api.chess.com/pub/country/CZ","location":"Prague","last_online":1517779454,"joined":1246966895,"status":"premium"}
skelos

"last_online":1517779454

$ perl -e 'print scalar(gmtime(1517779454)), "\n"'

Sun Feb  4 21:24:14 2018

 

A little different to turning up in "all_time" as he is shown to be in post #2.

 

If the profile is trustworthy I can use it, and sometimes I need data from it anyway in which case it's free, but if I don't need data from the profile looking up a few hundred member profiles for the size of teams I'm working with is unattractive. Which is news to nobody I guess as I suppose I'm stating the obvious. sad.png

andreamorandini

@skelos We have updated how often the Club Members endpoint is refreshed. It should happen every time a member visits the Club. This should help to keep the data fresh.

skelos

Updated for everyone, or only for that member? Because I'm still seeing dubious data, and believe I'll have to switch to per-member profile data and last_login.

 

My current example is @bulletheadbilly and Black Stone:

 

{"weekly":["abomalk","adriancook","aeverhart","aflfooty","aidin300","amitdhoundiyal","anaishac","anandplfan","ay1987","balkanski","barredowl","besaswp","bezerramedeiros","blackdarkking","bramia","bsaeagle60","bwalmer","byronnottingham","chesstopher63","chessweiqi","chuddog","cjpoulton","clunkyer","ddebeys","deeplyconfused","demon_suckfish","dirkjnr","djpossum","dutchkiwi","elpumo","epiphone339","fenrissaga","fiddletim","firebreathingcookie","flabbi","harunawie","herdwars","homestand","igorviking","ilmave","imby100","ingrid2","jan60","javier_pina","jcsk8","jimmiejoe","juceaser","kamondelious","karnakatz","kenbenton","kevinilsley","knightburgler","knights-rule","lachezarturbinov","ladyofthe_knight","le2418","materanger","mattisle","mike_reid","newfischer78","nicky66","nightcross","nussya","olegmalikov1965","olivari777","pabloandres","panchromatic","paulpogba007","pouncingpawn","prophetessmio","ramon_nijenhuis","revruckus","richardchen5064","roevik","sai","schubi10","skelos","st-sandavagur","stanop","svarozhich77","svensp","sweetpotato777","szaszzo66","tania_singh","thebig_lebowski","vladioc","wind","xico_xico","ythatmove","zenwabi"],"monthly":["adhamhashemi","alexb24376","ancientknightbob","anthonynd","ardengo77","ardkeen","boyetalvarado123","buhawon","bulletheadbilly","ceyhunm","chivasia","coolchessstar","er_is_geen_hoop_meer","escksn","esiharas","fridaygift","ginesillopasamonte","giorgiu111","graveyardfool","greenoak","henryedwardbird","islacrete","itude","janlisy","jardeste","jnable","kauka07","kruntana","lagart","leglessrover","lennybond","locri","malcolmfancy","mars6400","miaoiao","oleppedersen","paddy1962","patrickkersjes","pawnrook4","pocoloco-1","policydebater","popparaj","prashant8246","president0806","robbie_1969","robertorr57","rybakovafish","saltydog727","shlakovik","sleeper61","sleepingbeauty","spindr8","t29gr","taras22","temo1877","thnikka","urbnfaun","whitedrake","whosnextt","xenophon98"],"all_time":["10sandertemmerman10","a_mak22","a-golf","aalquimista","abhinavath","aestheticfit","ahmedgafarelhadi","aldek","aleksandrdmitrievich","alraisi-oman","amaralf","ammo1234","anderstz","andrewwright3","ashaen","auro9891233200","babel21","babybanana","bala6391","berniekong","bigt111210","bongdavid","boystan","brainspoiler64","brandonpeng","britishlightning","broj1tnt","brucelee617","bumerang1968","cacvx","casanovanano","cassiuss","ch1tau","charles1564","chawk57charle","checker02","chess007guy","chess007win","chesscraf0212","chessking2151","chessmanone111","chessnutcafe","chewming","chkm8t","chocolatekettle","cicuskam","colonelbash","colthejock","coolingpiece","cooltactician","cornered_queen","cozmaion80","cyberbandya007","cyebog","darkvoidll","dash-mate","derangriff","designabot","destroyerjm","diamondest","dibriano","domari_nolo","dr_jokes","drclovertop","drmrdave","dukenukem123","dulein","e2toe4chkmate","ekaterine7","elcarpintero","empr14","enigmakm","eyadmfayyumi","f_e","far_zam2","ferchoca","fikri_afiq-01","florimismaili","fumblingdeer","gagagarde","gangnam__style","geeneth_p","ghorob","gioser093","gmall64","gmeili","goldenmiddle","gorillabaker","grandepara","gromilo140","groovyaaron","gustavtropolo","halfamoonknight","hamadktor","hanran16","harris1995","hattie88","hideghost","hishmeister","hitt0","horseshoeknight","hummingbird313","hydrofluoricacid","hyvuvfu","ilanmarcuschamer","immortalmove","incorrectname","inversesrevni","iris_3","ishaqueali","ismacarlsen","itarkar","jackdaw66","jacs11","javaline","jeromeariola","jerry1228","jessesoplas6","jocoma","joeysgone","jong_alagano","joseka400","judgeday","jvcmhacker","kaigolden","kapivara","kenorion","kermadec01","khamssoussou","kings_indian05","kobi1004","ksking444","kyawswar091","lalasonowal","lamar1974","lenx47","lightningdragon13","lirno","longshot1710","luiscarlos38","luisefren01","lulvleelaw","magicianfromriga6061","mahade12","maksim92","master_am","mathperson2015","matthewgilbert1971","may0r","mcris","medutis88","merlar","midwestman","mikhalot","mitsurud","mlatematicar","mollib2003","montebaby","mrkovex","msrk1983","mt1969","mukul_d","muwarriorz","nandodorea","narenrh","neutrino2039","newchessstar","nicholasenglish42","nkd2","officialhero","olinili","omnidigitalmind","ondachow1188","opkhapok","ost5","pa03","padmalathasanthakuma","parsa9","pejuang2016","penguin94","philbertsky","piotr_lesiak","pol63","primepawn","princessnimansa","priyeshshetty","protable","pzamai85","quicksilver_k","quilvin","radli","raduilie","ravimatharoo","rbarnhart1","rd88","realsans","refaee1970","regbarono","reniite","repetto","revival2014","rezawler","rick33145","rikkkkx","riojajohn","rivalbody","robertos45","rohit16032002","rorschach1985","rottenpretzel","sabinemetzgergroom","saideep123","sanath1987","saphir26","sateeshmr","satyanugrahaputra","savdmitry","secretpenguin1550","sergeylysenko","sergiomeira","shakya7","sharma_y","shelton2014","shreyased","siimm","sir_romeo","sirleo77","sirol58","smartykids","sonduy","southpawup","souvorov","spartacus25","spawn830","spotsoftime","stephencorelli","stewart_kingpawn","sunnyboya","superlamhot","superman0101","surewinsam","suvina","sydjabari","t_h_e_dude","thenuka_u","tjmaxattack1","tnt20","trapwithz","tteshan","tweety7","ufmgambit06","unripe","uzhegov","vaibhav42","victorianfire","virdi1966","waiz","wallyweinberger","walterothmer","whovalock","why0712","wonderfull1us","yufamilykids","zainal1905","zatoichi1","zhasik","zoyav","zulutango6"]}

Yet checking the player profile:
https://api.chess.com/pub/player/bulletheadbilly
{"avatar":"https://images.chesscomfiles.com/uploads/v1/user/1644647.07b12130.200x200o.992f687d554b.jpeg","player_id":1644647,"@id":"https://api.chess.com/pub/player/bulletheadbilly","name":"William Walter Wayne Wilkinsburg","username":"bulletheadbilly","followers":659,"country":"https://api.chess.com/pub/country/US","location":"767 Suey Slew Swamp Street, Shreveport","last_online":1518177302,"joined":1228857863,"status":"premium"}

$ perl -e 'print scalar(gmtime(1518177302)), "\n"'

Fri Feb  9 11:55:02 2018

$ date -u

Fri  9 Feb 2018 18:05:47 UTC

 

skelos

Have I been caught by unfortunate caching? If I recall correctly it was originally documented that the category a player would show in could be out of date by up to 24 hours. Thus if @bulletheadbilly had not been online for a week but came back today ... maybe the output is correct to show him in "monthly".

Thoughts, please?

skelos

Rather than continue to chase this, perhaps the weekly/monthly/all_time divisions should simply be dropped?

As originally documented they were going to be up to 24 hours behind, and I didn't really see the use. Then I decided it was a rough-and-ready breakdown and might be useful, but it's actually bitten me once now when I relied on it before I realised it was broken, and now that it's supposedly unbroken I've either chanced on awkward caching on my very first test, or it's not fixed.

Other than runtime, once I code to go and use the player's profile and last_login (which on minimal testing to date looks OK) there won't be much reason to come back to this.

skelos

I regret to inform you that whatever the improved updating method is, it doesn't appear to work. At all, I suspect. sad.png

My test group this time is Battle For Victory. All the "weekly" values look sensible. The "monthly" values most emphatically do not, even allowing for the data to be 24 hours old. I have highlighted values that are clearly >24 hours old, and indeed in the "monthly" data there is only one member who hasn't been online in the last week!

 

"monthly"
_magus                    Sat Feb 17 07:37:38 2018
abdybek_narynbaev         Sat Feb 17 09:15:36 2018
adamzaluski               Sat Feb 17 11:56:55 2018
aldapeta123               Sat Feb 17 10:58:28 2018
arizoldyck                Sat Feb 17 09:41:34 2018
balint1                   Sat Feb 17 07:39:24 2018
besaswp                   Fri Feb 16 18:21:31 2018
bothant                   Sat Feb 17 10:23:33 2018
chairtaker                Sat Feb 17 08:55:54 2018
chessqueen51              Thu Feb 15 23:30:42 2018
crossfire16               Sat Feb 17 06:05:56 2018
cuausos                   Fri Feb 16 18:06:20 2018
deafknightmare            Fri Feb 16 20:09:20 2018
enrique1083               Fri Feb 16 18:25:34 2018
fernandomilanezi1979      Sat Feb 17 11:42:40 2018
gboudouris                Sat Feb 17 11:10:08 2018
goldenmiddle              Sat Feb 17 06:19:45 2018
gonzalo1980               Sat Feb 17 08:31:58 2018
grosso8                   Wed Feb  7 13:17:17 2018 // Sole "last month, not last week" entry!
guohu                     Fri Feb 16 14:42:04 2018
hotfry                    Sat Feb 17 07:40:40 2018
jannoha2                  Sat Feb 17 08:16:04 2018
jhanvijadhav              Fri Feb 16 13:24:49 2018
karla1234                 Sat Feb 17 06:55:39 2018
klfo                      Thu Feb 15 23:48:03 2018
larryjm                   Sat Feb 17 10:56:55 2018
liberatedknight           Sat Feb 17 04:43:50 2018
liberterian               Fri Feb 16 23:56:15 2018
logicon                   Sat Feb 17 10:43:34 2018
ltristam                  Sat Feb 17 05:09:20 2018
luriana                   Sat Feb 17 08:41:31 2018
marchizul                 Sat Feb 17 11:44:34 2018
marley_the_king           Sat Feb 17 03:04:11 2018
mdawkins                  Sat Feb 17 06:26:17 2018
medeja1972                Fri Feb 16 09:23:15 2018
mryucky                   Sat Feb 17 05:39:15 2018
nikman0402                Sat Feb 17 11:25:59 2018
part74                    Sat Feb 17 04:33:11 2018
patbenjamin               Sat Feb 17 03:47:32 2018
paulcrapsi                Fri Feb 16 16:09:28 2018
schincariol               Sat Feb 17 09:50:41 2018
sebaoth                   Thu Feb 15 23:37:08 2018
seft                      Fri Feb 16 22:59:42 2018
serge400                  Sat Feb 17 04:44:52 2018
silverskin                Sat Feb 17 09:20:01 2018
sreejith_ayilalath        Sat Feb 17 10:23:07 2018
szaszzo66                 Sat Feb 17 11:09:31 2018
tauceti5                  Sat Feb 17 12:17:02 2018
usha05                    Sat Feb 17 02:51:55 2018
valeksk                   Sat Feb 17 12:25:17 2018
vordmaster1234            Thu Feb 15 16:59:02 2018
wesleygeorge              Thu Feb 15 11:07:51 2018
yarnis                    Fri Feb 16 16:51:26 2018
skelos

The "all_time" data is  bit big to post, but selected excerpts which should clearly be reported earlier include:

 

alejandro808              Sat Feb 17 12:12:26 2018
alexander_ns              Fri Feb 16 20:53:23 2018
ali_36                    Sat Feb 17 11:49:36 2018
aliaghaoghlu              Sat Feb 17 07:47:19 2018
aliarezi                  Fri Feb 16 16:36:25 2018
alidahits                 Sat Feb 17 05:18:18 2018
alireza_einabadi          Sat Feb 17 12:03:36 2018
alvinlee59                Sat Feb 17 11:56:06 2018
amazinggrace5950          Thu Feb 15 23:43:41 2018
skelos

Right now I don't – and can't – trust this data at all. It looks like it's not 24 hours old but 72 hours old, at least.

A cursory look shows data that should be in "monthly" but is in "all_time":

booshaka13                Tue Feb  6 09:34:15 2018
bossinchess1              Fri Feb  2 12:57:25 2018
skelos

Rather than fix this, I now propose biting the bullet and making a breaking change. Just give us the member list, with or without last_online time and not the tri-part split we have now but can't use.

bcurtis

If you wish to see if a player is active on the website, then the "last_online" of the player profile is the correct endpoint to hit. That seems to be what you are doing.

The club activity groups (weekly, monthly, all_time) are based solely on the player's interaction with club content — forums, news, the club homepage (notes), and so forth. Many people will be online (livechess, a mobile app, tactics) and will never view much of the website and only rarely visit a club. Many players rely on notifications for their club interactions, and do not visit the club pages at all. As such, last_online is only rarely going to be coordinated with the club activity groupings.

 

I have just reviewed the code. I believe that the activity that counts toward resetting the player's club-activity date are

  • Viewing the club homepage
  • Viewing the clubs news index or a specific news article (but not the notification message received that the news was published)
  • Viewing the club's forums or a specific forum thread
  • Changing their club settings, including modifying their membership; for admins, this includes inviting or authorizing new members
  • Viewing the club's tournament, team match, or votechess lists (but not, it appears, viewing or participating in those games!)
  • Viewing club membership lists or running a related search, or viewing the leaderboards for the club

Does that help? We can add this to the documentation.

skelos

Please, add those details to the documentation.

I had totally the wrong idea about what the split was. It now makes sense and might be useful to me.

If after you've added that information you'd like me to review it and see if I can still come up with a way to interpret it and confuse it with last_online, I will, but I doubt very much that it will be possible. Perhaps I didn't read carefully enough in the first place.

Sorry for the confusion, but that's good information, so it's not all loss. (Or I'm looking for the silver lining in the cloud, or both.)

I'm on the way to having a small USA locate virtual server that won't go through Wi-Fi, VPN and across the Pacific. It will be interesting to see how that speeds things up for me because I think latency is the killer at the moment even with persistent connections.