Skip to content

Internal API routing#1411

Merged
jb3 merged 3 commits into
masterfrom
internal-api-routing
Feb 10, 2021
Merged

Internal API routing#1411
jb3 merged 3 commits into
masterfrom
internal-api-routing

Conversation

@jb3
Copy link
Copy Markdown
Member

@jb3 jb3 commented Feb 10, 2021

Migrates away from the API fetching through Cloudflare to use cluster-local DNS and hit the Django service directly.

  • Migrate API utilities to use internal DNS routing
  • Migrate ping command to ping internal API

@jb3 jb3 requested a review from ks129 as a code owner February 10, 2021 01:09
@jb3 jb3 added a: API Related to or causes API changes a: backend Related to internal functionality and utilities (error_handler, logging, security, utils and core) p: 1 - high High Priority t: enhancement Changes or improvements to existing features labels Feb 10, 2021
@coveralls
Copy link
Copy Markdown

coveralls commented Feb 10, 2021

Coverage Status

Coverage increased (+0.003%) to 56.677% when pulling 9111f9f on internal-api-routing into 2636835 on master.

Copy link
Copy Markdown
Contributor

@MarkKoz MarkKoz left a comment

Choose a reason for hiding this comment

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

Can you update contrib guidelines to mention that the site_api has to be set too? I think it just needs to state that the value is identical to site for development purposes.

Checking if the production stuff is adequately set up for this is out of my scope.

Comment thread config-default.yml Outdated
Copy link
Copy Markdown
Member

@Den4200 Den4200 left a comment

Choose a reason for hiding this comment

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

Other than Mark's requested changes, the code is solid.

@jb3
Copy link
Copy Markdown
Member Author

jb3 commented Feb 10, 2021

Contribution guides at https://pythondiscord.com/pages/contributing/bot/ have been updated.

@jb3 jb3 merged commit 79f163b into master Feb 10, 2021
@jb3 jb3 deleted the internal-api-routing branch February 10, 2021 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: API Related to or causes API changes a: backend Related to internal functionality and utilities (error_handler, logging, security, utils and core) p: 1 - high High Priority t: enhancement Changes or improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants