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

Move some functions from Server to BaseServer and BokehTornado #10070

Merged
merged 2 commits into from
May 27, 2020

Conversation

bryevdv
Copy link
Member

@bryevdv bryevdv commented May 25, 2020

@mrocklin In the interest of saving you some time I made a new PR with the additional changes needed to get tests passing. Can you test out this branch and verify that is satisfies your needs?

@bryevdv bryevdv changed the title Bryanv/9183 base server Move some functions from Server to BaseServer and BokehTornado May 25, 2020

'''
return self._prefix

@property
def port(self):
Copy link
Member Author

@bryevdv bryevdv May 25, 2020

Choose a reason for hiding this comment

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

The one thing I don't love about this work is leaving the port and address properties instead of deferring to the ones on BaseServer. But if those are are used the log ouptut looks like:

2020-05-25 12:49:11,188 Bokeh app running at: http://0.0.0.0:57641/

instead of

2020-05-25 12:49:11,188 Bokeh app running at: http://localhost:57641/

So I think this will have to do for now.

@@ -170,7 +170,7 @@ def test_prefix(ManagedServerLoop) -> None:
assert server.prefix == ""

with ManagedServerLoop(application, prefix="foo") as server:
assert server.prefix == "foo"
assert server.prefix == "/foo"
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this is actually more correct. Hopefully does not bite anyone.

@bryevdv
Copy link
Member Author

bryevdv commented May 27, 2020

I'm pretty sure this affords what was it the other PR so I will go ahead and merge.

@bryevdv bryevdv merged commit 5c662cb into master May 27, 2020
@bryevdv bryevdv deleted the bryanv/9183_base_server branch May 27, 2020 15:20
@mrocklin
Copy link
Contributor

Hey @bryevdv ! I apologize for going dark here. It's been a busy time and I'm just now going through some github e-mail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Compose Bokeh server with other Tornado HTTP Servers
2 participants