You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, this is going to be a bit tricky to fix properly as the way to bubble up those messages from deeper layer of git-bug need to be reworked a bit.
This looks like a good argument for passing stderr into the repository package as discussed in #891 (comment). I would argue that the above message isn't actually incorrect as the first copy of the repeated string is fetching refs for identities and the second is fetching refs for entities (in this case bugs).
That's eerily similar to what I was typing in a new issue (presuming this one is closed with the "quick" fix). For reference, this behavior also needs to be passed through the caching layer at:
I'd suggest that we also pass the entity "type" with each BuildEvent and define this type at the core (maybe as RemoteEvent instead?). RepoCache.Fetch can loop through Identities, Bugs, PRs, Boards and the events can simply be merged into the output of func (c *RepoCache) Fetch(remote string) chan BuildEvent.
With a little care, we can use the Scatter-Gather pattern to execute the remote fetches in parallel too but the UIs would need to know that there's no guarantee on the ordering. Of course, if executed sequentially, the UIs still need to know the type of an entity to present something meaningful to the user.
I'd suggest that we also pass the entity "type" with each BuildEvent
I was thinking about the Typename that you can find in the entity definition.
RepoCache.Fetch is another good candidate for that kind of event, but let's have a different event type. That way we have a clean and obvious cache.BuildEvent and cache.FetchEvent, with their own things.
Activity
MichaelMure commentedon Sep 14, 2022
Unfortunately, this is going to be a bit tricky to fix properly as the way to bubble up those messages from deeper layer of git-bug need to be reworked a bit.
smoyer64 commentedon Oct 1, 2022
This looks like a good argument for passing
stderrinto therepositorypackage as discussed in #891 (comment). I would argue that the above message isn't actually incorrect as the first copy of the repeated string is fetching refs for identities and the second is fetching refs for entities (in this case bugs).MichaelMure commentedon Oct 24, 2022
The thing I've been thinking about is something like this:
Then each UI can format that however make sense.
smoyer64 commentedon Oct 24, 2022
That's eerily similar to what I was typing in a new issue (presuming this one is closed with the "quick" fix). For reference, this behavior also needs to be passed through the caching layer at:
https://github.com/MichaelMure/git-bug/blob/55a2e8e4485fe63fbda759540958c7190dfeb85c/cache/repo_cache_common.go#L76-L88
I'd suggest that we also pass the entity "type" with each
BuildEventand define this type at the core (maybe asRemoteEventinstead?).RepoCache.Fetchcan loop through Identities, Bugs, PRs, Boards and the events can simply be merged into the output offunc (c *RepoCache) Fetch(remote string) chan BuildEvent.With a little care, we can use the Scatter-Gather pattern to execute the remote fetches in parallel too but the UIs would need to know that there's no guarantee on the ordering. Of course, if executed sequentially, the UIs still need to know the type of an entity to present something meaningful to the user.
MichaelMure commentedon Oct 24, 2022
I was thinking about the
Typenamethat you can find in the entity definition.RepoCache.Fetchis another good candidate for that kind of event, but let's have a different event type. That way we have a clean and obviouscache.BuildEventandcache.FetchEvent, with their own things.