These are chat archives for arenanet/api-cdi

3rd
Oct 2017
K900
@K900
Oct 03 2017 00:00
@lye what about the required_access thing?
I don't remember what that is
ah right
looks like the entire system for that was scrapped and replaced
the access restrictions appear to be applied per-achievement now
Archomeda
@Archomeda
Oct 03 2017 00:06
so... required_access per achievement now?
nope
it's only one
or... hmm
whole achievement category enable/disable is only one
per-achievement is "arbitrary boolean operation applied to arbitrary feature switches"
the "arbitrary boolean operation" thing is important since this technically allows content to be restricted behind both expansions
whereas required_access has historically be boolean OR rather than AND
so.... hurr
...
The only two new-style restrictions are "expac1 or expac2" and "expac2 only"
which means the old-style restrictions are still in there too yay
K900
@K900
Oct 03 2017 00:11
So everything is terrible
Archomeda
@Archomeda
Oct 03 2017 00:11
okay...
K900
@K900
Oct 03 2017 00:11
Got it
Time to hardcode restrictions I guess
given that there's nothing using an and operator between expacs
I can probably make it work?
Archomeda
@Archomeda
Oct 03 2017 00:12
when it will, how can that be encoded in json?
uhhh required_access is an array right now isn't it
K900
@K900
Oct 03 2017 00:12
Yep
darthmaim
@darthmaim
Oct 03 2017 00:12
yep
yeah it'll still be an OR
and let's cross that AND bridge when we get to it
K900
@K900
Oct 03 2017 00:12
I'm honestly curious what a daily that requires two expansions could look like
But I don't want to give people ideas
Cause it'll break like five different assumptions in my code :P
Archomeda
@Archomeda
Oct 03 2017 00:13
you can make it [ 'or1', 'or2' ] to [ [ 'and1', 'and2' ], 'or2' ] or something
darthmaim
@darthmaim
Oct 03 2017 00:13
required_access: ["(expac7 OR expac8) AND expac5"]
so the restriction bit is interesting, because it checks feature flags, not expansion access
so they can technically restrict to e.g. "people who got the wizard's hat promotion in 2012"
Archomeda
@Archomeda
Oct 03 2017 00:13
oh god
that's fun
or "people who haven't been banned from the forums" since I think that's a feature flag too
darthmaim
@darthmaim
Oct 03 2017 00:14
now that would be funny
Archomeda
@Archomeda
Oct 03 2017 00:14
are you able to check the restrictions through the api when an api key is given?
well, not right now i mean
but are you able to make that work?
the /v2/account.access field returns a limited subset of feature flags, yeah
if there's additional flags that make sense to expose I can put them in there
though UGH
darthmaim
@darthmaim
Oct 03 2017 00:15
@Archomeda is asking for an authenticated daily endpoint
K900
@K900
Oct 03 2017 00:15
Let's just all hope it's not going to happen ever
I don't want to think about authentication
I don't want to think
Archomeda
@Archomeda
Oct 03 2017 00:15
kinda what @darthmaim said, but... i guess won't only be about daily, but all achievements :P
I uhh, thought there was an auth'd daily achievement endpoint
darthmaim
@darthmaim
Oct 03 2017 00:16
nope
K900
@K900
Oct 03 2017 00:16
The only one there is is /v2/achievements/daily
And that's not auth'd
Archomeda
@Archomeda
Oct 03 2017 00:16
daily progress isn't even tracked on the authenticated achievements endpoint
K900
@K900
Oct 03 2017 00:16
(thank god)
IIRC I did add backend support for different achievement storage classes
maybe I didn't
hurr I didn't
Archomeda
@Archomeda
Oct 03 2017 00:18
:(
it's like 10LOC though
since it's the same code except inspecting a different bit array
K900
@K900
Oct 03 2017 00:19
@lye unrelated: my code currently hits the API through AJAX on the client side, is this OK or should I proxy it through my own box?
        if (!stats.PopulateStats(BLOB_PROGRESS_SLOT_PERMANENT))
and some piping to pull a different BLOB_PROGRESS_SLOT_* from the request
K900
@K900
Oct 03 2017 00:19
I'd rather avoid the latter tbh because it's running on a potato already so any extra load is very Not Good
CORS requests are fine (e.g. don't need to be proxied)
K900
@K900
Oct 03 2017 00:20
I mean I know it works, I'm mostly asking if it'll cause weirdness with rate limiting or w/e
proxy might cause rate limiting issues
rate limiting shouldn't be a problem if the requests are sent from the client IP
(since the rate limiting is all IP-based)
K900
@K900
Oct 03 2017 00:21
Cool
Just making sure what I'm doing is OK with you
yeppers
rate limiting is only there so that one person can't issue TENS OF THOUSANDS of requests/second
K900
@K900
Oct 03 2017 00:21
I'll probably open source that thing and slap it on S3 or something eventually
if you've got tens of thousands of users it's whatever
K900
@K900
Oct 03 2017 00:22
I've got more like tens
Of users
Total
At least for now
I'm not actually sure how many people use the thing
It's very much a side project and I hate JavaScript with a burning passion, so there's literally zero analytics there except nginx logs
I just know it spreads through word of mouth somehow
If it ever becomes a problem I'll let you know
Unless the requests are from different IPs
then I'll never know because I don't track Origin headers
K900
@K900
Oct 03 2017 00:25
The requests are from different IPs, yeah, but I just checked and it's got <100 requests/day
That's including all the other shit on the same domain
But excluding 404s
David Reeß
@queicherius
Oct 03 2017 00:53
I made a place to check for :fire: https://status.gw2efficiency.com/ :fire_engine: (also consumable as an API https://status.gw2efficiency.com/api )
David Reeß
@queicherius
Oct 03 2017 00:54
@darthmaim allowed it :D
Archomeda
@Archomeda
Oct 03 2017 00:57
looks :ok_hand:
wow, /v2/colors being down also affects the skins returning color_id = 1 for them?
David Reeß
@queicherius
Oct 03 2017 01:31
I have no idea what causes it, but /skins and sometimes /wvw/objectives and very rarely /guild/ugrades changes parts of the content randomly
Michael Dougall
@madou
Oct 03 2017 02:17
👋
shawngmc
@shawngmc
Oct 03 2017 13:40
@queicherius Does it appear to change between different data sets or is it more of the data under the hood is being changed by something?
Enno G.
@SchoolGuy
Oct 03 2017 13:49
@queicherius Nicly done 👍
Dominic
@DomGrieco
Oct 03 2017 15:11
image.png
rip
David Reeß
@queicherius
Oct 03 2017 15:35
@shawngmc The dataset is always the same, it uses always the same ids/the same account that is frozen. It just sometimes returns different answers for the same query.
Archomeda
@Archomeda
Oct 03 2017 16:22

Central Tyria Waypoint Unlock Package - 2000 gems

ah yes, too expensive to make it worth it :(

hmm
I think I might change /v2/account/delivery
the current implementation is blowing up my stuff
(people with 99k things pending)
Archomeda
@Archomeda
Oct 03 2017 16:26
💥
no, that doesn't actually touch the TP code
Archomeda
@Archomeda
Oct 03 2017 16:27
oh, you mean actual stuff waiting for people to pick up?
yeah
right now it's doing a loop between backend server and database to collate all the items
and that loop takes too long for some edge cases
one option is to just truncate it
but it makes more sense to just change the endpoint to be paginated
@queicherius do you happen to have an account id for someone that /v2/commerce/delivery breaks on
I remember someone sent me one but I can't remember where it was
BoyC
@BoyC
Oct 03 2017 16:43
i was just about to report on /delivery being a bit wonky in the last hour or so
it is being very loud and sending many emails
:sadface:
BoyC
@BoyC
Oct 03 2017 16:45
oh the api's sending you emails when stuff is off? nice :)
no uhh
our monitoring stuff starts sending alarms for general error states
like message timeouts and stuff in our distributed systems framework
BoyC
@BoyC
Oct 03 2017 16:46
close enough
something's quite off... couldn't log in there for a minute, and now an ingame mail won't send
BoyC
@BoyC
Oct 03 2017 16:51
oh hey it only took 2 minutes but it did
windwarrior
@windwarrior
Oct 03 2017 17:02
stuff doesnt get lost easily in GW2 it seems
large queues I guess :P
:fire: disabling /v2/commerce/deliveries just in case
David Reeß
@queicherius
Oct 03 2017 17:06
@lye See pms
thanks
pretty sure the current fires aren't caused by /v2/commerce/delivery so I'll probably turn it back on later today
most likely having cross-DC network issues
Archomeda
@Archomeda
Oct 03 2017 17:26
:(
Archomeda
@Archomeda
Oct 03 2017 17:31
The status page que made is putting out a few 400s as well
yeah bunch of stuff is timing out internally
we have top men working on it
Archomeda
@Archomeda
Oct 03 2017 17:33
Who?
TOP MEN
smiley
@codemasher
Oct 03 2017 17:50
gitter needs a gif search/embed like twitter has
windwarrior
@windwarrior
Oct 03 2017 17:58
you just said that to add the gif, didnt you
where can I opt out of PoF commercials on YT
its not like anet really needs to sell PoF to me anymore
there are PoF commercials on YT? I'm impressed
windwarrior
@windwarrior
Oct 03 2017 18:00
yes, every.single.time I get a commercial on YT
can't be cheap
and well, the return of investment is ... low
windwarrior
@windwarrior
Oct 03 2017 18:02
wwwwwwwwwhy
smiley
@codemasher
Oct 03 2017 18:03
(it just ran through my TL... xD)
windwarrior
@windwarrior
Oct 03 2017 18:03
no, not embedding that gitter
okay
10/21/16 3:15pm
smiley
@codemasher
Oct 03 2017 18:06
(the author retweeted that in a different context)
if you search for that date in this chat i guess you'll see a lot of :fire:
ChieftainAlex
@ChieftainAlex
Oct 03 2017 18:14
today at work I found that all of the files on a webserver we use have the dates hardcoded as "yyyy-mm-dd" ... not the date format, but the actual letters
which made trying to find the files i was editing last time i logged in more difficult.
dates are great in any application.
someone took the documentation literally
ChieftainAlex
@ChieftainAlex
Oct 03 2017 18:18
I'm not too surprised they did it wrong tbh
setup by a contractor to replace a previous setup by another contractor to replace something setup in 1980
i assume the original was papyrus
ChieftainAlex
@ChieftainAlex
Oct 03 2017 18:25
if that's a patch i see, does that mean the skill_challenge ids will work now?
no
all the patches are gonna be hotfixes
hotfixes have changes hand-integrated to live that requires a special pipeline for QA and stuff
I put all my stuff into the normal release process, which requires a full integration done with a normal release
(e.g. every 2-3 weeks we do a full integration dev->stage->live)
ChieftainAlex
@ChieftainAlex
Oct 03 2017 18:26
sigh
i'm too lazy to hotfix things
you have to like fill out a bunch of jira stuff
and respond to emails
ChieftainAlex
@ChieftainAlex
Oct 03 2017 18:27
guess that means I will have time to recode the 5 map widgets to use the same hardcoded source
sorry :<
ChieftainAlex
@ChieftainAlex
Oct 03 2017 18:28
my to-do list for the wiki is probably longer than my to-do list at work..
ChieftainAlex
@ChieftainAlex
Oct 03 2017 18:56
question, when other people take screenshots ingame of the world map, do they find a black 1px border on the left?
windwarrior
@windwarrior
Oct 03 2017 18:58
this is... surprisingly accurate
google did this with reCaptcha to digitize their books
one of the words they didn't know how to type (because bad scan or something), and they basically crowdsourced typists
ChieftainAlex
@ChieftainAlex
Oct 03 2017 19:51
is there still a bug tracking log visible to players? or was that rapidly discontinued
ChieftainAlex
@ChieftainAlex
Oct 03 2017 20:00
anyone know if the mastery point icon on the world map is just the 64px one rescaled? I can't seem to find a 32px version
1466341.png
i'm a tool and tabbed back to the same application and found it in the middle of my screen
Archomeda
@Archomeda
Oct 03 2017 21:14
question, does the main gw2 site have json output? or is it rss only?
for the blog posts i mean
XML AFAIK
It's wordpress that's been statically exported
I'm not even sure it has XML
Archomeda
@Archomeda
Oct 03 2017 21:15
it has an rss feed, so that's xml
bleh, i wish i could rip the rss parser out of my discord bot :(
anyhow, i hooked https://en-forum.guildwars2.com/categories/news-and-announcements on my discord bot, so i hope anet employees won't misuse that section too much :P
Archomeda
@Archomeda
Oct 03 2017 21:24
wow, first time i've seen this: https://gyazo.com/4a6228c91a953b2214fd15c26cd39628 (not mine)
oh thanks gw2, i entered the game, and as soon as the loading screen was gone, i got the popup that the client was unable to access to login servers :D
@lye, does the gem store have a semi-transparent black overlay whenever it's still loading or something?
it takes a few seconds before i can click on things in there :P
uhh
not really but the background image should render
Archomeda
@Archomeda
Oct 03 2017 21:31
hmm... odd
the carousel was already moving when this happened
oh well, not an issue or something, just curious
must also be the EU servers derping that i encountered this
windwarrior
@windwarrior
Oct 03 2017 22:14
even the gemstore is down
might be turning off all the APIs
Archomeda
@Archomeda
Oct 03 2017 23:00
yeah, my bot is returning a lot of 400 errors the past few hours
the account endpoint that is
even a 404 apparently :/