Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(server): Add sync errors to connection count #3025

Conversation

nalanj
Copy link
Contributor

@nalanj nalanj commented Nov 20, 2024

Describe your changes

Adds sync errors to response from connection count so we can show it in the UI

Issue ticket number and link

https://linear.app/nango/issue/NAN-2168/surface-integrationsconnections-errors-in-nango-ui

Checklist before requesting a review (skip if just adding/editing APIs & templates)

  • I added tests, otherwise the reason is:
  • I added observability, otherwise the reason is:
  • I added analytics, otherwise the reason is:

Copy link

linear bot commented Nov 20, 2024

@nalanj nalanj marked this pull request as ready for review November 20, 2024 18:33
@nalanj nalanj self-assigned this Nov 20, 2024
@nalanj nalanj requested a review from a team November 20, 2024 18:34
});

const countResult = await connectionService.count({ environmentId: env.id });
expect(countResult.isOk()).toBeTruthy();
Copy link
Collaborator

@TBonnin TBonnin Nov 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't really need this one because if it is an error the unwrap below will throw

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 49fefb9

@nalanj nalanj enabled auto-merge (squash) November 20, 2024 19:22
@nalanj nalanj merged commit 66a1802 into master Nov 20, 2024
20 checks passed
@nalanj nalanj deleted the alan/nan-2168-surface-integrationsconnections-errors-in-nango-ui/sync-errors-count branch November 20, 2024 19:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants