Closed wdbaruni closed 2 weeks ago
The changes involve significant updates to the Bacalhau API's Swagger documentation and related scripts. The /api/v1/healthz
endpoint has been removed, impacting health check functionality. New properties such as DisableAnalytics
and SupportedProtocols
have been added to existing types. The models.ExecutionStateType
enumeration has been expanded with new states. Additionally, new types for TLS configurations have been introduced. The script for generating Swagger documentation has also been modified to improve error handling and adjust the directories scanned for API documentation.
File | Change Summary |
---|---|
pkg/swagger/docs.go | Removed endpoint /api/v1/healthz (GET). Added property DisableAnalytics to types.Bacalhau . Added property SupportedProtocols to models.NodeInfo . Updated models.ExecutionStateType with new values. Added types ComputeTLS and OrchestratorTLS . |
pkg/swagger/swagger.json | Removed endpoint /api/v1/healthz . Added property DisableAnalytics to types.Bacalhau . Added property SupportedProtocols to models.NodeInfo . Updated models.ExecutionStateType with new values. Updated types.Compute with TLS property. |
scripts/generate_swagger.sh | Added set -euo pipefail for error handling. Updated swag init command to change directories scanned for API documentation. |
webui/lib/api/schema/swagger.json | Removed endpoint /api/v1/healthz . Added property DisableAnalytics to types.Bacalhau . Added types ComputeTLS and OrchestratorTLS . Updated models.ExecutionStateType with new values. Removed types.MountStatus and ExecTranslation from types.FeatureFlags . |
In the meadow where APIs play,
Changes hop in, brightening the day.
No more health checks, but new paths to find,
With analytics toggled, and protocols aligned.
TLS whispers secrets, secure and tight,
Bacalhau's journey takes a new flight! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Swagger validation step was failing but the Github Workflow was still passing. This is because we were missing
set -euo pipefail
in the generate_swagger.sh script.The PR fixes the validation step, and updates swagger schemas
Summary by CodeRabbit
Release Notes
New Features
DisableAnalytics
for enhanced user control over data sharing.SupportedProtocols
property.ExecutionStateRunning
andExecutionStatePublishing
.ComputeTLS
andOrchestratorTLS
.Removed Features
/api/v1/healthz
has been removed, affecting clients relying on this functionality.Documentation Updates