These are chat archives for arenanet/api-cdi

24th
Feb 2017
Okay, /v2/wvw/matches is re-enabled with some pretty massive caveats:
• The shard merges are back to being manually maintained.
• The actual matchups are now also manually maintained.
So Friday is going to be real interesting.
I'll probably take it down again when the scores zero out on Friday until the new matches are determined, then update the matchup configs, then re-enable it.
It also may crash horrifically before then.
Jonathan Andrist
Feb 24 2017 00:04
I hope you can get it working automagically soon! (intended spelling)
god i hope so too
it's not like I ever miss a reset night
Jonathan Andrist
Feb 24 2017 00:05
We'd rather you were at home enjoying reset instead of pushing buttons on live.
but I'm not going to be happy VPN'ing in every friday until this is fixed
well
I am going to be at home :P
Jonathan Andrist
Feb 24 2017 00:05
But still pushing work buttons!
fair.
Jonathan Andrist
Feb 24 2017 00:05
And I fear, thinking about how you had to do manual things =/
You tend to play down tier enough that you dont really have to worry about reset queues though right?
wow
listen it's not my fault that yak's bend is t3
Jonathan Andrist
Feb 24 2017 00:06
NO IT ISNT!
(I legitimately can't imagine there being queues below T1 at reset, when we can't even get all maps queued on 2 of the 3 server sides)
world sides*
I look forward to the day where we face Yaks Bend, as allies or as foes. But that alas is almost certainly not today. Or tomorrow.
or ever
anet buff siege pls
Jonathan Andrist
Feb 24 2017 00:08
Do I even know you?
legendary arrow carts when
Jonathan Andrist
Feb 24 2017 00:08
Erm. I can think of VERY few logsitics reasons that might cause it to happen. But honestly, getting most of my friends up here was such a pain
Hey, its not my fault seige now has static stats instead of scaling to the player.
hey maybe our worlds will be linked
who knows
Jonathan Andrist
Feb 24 2017 00:08
I think linked is more likely.
I'm kinda hoping to see skirmish rewards make people care a bit about moving around again matchup wise. I've got other YB friends besides you, who don't wvw much.
Jonathan Andrist
Feb 24 2017 00:46
"Fixed an issue that could cause allied AoE effects to appear as enemy AoE effects in WvW and PvP." - Send Blackgates thanks to the WvW team =)
Eearslya Sleiarion
@Eearslya
Feb 24 2017 04:41
@queicherius I think gw2e's crafting page has a..minor annoyance issue. If you check to have it update every minute, every update will also uncheck everything in the shopping list. >.>
smiley
@codemasher
Feb 24 2017 11:24
smiley
@codemasher
Feb 24 2017 11:31
David Reeß
@queicherius
Feb 24 2017 12:37
@Eearslya Thanks, added an issue for that
Darqam
@Darqam
Feb 24 2017 13:48
@lye it seems the doc for v2/achievements/daily is not up to date with the fotm addition, just fyi
uhh there might be a PR that needs to be closed
smiley
@codemasher
Feb 24 2017 18:08
"git is fine with hash collisions" https://twitter.com/andywingo/status/835132154749272064
This message was deleted
this is going to be fun soon
David Reeß
@queicherius
Feb 24 2017 18:18
well, git was fine, svn was not :D
Darrian
@rikkuness
Feb 24 2017 18:19
guess we're waiting on the hardcoding fun here right? :p
Edgar Doiron
@Coffee4cr
Feb 24 2017 18:20
:fire: @lye :fire_engine:
lol
Archomeda
@Archomeda
Feb 24 2017 18:24
@lye, i'm just looking at some PR's atm to see what might be done and what isn't... but what is #433 supposed to mean? :D
Mumble link data has map and map_id fields which are the same because i am dum
Archomeda
@Archomeda
Feb 24 2017 18:25
yeah.. it's in the game atm:
{"name":"Reiga Fiercecrusher","profession":2,"race":1,"map_id":1155,"world_id":268435461,"team_color_id":0,"commander":false,"map":1155,"fov":1.152}
@rikkuness oh fuck what the fuck
@rikkuness API looks like it's returning non-zero data?
like I seriously double-checked the heck out of this before turning it back on last night
@Archomeda use map_id I'm removing map with a future commit
(map isn't documented)
Archomeda
@Archomeda
Feb 24 2017 18:26
yeah, i'm not using it, i just noticed the PR :P
anyway
guess I know where mos is getting their data from now
it's not my fault they're not using the public and supported API
Archomeda
@Archomeda
Feb 24 2017 18:27
lolwut
Darqam
@Darqam
Feb 24 2017 18:27
O.o
I'll look into this on monday
Archomeda
@Archomeda
Feb 24 2017 18:28
what are they using then?
oh probably the v1 API
I was thinking that they were talking straight to the wvwapi backend component
and was like "that shouldn't be possible"
but it's almost certainly just the v1 API
Archomeda
@Archomeda
Feb 24 2017 18:29
also, https://api.guildwars2.com/v1/ doesn't return the txt info like it used to do before
wait, remove that last forward slash... urgh
then it works
I'll fix that at some point today
Archomeda
@Archomeda
Feb 24 2017 18:30
just return
{"error": "migrate to /v2 pls ktnxbye"}
nah I don't want to break old applications
Archomeda
@Archomeda
Feb 24 2017 18:30
:D
I honestly thought I re-implemented the v1 endpoint to basically just call the v2 endpoint code though
maybe that was for something else
smiley
@codemasher
Feb 24 2017 18:32

nah I don't want to break old applications

X-Please: use /v2 instead
smiley
@codemasher
Feb 24 2017 18:32
heh
Darrian
@rikkuness
Feb 24 2017 18:33
the fuuck's all this
haha
why my good sir that is php
looks like var_dump output to me
smiley
@codemasher
Feb 24 2017 18:34
yep
htmlspechialchar'd
Archomeda
@Archomeda
Feb 24 2017 18:35
hmm, isn't #90 already a thing?
nah
that would add a "flag" or something to either /v2/items or /v2/commerce/xyz
like "CanBeTransactedByP4FAccounts"
Archomeda
@Archomeda
Feb 24 2017 18:36
i thought it was already there.. hm
I'm literally as dumb as a rock so maybe
I thought that was still on the table
Archomeda
@Archomeda
Feb 24 2017 18:37
that's possible, i can't remember
does someone here know an item that can be traded by both types and an item that can't by any chance?
Darrian
@rikkuness
Feb 24 2017 18:38
I gathered in was PHP just couldn't understand why it was all rendered in the page haha
@Archomeda IIRC mithril ore can be traded, uhh, Eternity can't
I think.
actually dang I have no idea how that whitelist works
it's not on the item data
David Reeß
@queicherius
Feb 24 2017 18:39
o-oh
queicherius @queicherius remembers from last time he asked that and @darthmaim told him where it was
Archomeda
@Archomeda
Feb 24 2017 18:40
in mithril ore that field is just not there :P https://api.guildwars2.com/v2/commerce/listings/19700
David Reeß
@queicherius
Feb 24 2017 18:41
/prices, not /listings
Archomeda
@Archomeda
Feb 24 2017 18:41
ehh
different backend services
Archomeda @Archomeda hides
Archomeda
@Archomeda
Feb 24 2017 18:42
so yeah, #90 is a thing then XD
i forgot to actually check the diff lol
#397 is live too, except that guild_upgrades is just called upgrades apparently
Eearslya Sleiarion
@Eearslya
Feb 24 2017 18:45
@lye Is that panel gonna get uploaded anywhere? I've always been interested in the GW2 backends
Archomeda
@Archomeda
Feb 24 2017 18:46
i get the following response
  // ...
{
"id": "96-35",
"type": "Tower",
"owner": "Blue",
"last_flipped": "2017-02-24T18:21:46Z",
"claimed_by": null,
"claimed_at": "2001-01-01T00:00:00Z",
"points_tick": 4,
"points_capture": 4,
"yaks_delivered": 8,

]
},
// ...
it seems that claimed_at is kind of inconsistent with null actually :P
i'll make an issue
Darrian
@rikkuness
Feb 24 2017 18:49
oops haha
Archomeda
@Archomeda
Feb 24 2017 18:55
also, it seems like #414 is done too? at least i can find recipe_id in the logs at the moment
and i'm pretty sure the completed action is there too, since i've been working with that this week :P
@Archomeda ah yeah open an issue for that. Those timestamps are stored as "seconds since 2001" so that's a zero'd timestamp
Archomeda
@Archomeda
Feb 24 2017 19:05
Darrian
@rikkuness
Feb 24 2017 19:05
that's a weird epoch, I'm so used to seeing unix epoch of 1970
Archomeda
@Archomeda
Feb 24 2017 19:05
you might want to update it manually
oh right EU WvW goddammit
I'll do that right now
Archomeda
@Archomeda
Feb 24 2017 19:07
is the wiki using the api for this? :P
uhh dunno
Archomeda
@Archomeda
Feb 24 2017 19:08
Darqam
@Darqam
Feb 24 2017 19:08
beat me to it
Darrian
@rikkuness
Feb 24 2017 19:09
Arborstone [FR], Augury Rock [FR], Vizunah Square [FR]
omg RIP, siege nightmare
Archomeda
@Archomeda
Feb 24 2017 19:09
funny how even the wvw team just links to the wiki nowadays :D
and that uses the api, which is currently maintained manually haha
darthmaim
@darthmaim
Feb 24 2017 19:10
now lye only has to pull the current links from the forum
full circle
nah I'm pulling them from a live server console
@Archomeda lolz.
anyway, that should be corrected in a few minutes; thanks for the heads up
I always forget about EU reset :<
Archomeda
@Archomeda
Feb 24 2017 19:12
cool, no worries
i think it happened an hour ago
yeah :S
Darrian
@rikkuness
Feb 24 2017 19:14
us poor Europeans getting forgotten about :p
more like "EU reset is before coffee kicks in"
Darrian
@rikkuness
Feb 24 2017 19:15
I use the coffee excuse every day at work, by the time it kicks in it's lunchtime and then I use that as an excuse :D
Darqam
@Darqam
Feb 24 2017 19:39
random question, API keys don't care about caps, right?
they uhh
might be case sensitive, not sure
darthmaim
@darthmaim
Feb 24 2017 19:39
no, case insensitive
wonder if I was smart enough to make the cache keys case-insensitive
nope, hmm, I should fix that to prevent dupe cache entries
Jonathan Andrist
Feb 24 2017 19:52
I actually opened this window to remind you that NA links were changing this evening for your hardcoded..magic, but someone beat me to it at EU!
hah no worries on the NA side; I'm a weekend warrior so I'll be sitting around waiting for reset
Archomeda
@Archomeda
Feb 24 2017 19:53
yeah... only EU gets forgotten :sob:
no worries though, i tend to forget that WvW exists... so...
Jonathan Andrist
Feb 24 2017 19:54
I remembered it was EU reset this morning, I didnt remember it was relink week til later.
darthmaim
@darthmaim
Feb 24 2017 20:13
@lye, just read the whitelist requests on the forum, there are even more for you to look at here: https://en.gw2treasures.com/lye
is there a JSON format available? ;_;
darthmaim
@darthmaim
Feb 24 2017 20:14
give me a few minutes :P
yay :heart:
Archomeda
@Archomeda
Feb 24 2017 20:15
lol, lye going to automate it
darthmaim
@darthmaim
Feb 24 2017 20:15
just an array of ids?
an array of ids for each type
@Archomeda totally not it just makes bulk copy-pasting easier
Archomeda
@Archomeda
Feb 24 2017 20:15
aw :P
darthmaim
@darthmaim
Feb 24 2017 20:27
done
thanks, you're the best
I'll get those fixed after lunch
Archomeda
@Archomeda
Feb 24 2017 20:28
darthmaim
@darthmaim
Feb 24 2017 20:28
just a new excuse as we learned :P
I use the coffee excuse every day at work, by the time it kicks in it's lunchtime and then I use that as an excuse :smiley:
Darrian
@rikkuness
Feb 24 2017 20:29
hahaha ;D
darthmaim
@darthmaim
Feb 24 2017 20:29
:D
Archomeda
@Archomeda
Feb 24 2017 20:29
lol
discord is throwing Unhandled rejection Error: Bad Request at me and i don't know why .... sigh
Darrian
@rikkuness
Feb 24 2017 20:31

