change all docs and generated URLs to point to "/cap" instead of "/uri" #1715
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#1715
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From #tahoe-lafs:
13:58 < warner> I also noticed that /uri and /cap are synonyms.. not sure if that's documented
13:59 < zooko> I had the idea, many years ago, to rename "uri" to "cap" everywhere, but never finished that process...
14:00 < marlowe> warner: if you create the ticket, and assign it to docs, I will make the change
14:00 < warner> I think that synonym came from that process
14:00 * zooko nods
14:01 < marlowe> also, once I finish #1663 we should have a good idea on what is a synonym for what
14:01 < zooko> I had planned to change the Web API docs to direct programmers to the new name -- /cap/ -- and leave the old one for backward-compatibility.
Another option would be to delete
/cap
. Why have two ways to do things?Replying to davidsarah:
You read my mind. I think ticket #1663 will help us get an idea where we have synonyms and then create tickets to either remove the cruft or maintain backwards compatibility. I added Brian and Zooko to the ticket as they can shed more light on it than I.
In the meantime until we decide how to proceed on the above, I will make the necessary changes to webapi.rst.
/cap and /uri are synonymsto change all docs and generated URLs to point to "/cap" instead of "/uri"The attached patch is a workaround, until we get all instances of /uri changed to /cap, we need to have this in webapi.rst. If someone can tell me when /cap was introduced, I will add the version information into webapi.rst. I submitted a pull request to github with this patch.
Attachment ticket-1715.patch (755 bytes) added
Reasons not to rename
/uri
to/cap
:/cap
is not that much better a name;/uri
as well as/cap
;/cap
, and it wasn't documented, so there's no reason not to just delete it.Incidentally, if we are going to change the gateway URLs, I'd rather shorten them by not having any additional prefix, since the
URI:
prefix (orlafs:
if we change it to that) is unambiguous. This would only involve a slight complication in the root handler.David-Sarah: I think "cap" is a much better name. These things are not officially URIs, as they aren't officially recognized by IANA and they don't even follow the URI spec. Also, they are not even conceptually URIs, because an "identifier" does not, according to most people's conceptions, convey authority. That's how a cap differs from an identifier.
Also, we use the name cap fairly consistently in all the documentation except for the URL structure itself, so currently someone who reads the docs has to remember "Okay, '/uri/' is where the cap goes.", which seems harder than "Okay, '/cap/' is where the cap goes.".
I like your idea of removing the "/uri/" or "/cap/" altogether. That's intriguing. Want to talk about that?
Accepting to remind me to talk about removing "/uri/" or "/cap/"
So, we can get away with removing "/uri/" or "/cap/" because the
URI:
prefix (orlafs:
if and when we switch to that) makes the meaning unambiguous. The root handler can just check whether the immediate child name starts with "URI:", and if it does, delegate to the same handler as "/uri/".