Skip to content

Conversation

@aoikurokawa
Copy link
Collaborator

No description provided.

@aoikurokawa aoikurokawa requested a review from Copilot October 29, 2025 02:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR changes the running_bam field from a required boolean (bool) to an optional boolean (Option<bool>) across the database model and API schema to better handle cases where BAM client information may be unavailable.

  • Changed running_bam field type from bool to Option<bool> in the Validator struct
  • Updated API schema's ValidatorEntry to use Option<bool> for running_bam
  • Modified initialization to wrap the boolean value with Some()

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
core/src/db_models/validators.rs Changed running_bam field to Option<bool> in the Validator struct and wrapped the assignment with Some()
api/src/schemas/validator.rs Changed running_bam field to Option<bool> in the ValidatorEntry schema

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aoikurokawa aoikurokawa marked this pull request as ready for review October 29, 2025 02:40
@aoikurokawa aoikurokawa changed the title API: Update to Option API: Fix to Option Oct 29, 2025
@aoikurokawa aoikurokawa changed the title API: Fix to Option API: Use Option type for running_bam Oct 29, 2025
@aoikurokawa aoikurokawa merged commit e681b0d into master Oct 29, 2025
13 of 14 checks passed
@aoikurokawa aoikurokawa deleted the ak/bam1 branch October 29, 2025 03:35
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