Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Template System Improvements

This PR enhances the note.template functionality with improved validation, binary record support, and compact format features.

Changes

  • Added type validation for template body fields (boolean, integer, float, string)
  • Implemented automatic float-to-int conversion for whole numbers
  • Added binary record support with length validation
  • Added port number validation (1-100)
  • Implemented compact format with metadata field validation
  • Updated API documentation
  • Added comprehensive test suite

Testing

  • Added unit tests for all new features and validation
  • Note: pytest installation is required to run the test suite

Documentation

  • Updated api.md with new parameters and features
  • Added detailed parameter descriptions
  • Updated return type documentation
  • Added metadata field restrictions for compact mode

Link to Devin run: https://app.devin.ai/sessions/95ffd763d71b445198b9370e49dcd93f

Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 2 commits February 4, 2025 19:25
Copy link
Collaborator

@Bucknalla Bucknalla left a comment

Choose a reason for hiding this comment

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

Please make these changes to card.transport instead, Devin.

notecard/card.py Outdated

@validate_card_object
def wireless(card, mode=None, apn=None):
def wireless(card, mode=None, apn=None, method=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the wrong API to add the NTN methods to, it should be card.transport. Take a look at https://dev.blues.io/api-reference/notecard-api/card-requests/latest/#card-transport for how to implement this.

@devin-ai-integration
Copy link
Contributor Author

Devin is currently unreachable - the session may have died.

devin-ai-integration bot and others added 12 commits February 11, 2025 13:32
Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
…ransport method

Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
…uplicate method

Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
…nd fix line length

Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
Co-Authored-By: rlauer@blues.com <rlauer@blues.com>
@Bucknalla
Copy link
Collaborator

Closing in favour of #94

@Bucknalla Bucknalla closed this Feb 12, 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.

3 participants