sourcegraph/internal/own
Varun Gandhi 930033ca9b
chore: Replace QueuedCount -> CountByState with bitset parameter (#64302)
Previously, the QueuedCount method was confusing because:

1. By default, it actually returned the count for both the 'queued' and
   'errored' states (despite the name just have 'Queued').
2. There was an additional boolean flag for also returning entries in
    the 'processing' state, but reduced clarity at call-sites.

So I've changed the method to take a bitset instead, mirroring the
just-added Exists API, and renamed the method to a more
generic 'CountByState'.

While this does make call-sites a bit more verbose, I think the
clarity win makes the change an overall positive one.
2024-08-07 16:09:18 +08:00
..
background chore: Replace QueuedCount -> CountByState with bitset parameter (#64302) 2024-08-07 16:09:18 +08:00
codeowners bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
search bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
types bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
BUILD.bazel chore: Move authn into cmd/frontend (#63648) 2024-07-31 03:26:25 +02:00
conf.go gating: Add individual switches for disabling tools features (#63686) 2024-07-16 15:45:38 +02:00
ownref_test.go chore: Move authn into cmd/frontend (#63648) 2024-07-31 03:26:25 +02:00
ownref.go chore: Move authn into cmd/frontend (#63648) 2024-07-31 03:26:25 +02:00
service_test.go gitserver: Unify filereader API (#59782) 2024-01-24 13:53:57 +01:00
service.go gitserver: Unify filereader API (#59782) 2024-01-24 13:53:57 +01:00