Skip to content

Client should print URLs rather than base API URL + object ID

The client currently shows messages such as this:

Workflow created on http://debusine.internal/api with id XXX.

Technically speaking this does provide most of the information you need, but it's a bit difficult to use because you have to work out the URL for yourself. I would prefer it to look like this:

Workflow created: http://debusine.internal/debusine/System/work-request/XXX/

The same applies to various other kinds of objects created from the client. For artifacts we may want to still print the ID separately as well, because if you're creating an artifact it's probably because you're about to want to pass its ID to a workflow or a work request. Otherwise, I think we should generally just print the URL to the web UI for the object.

Right now the API doesn't provide the web URLs of objects it returns, so the client would have to know how to assemble these itself. But it already has to know about the server's API URL structure - the client is relatively knowledgeable, rather than being in the style of very generic clients programmed via a schema provided by the server - so maybe that wouldn't be too bad?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information