Repository navigation
Add alternate_hosts - #10166
Add alternate_hosts#10166
Conversation
Build BROKENStarted: 2018-04-02 12:00:02 Failing Jobs
View more information about this build on: |
I guess I'd be a little surprised when writing tests if I had to shift over to an entirely different semantic in order to use a different domain. Subdomains of
(Also: I don't actually care about |
|
So I think there's a few questions here:
Half of this is complicated by the expectation that we'll have multiple alternate hosts (i.e., we can't just go with The current behaviour in this PR is:
Most of that is driven by what makes implementation simple. I'm not entirely sure what I want the answers to be; my gut says:
|
One way to answer this question is to stop thinking of
I think some of this logic needs to be hard-coded in the test. Like, we know that tests open up on I guess it's not clear to me whether we really need another alternate host. I guess having two registrable domains suggests that we might need more than two? But two is different in kind from one in a way that three might not me. That is, I think I can perform all the cookie tests I care about from one registrable domain to another. Adding a third wouldn't help me in the tests I know I need to write today. |
|
So changing the semantics of One could do some magic to make a two argument form work like |
We already have
My understanding from #2669 and #8581 was that you wanted two new alternate hosts. If you think we might only need one, then that arguably makes this all simpler.
It's low-risk because any bogus use will currently return 500 Internal Server Error (as with most bogus sub uses).
|
Sorry for the confusion. I need one. I don't need two. I can imagine features that might need two at some point (if we ever get around to working through the weeds of concepts like site affiliation, for instance, or if folks decide that FIDO's facets were a good idea after all), but the use cases I know of today don't need more than two registrable domains total.
If we did that, how about going all the way with something like |
To me, that sounds like there's a reasonable chance of needing more than two in the future, and we probably shouldn't therefore go with something that makes ergonomics worse when we add more.
I did consider something like that; I'm still not opposed to it, though it does make linting for |
|
I wouldn't mind I object to putting the full wpt domain in because that's just wrong in some scenarios, and therefore misleading. |
a2e8388 to
13b5561
Compare
|
Any progress on this? There's increased interested in |
|
The only funtional change I would like here is moving from I agree this is high priority. |
|
@mikewest tl;dr: I got ill, and then I was at the CSS WG F2F and am now out in CA for BlinkOn. Still a priority for when I actually write any code. |
And have |
|
Yes. |
|
@jgraham that's now done |
|
Reviewed 2 of 9 files at r1, 1 of 1 files at r2, 3 of 4 files at r3, 4 of 4 files at r4. tools/wptserve/wptserve/config.py, line 185 at r4 (raw file):
I am a bit scared that changing the return type here is going to break stuff (again). tools/wptserve/wptserve/pipes.py, line 445 at r4 (raw file):
This should be added to the docs. tools/wptserve/wptserve/pipes.py, line 448 at r4 (raw file):
Should we just support Comments from Reviewable |
|
Review status: 7 of 11 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. tools/wptserve/wptserve/config.py, line 185 at r4 (raw file): Previously, jgraham wrote…
There isn't that much that uses tools/wptserve/wptserve/pipes.py, line 448 at r4 (raw file): Previously, jgraham wrote…
I have no strong preference. Comments from Reviewable |
|
Reviewed 1 of 4 files at r5, 6 of 6 files at r6. tools/wptserve/wptserve/pipes.py, line 448 at r4 (raw file): Previously, gsnedders (Geoffrey Sneddon) wrote…
I think I err in the direction of having an alias, if it's not too much trouble. But don't worry if it is. Comments from Reviewable |
|
Review status: 10 of 12 files reviewed at latest revision, 2 unresolved discussions, some commit checks pending. tools/wptserve/wptserve/pipes.py, line 445 at r4 (raw file): Previously, jgraham wrote…
Done. tools/wptserve/wptserve/pipes.py, line 448 at r4 (raw file): Previously, jgraham wrote…
I think I'm now erring against it, given it could easily lead to bugs with code expecting each thing in Comments from Reviewable |
|
Reviewed 2 of 2 files at r7. tools/wptserve/wptserve/pipes.py, line 448 at r4 (raw file): Previously, gsnedders (Geoffrey Sneddon) wrote…
OK, we can do it in a followup if there are issues. Comments from Reviewable |
jgraham
left a comment
There was a problem hiding this comment.
This looks good; happy for you to land it. Thanks!
Fixes #2669.
Note this doesn't yet do #8581, but adding a new host at this point is adding a string to the config file, and adding new subdomains is just editing the list in
tools/serve/serve.py.@mikewest: This gives us
alt_domains[0]andalt_domains[1], which isn't quite what we were talking about in #8581 (given there's nowhere to put 'this-is-mikes-domain-go-away'). I think giving them names is going to be a fair bit of extra complexity, but let me know what you think?Also, FWIW, I'm pretty sure this will fail CI. But opening the PR so people can look at it if they want before I touch it again on Monday.
This change is