This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix/frontend/graphql: log and add trace events for all non-not-found errors that occur when fetching permission syncs #63302
Merged
ggilmore
merged 1 commit into
main
from
graphite-ggilmorefix_frontend_graphql_log_and_add_trace_events_for_all_non-not-found_errors_that_occur_when_fetching_permission_syncs
Jun 17, 2024
Merged
fix/frontend/graphql: log and add trace events for all non-not-found errors that occur when fetching permission syncs #63302
ggilmore
merged 1 commit into
main
from
graphite-ggilmorefix_frontend_graphql_log_and_add_trace_events_for_all_non-not-found_errors_that_occur_when_fetching_permission_syncs
Jun 17, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4d5e82c
to
c3c0cf5
Compare
380a90a
to
688cede
Compare
eseliger
approved these changes
Jun 17, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice tests
688cede
to
054ced3
Compare
c3c0cf5
to
fd80f0c
Compare
054ced3
to
d877433
Compare
fd80f0c
to
68da82c
Compare
d877433
to
d0fb084
Compare
68da82c
to
b7026c4
Compare
d0fb084
to
782e733
Compare
…errors that occur when fetching permission syncs
782e733
to
79a43a0
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
cla-signed
team/product-platform
team/source
Tickets under the purview of Source - the one Source to graph it all
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes https://linear.app/sourcegraph/issue/SRC-421/customer-reported-an-issue-with-user-permissions-stats
This PR ensures that any non not-found errors that occur when fetching permission sync jobs are logged and added as error events in the trace. Before, these errors were silently swallowed which makes things exceptionally hard to debug.
This PR only changes the monitoring around this query - it doesn't change the underlying behavior.
Note: I spent a while reading up on how to communicate partial errors in our graphql API, but it seems like there isn't a clear consensus.
According to the above, it seems like ideally we should be returning
null
in the graphQL for permission sync jobs that have an error. However, when I tried to do this I begain seeing nil panics all over the place. It's hard for me to know if the underlying library supports this or if we are just holding it wrong. 😥Test plan
Unit tests
Changelog