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(status): add ServiceStatus model for store status details #3242

Closed
wants to merge 2 commits into from

Conversation

JisanAR03
Copy link
Contributor

@DonnieBLT Sir, could you please review this PR? Previously, we were retrieving those details from the cache, but now we are storing them in the database and fetching them from there as well.

This pull request introduces a new ServiceStatus model to track the status of various services and updates the check_status function to use this model for more efficient status checks. Additionally, it includes updates to the status page to display the status of the Slack integration.

Changes to status tracking:

  • Added ServiceStatus model to store service status information, including fields for timestamp, service_name, is_operational, response_time, details, and last_error. [1] [2]
  • Updated check_status function to use ServiceStatus for tracking and updating the status of services like memory, Bitcoin RPC, SendGrid API, GitHub API, OpenAI API, database, and Redis. Introduced needs_refresh helper function to determine if a status update is needed based on a 24-hour refresh interval.

i use this for pass test fix #2972

DonnieBLT
DonnieBLT previously approved these changes Jan 19, 2025
Copy link
Collaborator

@DonnieBLT DonnieBLT left a comment

Choose a reason for hiding this comment

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

Please keep the others as they are

@JisanAR03 JisanAR03 closed this Jan 19, 2025
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.

create a csv to add all owasp projects to /projects
2 participants