Skip to content

Post-cutover cleanups to the back-end#286

Merged
AllenAnthes merged 5 commits intoOperationCode:masterfrom
irvingpop:add_health_check
Mar 3, 2020
Merged

Post-cutover cleanups to the back-end#286
AllenAnthes merged 5 commits intoOperationCode:masterfrom
irvingpop:add_health_check

Conversation

@irvingpop
Copy link
Copy Markdown
Collaborator

Description of changes

Found a few annoyances, this PR cleans those up:

  • Our honeycomb trace data is polluted with ELBHealthChecker requests. Let's give those a better place to go ( /healthz ) and not store those traces
  • prod now refuses to respond to the name api.operationcode.org and that's confusing people
  • I can't close those dependabot PRs directly, but a previous PR fixes those

Issue Resolved

closes #282, closes #279, closes #271, closes #265, closes #255, closes #239, closes #231

Screenshots/GIFs

Signed-off-by: Irving Popovetsky <irving@popovetsky.com>
Signed-off-by: Irving Popovetsky <irving@popovetsky.com>
…or else youll have a bad day trying to troubleshoot

Signed-off-by: Irving Popovetsky <irving@popovetsky.com>
Signed-off-by: Irving Popovetsky <irving@popovetsky.com>
Signed-off-by: Irving Popovetsky <irving@popovetsky.com>
@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit d1078d4 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 99.4% (0.0% change).

View more on Code Climate.

Comment thread src/gunicorn_config.py
response_code = fields.get("response.status_code")

# never sample errors
if response_code and response_code >= 500:
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

would it be better python to instead say:

    if response_code is not None and response_code >= 500:

?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Eh, I think it's fine.

@irvingpop
Copy link
Copy Markdown
Collaborator Author

hey @AllenAnthes please merge if this looks good to you. had a style question about 1 line.

Copy link
Copy Markdown
Member

@AllenAnthes AllenAnthes left a comment

Choose a reason for hiding this comment

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

lgtm!

@AllenAnthes AllenAnthes merged commit b4e3e05 into OperationCode:master Mar 3, 2020
@irvingpop irvingpop deleted the add_health_check branch March 3, 2020 21:24
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