Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: add integration count number #414

Merged
merged 2 commits into from
Sep 9, 2024
Merged

fix: add integration count number #414

merged 2 commits into from
Sep 9, 2024

Conversation

kiram15
Copy link
Contributor

@kiram15 kiram15 commented Sep 9, 2024

Adding a count of the number of integrations associated with that customer
Jira ticket

Screenshot 2024-09-09 at 9 35 42 AM

@kiram15 kiram15 requested a review from katrinan029 September 9, 2024 15:37
Copy link
Contributor

@katrinan029 katrinan029 left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -11,12 +11,16 @@ const CustomerIntegrations = ({
const { ADMIN_PORTAL_BASE_URL } = getConfig();
const ssoDateText = ({ sso }) => (`Created ${formatDate(sso?.created)} • Last modified ${formatDate(sso?.modifed)}`);
const configDateText = ({ config }) => (`Created ${formatDate(config?.created)} • Last modified ${formatDate(config?.lastModifiedAt)}`);
let integrationCount = activeSSO?.length + activeIntegrations?.length;

Choose a reason for hiding this comment

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

Is there any chance that activeSSO or activeIntegrations will be undefined? If so, we're going to get either undefined or NaN out of this expression, which will mess up all future operations on this value.

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.49%. Comparing base (7ed6959) to head (bce476d).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #414      +/-   ##
==========================================
+ Coverage   84.47%   84.49%   +0.01%     
==========================================
  Files         185      185              
  Lines        3814     3817       +3     
  Branches      920      922       +2     
==========================================
+ Hits         3222     3225       +3     
  Misses        570      570              
  Partials       22       22              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kiram15 kiram15 merged commit c6ed509 into master Sep 9, 2024
7 checks passed
@kiram15 kiram15 deleted the kiram15/ENT-9448 branch September 9, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants