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

feat: health check card #62

Merged
merged 10 commits into from
Jan 15, 2025
Merged

feat: health check card #62

merged 10 commits into from
Jan 15, 2025

Conversation

alex-mcgovern
Copy link
Collaborator

@alex-mcgovern alex-mcgovern commented Jan 14, 2025

Adds a "CodeGate status" card to the UI which displays the status of the backend.

It has 3 states:

  • "checking"
  • "healthy"
  • "unhealthy"

And also has a fallback error UI pointing to Discord & Github issues.

For both states, it will poll the backend on a configurable second interval, and on window focus and re-connect — so it should appear quite "live".

I have used a table component with the view to adding more rows in the future — e.g. the CA certificate trust status.

Screen.Recording.2025-01-14.at.3.57.50.PM.mov

Copy link

stacklok-cloud-staging bot commented Jan 14, 2025

Minder Vulnerability Report ✅

Minder analyzed this PR and found it does not add any new vulnerable dependencies.

Vulnerability scan of 560f7f7d:

  • 🐞 vulnerable packages: 0
  • 🛠 fixes available for: 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 290
Number of git tags or releases 377
Versions matched to tags or releases 159

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027659

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 362
Number of git tags or releases 377
Versions matched to tags or releases 202

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027699
Alternatives
Package Score Description
swr 0
react-async 0
react-fetching-library 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 290
Number of git tags or releases 377
Versions matched to tags or releases 159

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027659

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 362
Number of git tags or releases 377
Versions matched to tags or releases 202

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027699
Alternatives
Package Score Description
swr 0
react-async 0
react-fetching-library 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 290
Number of git tags or releases 377
Versions matched to tags or releases 159

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027659

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 362
Number of git tags or releases 377
Versions matched to tags or releases 202

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027699
Alternatives
Package Score Description
swr 0
react-async 0
react-fetching-library 0

@coveralls
Copy link
Collaborator

coveralls commented Jan 14, 2025

Pull Request Test Coverage Report for Build 12787080413

Details

  • 25 of 28 (89.29%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.9%) to 69.469%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/features/dashboard/components/card-codegate-status.tsx 18 21 85.71%
Totals Coverage Status
Change from base Build 12786991729: 0.9%
Covered Lines: 421
Relevant Lines: 526

💛 - Coveralls

@@ -0,0 +1,236 @@
import {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why this filename is not capitalize 🤔 ?

Copy link
Collaborator Author

@alex-mcgovern alex-mcgovern Jan 15, 2025

Choose a reason for hiding this comment

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

Ah — a habit, sorry. I default to kebab-case most of the time, I had been doing some personal projects recently, I think it was muscle memory.

I do think we should consider kebab-case, it can be a little safer where case-sensitivity of the filesystem is concerned. But I can change it. 😅

Copy link
Collaborator

Choose a reason for hiding this comment

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

in general the approach is to capitalize the component filename, I agree that is safer for case sensitive filesystem, but the case-sensitive issue is a macOS issue 😆 for instance in linux you don't have the same issue

Copy link
Collaborator

Choose a reason for hiding this comment

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

@kantord wdyt?

Copy link
Collaborator Author

@alex-mcgovern alex-mcgovern Jan 15, 2025

Choose a reason for hiding this comment

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

the case-sensitive issue is a macOS issue 😆

It can also present issues with differences between the filesystem in your CI or hosting environment, or if teammates have different OSes. I don't want to make a big thing about it so if you and @kantord both agree will just change it.

Copy link
Member

@kantord kantord Jan 15, 2025

Choose a reason for hiding this comment

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

I have nothing against kebab case, it is the standard in nextjs as well, right? I think we should use it in all the projects 😅

and no I don't have anything against you all moving to Linux either :trollface:

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 290
Number of git tags or releases 377
Versions matched to tags or releases 159

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027659

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 362
Number of git tags or releases 377
Versions matched to tags or releases 202

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027699
Alternatives
Package Score Description
swr 0
react-async 0
react-fetching-library 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 290
Number of git tags or releases 377
Versions matched to tags or releases 159

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027659

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 362
Number of git tags or releases 377
Versions matched to tags or releases 202

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027699
Alternatives
Package Score Description
swr 0
react-async 0
react-fetching-library 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 290
Number of git tags or releases 377
Versions matched to tags or releases 159

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027659

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 362
Number of git tags or releases 377
Versions matched to tags or releases 202

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027699
Alternatives
Package Score Description
swr 0
react-async 0
react-fetching-library 0

Copy link

@stacklok-cloud-staging stacklok-cloud-staging bot left a comment

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @tanstack/query-core

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 290
Number of git tags or releases 377
Versions matched to tags or releases 159

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027659

📦 Dependency: @tanstack/react-query

Trusty Score: 0

Scoring details
Component Score
Package activity 8.8
Repository activity 8.3
User activity 9.4
Provenance verified_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions 362
Number of git tags or releases 377
Versions matched to tags or releases 202

This package has been digitally signed using sigtore.

Source repository https://github.com/TanStack/query
Cerificate Issuer CN=sigstore-intermediate,O=sigstore.dev
GitHub action workflow .github/workflows/ci.yml
Rekor (public ledger) entry https://search.sigstore.dev/?logIndex=162027699
Alternatives
Package Score Description
swr 0
react-async 0
react-fetching-library 0

@alex-mcgovern alex-mcgovern merged commit f2673bc into main Jan 15, 2025
8 checks passed
@alex-mcgovern alex-mcgovern deleted the feat/health-check branch January 15, 2025 11:21
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.

4 participants