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

Add Get and Post for ProgressReport #16

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Add Get and Post for ProgressReport #16

merged 1 commit into from
Jun 12, 2024

Conversation

vegarsti
Copy link
Member

@vegarsti vegarsti commented Jun 11, 2024

This PR adds Get and Post methods for the progress report API (https://github.com/duneanalytics/duneapi/pull/559).

We use the endpoints in #17 (and they work!).

Towards CHAIN-1588.

Copy link
Member Author

vegarsti commented Jun 11, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @vegarsti and the rest of your teammates on Graphite Graphite

@vegarsti vegarsti requested review from msf and helanto and removed request for msf June 11, 2024 12:36
client/duneapi/client.go Outdated Show resolved Hide resolved
models/progress.go Outdated Show resolved Hide resolved
@vegarsti vegarsti force-pushed the progress-report branch 3 times, most recently from 6fc3ab3 to d28f60a Compare June 12, 2024 07:30
@vegarsti
Copy link
Member Author

vegarsti commented Jun 12, 2024

The failing test is a bit flaky, there's a race condition (we don't change it here). The next PR is more stable, we change the main ingester logic a bit there.

Copy link
Contributor

@helanto helanto left a comment

Choose a reason for hiding this comment

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

LGTM!

}
err = fmt.Errorf("got non-OK response, status code: %d, body: '%s'", resp.StatusCode, errorResp.Error)
// No progress yet
if resp.StatusCode == http.StatusNotFound {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice 👍

client/duneapi/models.go Show resolved Hide resolved
@vegarsti vegarsti merged commit c48f8c2 into main Jun 12, 2024
1 check failed
@vegarsti vegarsti deleted the progress-report branch June 12, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants