Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Conversation

0xPoe
Copy link
Contributor

@0xPoe 0xPoe commented Apr 18, 2023

close #587
close #637

Adapt the gzip support from Mimir as well.

@0xPoe 0xPoe marked this pull request as draft April 18, 2023 02:56
Copy link
Contributor Author

@0xPoe 0xPoe left a comment

Choose a reason for hiding this comment

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

Need to resolve the conflicts and move more grpc APIs into api.go.

@0xPoe 0xPoe changed the title Refactor all APIs to a better structure WIP: Refactor all APIs to a better structure Apr 18, 2023
@0xPoe 0xPoe force-pushed the rustin-patch-API-refactor branch from 54978bd to 0456310 Compare April 18, 2023 12:20
@0xPoe 0xPoe changed the title WIP: Refactor all APIs to a better structure Refactor all APIs to a better structure Apr 18, 2023
@0xPoe 0xPoe marked this pull request as ready for review April 18, 2023 13:27
Copy link
Collaborator

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

Why do we fork gzip ?

@0xPoe
Copy link
Contributor Author

0xPoe commented Apr 19, 2023

Why do we fork gzip ?

Did you ask why we copy the gizp code or why we add gzip support?

From the comment:

// Package gziphandler mirrors the package github.com/nytimes/gziphandler
// until https://github.com/nytimes/gziphandler/pull/112 is merged.
// Once it's merged, we can delete it from here and switch back to using that one.

@0xPoe
Copy link
Contributor Author

0xPoe commented Apr 20, 2023

Tested it locally:
image

@0xPoe 0xPoe requested a review from cyriltovena April 20, 2023 11:25
Copy link
Contributor Author

@0xPoe 0xPoe left a comment

Choose a reason for hiding this comment

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

Self check

@cyriltovena cyriltovena merged commit e6d4640 into grafana:main Apr 20, 2023
@0xPoe 0xPoe deleted the rustin-patch-API-refactor branch April 20, 2023 14:17
simonswine pushed a commit to simonswine/pyroscope that referenced this pull request Jun 30, 2023
* Refactor all APIs to a better structure

* Resolve conflicts

* Move all into api.go

* Refine the deps

* Fix broken APIs

* Fix lint

* Refine the auth

* Better order

* Add api test

* Fix panic

* Fix broken UI

* Add `/ingest` API
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor API structure to make the code more organized and easy to test
2 participants