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

Revert "config: Add a flag to control the /metrics and /status endpoints" #3251

Merged

Conversation

freesteph
Copy link

Reverts #3219

Apologies there's a bug in the PR above. Hedgedoc uses the /config endpoint to transmit some information client-side, via writing into the window object.

Though I don't think it's a great mechanism, I don't have a patch yet to work around it, so revert the previous PR in the meantime.

@mrdrogdrog
Copy link
Member

sigh i hate the 1.x code so much...

Please sign off the commit.

@freesteph freesteph force-pushed the revert-3219-fix/custom-observability branch from df78d8f to 090bb8f Compare February 1, 2023 10:07
…nts"

This reverts commit d10ead4.

Signed-off-by: Stéphane Maniaci <stephane.maniaci@beta.gouv.fr>
@freesteph freesteph force-pushed the revert-3219-fix/custom-observability branch from 090bb8f to b79e09e Compare February 1, 2023 10:09
@freesteph
Copy link
Author

Done. Apologies for not noticing this beforehand, next time I'll make sure our changesets get tested in our own environments first.

@mrdrogdrog
Copy link
Member

It's okay. There is a reason why we're rewriting this unpredictable mess 🙃

@mrdrogdrog
Copy link
Member

mrdrogdrog commented Feb 3, 2023

Tbh: I don't think that it's necessary to revert EVERYTHING. Just revert the code for deactivation of the status route and keep the code that deactivates the metrics route because the metrics route is the sensible one.

@mrdrogdrog mrdrogdrog merged commit 488e5f8 into hedgedoc:master Feb 5, 2023
@mrdrogdrog
Copy link
Member

I've merged this PR to repair the master branch. If you still want to deactivate the metric route then feel free to create a new PR.

@freesteph
Copy link
Author

Sorry I was busy this weekend, I'll push a new PR soon. Thanks for taking care of this!

@freesteph freesteph deleted the revert-3219-fix/custom-observability branch February 6, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants