Update TrackedTime #196
Labels
No Label
has/backport
has/pull
in progress
invalid
kind/breaking
kind/bug
kind/build
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/refactor
kind/security
kind/testing
kind/translation
kind/ui
need/backport
priority/critical
priority/low
priority/maybe
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
No Milestone
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/go-sdk#196
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Adapt
TrackedTime
to recent changes in https://github.com/go-gitea/gitea/pull/9200 scheduled for v1.11.Needed for gitea/tea#54
Not sure when in the release cycle you adapt to changes.
May I ask why such types are redefined in this package, instead of referencing the original types in the gitea main code?
That would require anyone who wishes to use the SDK to have the entirety of Gitea as a dependency afaik.
On the opposite side of this being "why doesn't Gitea instead use the SDK as a dependency", we didn't want to make contributions more complicated by requiring a PR in two places for one feature that would change a struct.
It's a double-edged sword. 😦
Ah, makes sense. Maybe having a thin
models
/types
package would solve this (would require changes to 2 repos still even for gitea core contributions)Previously this repo was that second package where the types were stored, however we found it was difficult to backport changes, as well as when merging in PRs we had conflicts when some PRs merged in here, conflicted with PRs in other repo. After moving types to main repo these issues went away, but it came with some overhead that you noticed. So if we had a third repo that both of these imported from we'd still run into the same issues as before.
@techknowlogick can we add a CI task wich creat a issue when something is merged into master wich has struct changes?
with content what was toutched so we can update?
@6543 sounds a good idea.
created https://github.com/go-gitea/gitea/issues/9399 to have a record of this
since this issue (#196) is only about TrackedTime struct
@lunny