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

Create, Update backfill after MMF run #1299

Merged
merged 13 commits into from
Dec 3, 2020

Conversation

yeukovichd
Copy link
Contributor

@yeukovichd yeukovichd commented Dec 1, 2020

What this PR does / Why we need it:
Each time when MMF proposes a match with backfill, the backfill should be saved or updated in the store.

internal/app/backend/backend_service.go Outdated Show resolved Hide resolved
internal/app/backend/backend_service.go Outdated Show resolved Hide resolved
m := &pb.Match{
MatchId: "1",
Tickets: []*pb.Ticket{t1},
Backfill: b,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please test the mmf changing a value on the backfill.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check changes to search fields and extensions fields will be applied.

internal/app/backend/backend_service.go Outdated Show resolved Hide resolved
client, err := om.Query().QueryTickets(ctx, &pb.QueryTicketsRequest{Pool: &pb.Pool{
StringEqualsFilters: []*pb.StringEqualsFilter{{StringArg: "field", Value: "value"}},
}})

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're also going to want to include making sure the backfill updates in query. (having queried before so we know it has the old cached version.) This isn't going to work until several pieces are in place though... just make sure it's on the work items that get done. (either your tracker, or just an issue on github)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are talking about querying tickets or backfills? Using such code I just want to ensure that ticket associated with backfill will disappear from query results.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh actually this just made me realize, when a backfill is rejected because of an update from the game server - we need to release the tickets because they were already marked as pending by the synchronizer. (or move the marking as pending to the backend after verifying the backfill would work too.)

I was talking about the backfill having a new field value set by the mmf.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The work re: unpending tickets because a backfill changed, can be done in a followup PR.

@Laremere
Copy link

Laremere commented Dec 2, 2020

From the CI failure:
TestProposedBackfillUpdate: backfill_test.go:186: Error Trace: backfill_test.go:186 Error: Expected nil, but got: &status.Error{e:(*status.Status)(0xc0005b6ea0)} Test: TestProposedBackfillUpdate TestProposedBackfillUpdate: common.go:52: Evaluator set but never called. --- FAIL: TestProposedBackfillUpdate (0.06s)

@Laremere Laremere merged commit 6882621 into googleforgames:master Dec 3, 2020
@syntxerror syntxerror added this to the v1.2.0 milestone Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants