-
Notifications
You must be signed in to change notification settings - Fork 486
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
Rename "Postgres nodes" in control_plane to endpoints. #3938
Conversation
56bf5b4
to
da73f68
Compare
Test results for 1ce670a:debug build: 212 tests run: 202 passed, 0 failed, 10 (full report)release build: 212 tests run: 202 passed, 0 failed, 10 (full report) |
b410af5
to
8e06018
Compare
da73f68
to
1f2946a
Compare
8e06018
to
939ea29
Compare
1f2946a
to
1326ccc
Compare
1f2df18
to
f0b2e07
Compare
1326ccc
to
d823c15
Compare
d823c15
to
50e38f5
Compare
50e38f5
to
7f4f29e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The biggest problem is mental migration, and maybe someone has scripts. We could assist with that while accumulating 1 line of code to make a question on slack unnecessary.
Aside from these ... I think it looks good if the tests pass? :) I can't say I read through everything.
7f4f29e
to
4c20605
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went through the control_plane and fixtures parts again, couldn't find anything apart from the rename and minor refactorings.
The regress test failure was a #2962 I think:
|
We use the term "endpoint" in for compute Postgres nodes in the web UI and user-facing documentation now. Adjust the nomenclature in the code. This changes the name of the "neon_local pg" command to "neon_local endpoint". Also adjust names of classes, variables etc. in the python tests accordingly. This also changes the directory structure so that endpoints are now stored in: .neon/endpoints/<endpoint id> instead of: .neon/pgdatadirs/tenants/<tenant_id>/<endpoint (node) name> The tenant ID is no longer part of the path. That means that you cannot have two endpoints with the same name/ID in two different tenants anymore. That's consistent with how we treat endpoints in the real control plane and proxy: the endpoint ID must be globally unique.
4c20605
to
1ce670a
Compare
Pushed, thanks for the review, @koivunej ! |
We use the term "endpoint" in for compute Postgres nodes in the web UI
and user-facing documentation now. Adjust the nomenclature in the code.
This changes the name of the "neon_local pg" command to "neon_local
endpoint". Also adjust names of classes, variables etc. in the python
tests accordingly.
This also changes the directory structure so that endpoints are now
stored in:
instead of:
The tenant ID is no longer part of the path. That means that you
cannot have two endpoints with the same name/ID in two different
tenants anymore. That's consistent with how we treat endpoints in the
real control plane and proxy: the endpoint ID must be globally unique.
(This is extracted to separate PR from PR #3886, and developed further to also rename the 'neon_local pg' command to 'neon_local endpoint', and all the changes in the python test)