Skip to content

Alpha 10 #76

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

Merged
merged 7 commits into from
Apr 24, 2025
Merged

Alpha 10 #76

merged 7 commits into from
Apr 24, 2025

Conversation

devraj
Copy link
Member

@devraj devraj commented Apr 23, 2025

📢 Preamble

A release to refactor the way PDF fields are accessed, documentation was update to reflect this.

💅 Improvements

The pdf attribute is dynamically populated object with dynamically generated keys. Here are some examples of how PDF field names are mapped to snake_case keys:

  • @Cardholder UID would become pdf.cardholder_uid
  • @City would become pdf.city
  • @Company Name would become pdf.company_name
  • @PINNumber would become pdf.pin_number

🛠️ Fixes

@devraj devraj marked this pull request as ready for review April 23, 2025 21:47
@devraj devraj requested a review from Copilot April 23, 2025 21:47
Copy link

@Copilot 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, titled "Alpha 10", prepares the new pre-release version of the Gallagher SDK by updating version metadata, dependency versions, and documentation headings while also revising some operational code in the SDK core module.

  • Bumped project and dependency versions in pyproject.toml.
  • Removed a timeout parameter in the HTTP call within the core module.
  • Updated documentation for consistent heading capitalization and corrected a typographical error.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

File Description
pyproject.toml Updated version and bumped dependency versions for Pydantic, Black, and Rich.
gallagher/cc/core.py Removed the explicit timeout parameter in the polling request.
docs/docs/python-sdk.md Adjusted section headings and added a warning block; fixed a typographical error in the library name.
docs/docs/installation.md Revised documentation headings to improve stylistic consistency.
Comments suppressed due to low confidence (2)

gallagher/cc/core.py:528

  • Removing the timeout parameter may result in indefinite wait times if the endpoint does not respond. Please review this change to ensure it does not introduce unintended blocking behavior.
timeout=TRANSPORT.TIMEOUT_POLL, # Next Gallagher CC wait

docs/docs/python-sdk.md:31

  • It appears that 'pyndatic' is a typographical error. Consider correcting it to 'pydantic'.
These are built using the much loved [pyndatic](https://pydantic.dev) library.

devraj added 3 commits April 24, 2025 10:23
i thought the timeout parameter was causing the endpoint
not to return in a timely manner, but turns out that the
command centre takes the first x seconds to formulate the
responses and then the follow works properly
fixes validation rules identified in #77 as part of a customer
project implementation, also update the field name translation
function to handle snake_case of outliers like PINNumber -> pin_number
or PIN Number -> pin_number
@devraj devraj merged commit 78bdc99 into master Apr 24, 2025
2 of 3 checks passed
@devraj devraj deleted the alpha-10 branch April 24, 2025 04:18
@devraj devraj self-assigned this Apr 30, 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.

1 participant