# blameSHA1

woah dat hashtag is actually markdown, the more you know
Archomeda
@Archomeda
Feb 24 2017 20:31

## yes

#### the more hashtags, the smaller they get :tada:

Darrian
@rikkuness
Feb 24 2017 20:32
json {emotion: 'amused'}
oh, it's not github markdown exactly, interesting
Archomeda
@Archomeda
Feb 24 2017 20:33
{ "emotion": "amused" }
smiley
@codemasher
Feb 24 2017 20:33
it is^^
Darrian
@rikkuness
Feb 24 2017 20:33
ohh shit, so it is
darthmaim
@darthmaim
Feb 24 2017 20:33
you can only hint the language in full codeblocks
Archomeda
@Archomeda
Feb 24 2017 20:33
json
json here

windwarrior
@windwarrior
Feb 24 2017 20:33

### h3 for example

Darrian
@rikkuness
Feb 24 2017 20:34
that makes sense, I should have known that with the amount of readme.md's I've written :p
Archomeda
@Archomeda
Feb 24 2017 20:35
you can also do this
==========================
eh there
darthmaim
@darthmaim
Feb 24 2017 20:35
<center>does this work?</center>
nope
:(
Archomeda
@Archomeda
Feb 24 2017 20:37
tables tables
MOAR TABLES
oh come on stupid = should've been -
windwarrior
@windwarrior
Feb 24 2017 20:37
can I do tables
Attempt 1: yes
damn, I was just doing that
darthmaim
@darthmaim
Feb 24 2017 20:37
haha
Archomeda
@Archomeda
Feb 24 2017 20:38
it supports pretty much everything from github markdown, except html tags i guess
darthmaim
@darthmaim
Feb 24 2017 20:38
can github do this: $\mathrm{L\!\!^{{}_{\scriptstyle A}} \!\!\!\!\!\;\; T\!_{\displaystyle E} \! X}$ ?
Archomeda
@Archomeda
Feb 24 2017 20:39
ehmmmm
windwarrior
@windwarrior
Feb 24 2017 20:39
damn no <script src="stealGHAccessTokens.js">?
Archomeda
@Archomeda
Feb 24 2017 20:39
no clue
darthmaim
@darthmaim
Feb 24 2017 20:39
$m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}$
that's actually pretty cool
Archomeda
@Archomeda
Feb 24 2017 20:42
i wouldn't want to be that person to maintain the formatting code
windwarrior
@windwarrior
Feb 24 2017 20:43
markdown parsers are notoriously good at supporting xss
Jonathan Andrist
Feb 24 2017 21:42
Recipe source for most of those I think is talking to an NPC so he tells you how to make them. Its not a literal recipe. GEN1 pre crafting.
oh god the .scores element of /v2/wvw/matches changed to be only for the current skirmish
so many things to fix
Archomeda
@Archomeda
Feb 24 2017 23:02
:(
:fire: doing a live deploy :fire:
Archomeda
@Archomeda
Feb 24 2017 23:32
:fire:
mostly fixes?
yeah it fixes /v1/wvw/matches.json to not have zero'd shards, and fixes /v2/wvw/matches.score to not just be the current skirmish scores
(and also makes API keys case-insensitive for cache key purposes since I was compiling something)
Archomeda
@Archomeda
Feb 24 2017 23:35
:+1:
uhhhhhhhhhhhh I hope that this is a cache issue
because it hasn't been fixed on live even though the deploy is out
Archomeda
@Archomeda
Feb 24 2017 23:35
/v1 ?
or everything?
just /v1 oddly enough
the scores look correct to me now
Archomeda
@Archomeda
Feb 24 2017 23:37
does anet use cloudflare for the gw2 websites?
no
Brian Patrick
@frodesigns
Feb 24 2017 23:39
rip wvw kills/deaths
wat
wtf
where the living hell did that go
LITERALLY THAT HAS NOTHING TO DO WITH THE API
Brian Patrick
@frodesigns
Feb 24 2017 23:39
started returning 0 for everything a few mins ago lol
thanks for inlining gitter
Brian Patrick
@frodesigns
Feb 24 2017 23:40
literally just finished updating wvwintel.com to have per-map KDR stats too
goddammit
that timing aligns with a live deploy I just did
Brian Patrick
@frodesigns
Feb 24 2017 23:40
happy friday!
but that ... that shouldn't have had any effect i don't even understand
tempted to just rollback
i'm just gonna rollback
this has been a disaster
Brian Patrick
@frodesigns
Feb 24 2017 23:41
:(
If this brings back the scores I'm going to find a nice soft pillow and cry
\s/scores/kd/
Archomeda
@Archomeda
Feb 24 2017 23:43
maybe it's a restart that caused it?
nah when the backend server that tracks kdr is restarted it first serializes out all its data
...let me check my email real quick
okay pretty sure it didn't hard crash
the uptime is 32m 34s on it, hmm
that's kind of sketchy
(rolling back had no effect on KDR)
Archomeda
@Archomeda
Feb 24 2017 23:46
welp
who's responsible for continuous changes in the wvw backend? :(
I. I guess. I guess I rollback the rollback now.
literally no one
no one is making changes on live
i'm the only idiot here
Archomeda
@Archomeda
Feb 24 2017 23:47
but how does it break then? :scream:
:magic:
darthmaim
@darthmaim
Feb 24 2017 23:47
:sparkles:
...
            {
"v_shard": 1,
"datacenter": 0,
"map": 968,
"shards": {
"red": 0,
"blue": 0,
"green": 0
},
"deaths": {
"red": 1026894,
"blue": 987412,
"green": 1012343
},
1. Why is datacenter 0
2. Why are the shards 0
3. Why did this just now change
Archomeda
@Archomeda
Feb 24 2017 23:49
:fire:
darthmaim
@darthmaim
Feb 24 2017 23:49
:(
Archomeda
@Archomeda
Feb 24 2017 23:50
shards are where the world ids should be in?
yeah shards==worlds
Archomeda
@Archomeda
Feb 24 2017 23:50
well at least k/d is there
(and match ids are \${datacenter}-${vshard})
Archomeda
@Archomeda
Feb 24 2017 23:50
err, well, i see only d
thanks for not escaping s gitter
yeah kills are there too
but since datacenter is 0 ... who knows if that's NA or EU (or combinde)
Archomeda
@Archomeda
Feb 24 2017 23:51
wait, this is the only entry?
no there's one for each vshard it look slike
umm
well okay something is totally screwed up
Archomeda
@Archomeda
Feb 24 2017 23:51
so... 5 vshards per region/datacenter?
4 for NA, 5 for EU
Archomeda
@Archomeda
Feb 24 2017 23:51
since 5 matchups
wait, 4?
yeah NA has fewer worlds
I don't make the rules
Archomeda
@Archomeda
Feb 24 2017 23:52
hmm, i see
no probs, everything is complicated
Archomeda
@Archomeda
Feb 24 2017 23:53
so, how's the api not spitting out 0-1 matches then? :P
bool WvwMatchState::IsValid () const {
return vshard > 0 && dc < 3 && dc > 0;
}
beats the crap out of me
Archomeda
@Archomeda
Feb 24 2017 23:53
at least there's some verification, nice :D
apparently it doesn't work though, since that data got in anyway :S
Archomeda
@Archomeda
Feb 24 2017 23:55
wait, this is not the api code, but the backend?
yeah it's the backend component that handles the whitelist, among other things
Archomeda
@Archomeda
Feb 24 2017 23:56
that's so weird
so the k/d is available in the broken dc=0` that should've been 1 or 2, world links are not available here either and also not in the sane data as you have to maintain it manually for now
the data is all over the place D:
literally i baked a cake
and dropped it on the floor
and now we just have a giant mess and i am filled with regret
darthmaim
@darthmaim
Feb 24 2017 23:59
:(
Archomeda
@Archomeda
Feb 24 2017 23:59
:(