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
Ticket3252 port web directory.remaining.1 #672
Ticket3252 port web directory.remaining.1 #672
Conversation
Arg, the perils of comparing strings ... (to repeat the circle-ci failures, use the same PYTHONHASHSEED) |
Codecov Report
@@ Coverage Diff @@
## master #672 +/- ##
==========================================
+ Coverage 89.66% 90.24% +0.57%
==========================================
Files 164 164
Lines 29015 29004 -11
Branches 4131 4131
==========================================
+ Hits 26017 26174 +157
+ Misses 2234 2095 -139
+ Partials 764 735 -29
Continue to review full report at Codecov.
|
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.
Thanks. Various comments inline, as usual.
Okay, minus the Hypothesis thing I've made changes for all your comments. Thanks! |
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.
Thanks. I think the changes generally look good. There are some comments looks like they may have been missed. I'm confused at how github is presenting them. I don't see them on this page at all... Oh they're hidden behind a "14 hidden conversations" button for some reason....
Did you see those?
Okay, so this whole "should So the question is: should edit: the plot thickens, |
I tried to make an alternative to the last commit that does a 307 redirect (instead of making it an error) on urls like So, I could still make it a re-direct instead of an error fairly easily, but a lot of the other changes to |
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.
Thanks. This was a slog to read. I'm sure it was worse to write. ;) Overall my impression is that we have a ton of work left to do to clean up Tahoe-LAFS' web interface... However this appears to be a significant and valid step towards eliminating the Nevow dependency ...
So, please have a look at the very minor inline comments and then .. I want to say "feel free to merge" but I guess we have to do something about CI.
None of the configured GitHub Actions have run for this PR. Is it older than them? I don't think so. I read something about how both repos (original and fork) have to have GitHub Actions turned on for them to run ... but the thread was fairly unclear so I'm not sure that's it. The simplest thing might just be to prefer in-repo PRs instead of PRs from forks... I dunno. After reading all that web code I can't also think about minimizing GitHub workflow weirdness.
This reverts commit 8f00f4d.
This makes /uri/xxx URIs invalid if they have a trailing slash. It seems that the former Nevow implementation would allow this, and some tests (and, notable, "tahoe backup") did rely on using URIs of this style.
fdd8f52
to
8df1ed1
Compare
fixes:ticket:3252
Port the "directory" functionality from nevow to
twisted.web.template
There are a lot of lines of changes here, but there are a bunch of "mechanical" changes that required some re-indenting and search-replace changes -- these are "tags" (HTML built up in code) stuff, changing from "context" to "request" objects and a bunch of stuff switching regular-expression use in tests to BeautifulSoup
This change is