Fossil Forum
Post: Remove the "remote-permalink" setting?
The remote-permalink setting is a new I propose to remove it. Here's the background:
When you run "fossil bisect ui" at the end of a bisect, Fossil pops up a local
webpage showing a timeline of the bisect. On the submenu bar is a "Permalink"
button. If you click the "Permalink" button, it redirects to a different URL
that shows the current state of the bisect using the /timeline webpage with
a special query parameter.
The problem is that the new /timeline page is still running on your local pop-up Fossil web server, not the remote server that you would normally use for that kind of thing. So as soon as you shut down the "fossil bisect ui" command that you have running in a shell, you can no long click on links of that /timeline. Bummer. A new feature is that when the remote-permalink is true, the "Permalink" button redirects to the /timeline on your remote server, which should be always running. This is more convenient. I've used it for a while now, and it is nicer.
Why not just make remote-permalink the default? Why is there a setting for this?
You might be operating off-network, in which case the remote will be unreachable.
Proposed change
I propose to omit the remote-permalink setting and instead have the "Permalink" button reference the remote if and only if the autosync setting is on. Then if you are off network, presumably autosync is disengaged, and the "Permalink" button goes to your local pop-up web server. But in the common case where you are on network, it goes to your default remote.
Send your feedback
How do you think this should work? Or do you even care?
Just to be sure I understand the proposed change:
Right now, the permalink setting does what exactly ? Only turn on or off this "permalink" button on the local fossil bisect ui page ?
The proposed change means ?:
- no "permalink" button anymore (and no more setting of course).
- fossil bisect ui will directly open the /timeline on the remote server
+ when there's a remote set and autosync is on.
And does "permalink" only use for fossil bisect ui ?
The "Permalink" button has been there for ages and will stay where it is. The change is in where the "Permalink" button links. Does it link to "http://localhost:8080/" (or wherever your pop-up server is running) or does it go out to your remote host (ex: "https://fossil-scm.org/home/")? Up until recently, it always linked to localhost. I added the remote-permalink boolean to force it out to https://fossil-scm.org/home/ or similar.
The question is this: Should I eliminate the remote-permalink setting and just use the existing autosync setting to decide whether to link to localhost or remote?
Ha, I just realized what "permalink" really is, it's just all the bisect nodes specified directly in the url.
I think the change make sense, if the link is intended to pasted in a forum post, /chat or a commit message to refer to a specific bisect result, the local version is never useful for sure.
I didn't know it exist before, I'll think about it on my next bisect.
I don't think I would ever use it with the localhost version anyway.
How do you think this should work? Or do you even care?
If I used it I might care, but I've never used the setting. Will this somehow introduce new behavior to those who have never had the setting enabled? If not, then it's probably fairly innocuous.
Caveat: I am aware of my own ignorance regarding what you might be using the link obtained from the permalink button for, and in what context.
The question is this: Should I eliminate the remote-permalink setting and just use the existing autosync setting to decide whether to link to localhost or remote?
I don't see any particular advantage to eliminating the setting beyond the 'too many settings bad' idea, though I may well be missing something as bisect is something I have never used.
On the other hand my whiskers start twitching when I see a setting acquiring behaviour which doesn't seem to be obvious from its name - test: what is the user documentation going to look like?
There is also a specific scenario which tripped me up recently which may be relevant.
- there is an open source project with a web site including a fossil instance, but the developer has long since dropped off the radar.
- I want to make my own version, and think the most reliable way is to make a clone and record my changes on that. I just work on that local copy, without hosting it, treating it as a private and permanent fork.
- This seems fine until later I discover that every time I commit fossil is going out to the original server to try to sync with it. (Aside: Fortunately this fails, because I don't have credentials on that server. So I unset autosync and blitz the parent url for good measure)
It is very much an edge case, but the behaviour of 'permalink' may be odd: it seems to give you a link to a server which has no record of the bisect you are trying to link to.
Trevor