data column in tasks table #6
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?
I would need
data
column intasks
model.It would be similar to
description
, but would not be visible for user.It would contain free JSON that could keep machine readable data realated to the task.
For example it could store reference to Curo record which caused this task to be created, but it could store also information to be used by Curo when task is marked as done (see #5).
I thought about using attachments for this and basically allowing attachments to be everything, not only files. That would come in useful for other integrations as well (like adding a reference to a PR to a task in Vikunja).
My comments against using attachemnts:
hide_on_ui
flagThe point is, that this field doesn't need to be indexed, nor understood by Vikunja API server, but is needed for the entity received the task data.
That's what I thought. The API would allow either
file
attachments which behave like the current ones orsomething else entirely
. The api would return all attachments and the frontend would need to decide what to evaluate or not. The response would look something like this:You could then tell the api "hey update whatever I have stored as the
something else entirely
attachment type and it would just store that as a json blob, maybe merging with other stuff.Maybe that's just me overengineering things but I think this would be a nice abstraction.