Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/v2/guild/:id/log: upgrade events have item ids, not upgrade ids. #425

Closed
lye opened this issue Jan 9, 2017 · 7 comments
Closed

/v2/guild/:id/log: upgrade events have item ids, not upgrade ids. #425

lye opened this issue Jan 9, 2017 · 7 comments
Labels

Comments

@lye
Copy link
Contributor

lye commented Jan 9, 2017

Oops.

@lye
Copy link
Contributor Author

lye commented Jan 9, 2017

Guh, this is going to take a full release cycle to fix. The backend component which reads the dat file isn't currently outputting enough data to get the upgrade id from the item id.

@lye
Copy link
Contributor Author

lye commented Jan 11, 2017

The frontend support for this is in -- offending log entries will now have an item_id field. Once the backend support lands (in a month? I don't know what the release schedule looks like) the corresponding upgrade_id field should start appearing.

EDIT: There may be other bugs lurking in this; if errors get kicked back gimme a guild id and I can track down exactly what's going on :<

@mschillinger
Copy link

mschillinger commented Jan 13, 2017

Not sure if it's a bug or just related to the upcoming backend changes but currently the "treasury" events seem to lack the user field and the count is always 1:
{
"type": "treasury",
"item_id": 19721,
"count": 1,
"id": 157180,
"time": "2017-01-13T08:16:56.000Z"
}
I'd provide a gild ID if it's a bug and not related to the backend.

@lye
Copy link
Contributor Author

lye commented Jan 13, 2017

I definitely broke something, the code doesn't even match the comments

        // poolType indicates the reason for the escrow:
        //   2 = ESCROW_POOL_TYPE_UPGRADE_COMMON, e.g., treasury deposit
        //       poolId is unused.

        if(poolType === 2 && poolId === 0 && resourceType === 1) {
            // Normal treasury deposit of an item.

Should be able to repro locally since it looks so broken, but a guild id never hurts.

@mschillinger
Copy link

F22D63A0-60CB-E411-A2AD-AC162DC0A8ED
The guild ID matches the guild from which i've taken the log entry above, so the ID of the log entry should be one of the broken ones.

@lye
Copy link
Contributor Author

lye commented Jan 13, 2017

Just deployed a fix on live, thanks for the heads up <3

@mschillinger
Copy link

Thanks for the fix and your time! :)

@tivac tivac closed this as completed Jan 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants