Skip to content

Alpha 13 #81

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 3 commits into from
Apr 30, 2025
Merged

Alpha 13 #81

merged 3 commits into from
Apr 30, 2025

Conversation

devraj
Copy link
Member

@devraj devraj commented Apr 30, 2025

💅 Improves

  • AccessZoneRef now has an Optional, Identifier. last_successful_access_zone on CardholderDetail does not send back an Identifier but all other responses using the Ref do, it was wiser to relax this rule.

devraj added 3 commits May 1, 2025 07:59
Cardholder detail returns an AccessZone for the
last_successful_access_zone but does not send an identifier
in that response, this relaxes the identifier field so the same
Ref can be used in other usecases along with CardholderSummary
i used to this was worth something but with automation i am
happy to get rid of this
@devraj devraj requested a review from Copilot April 30, 2025 22:17
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 relaxes the identifier rule for zone references by switching from IdentityMixin to OptionalIdentityMixin, and it updates the CardholderDetail model to reflect this change.

  • Replaces IdentityMixin with OptionalIdentityMixin in AccessZoneRef
  • Updates CardholderDetail to include new optional fields (last_successful_access_zone, last_successful_access_time, and server_display_name)
  • Removes the version test, which may need reconsideration given the new versioning scheme

Reviewed Changes

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

File Description
tests/test_version.py Removed version check test; consider updating it to reflect the new version “Alpha 13”
gallagher/dto/ref/zone.py Updated AccessZoneRef to use OptionalIdentityMixin in line with relaxed identifier rules
gallagher/dto/detail/cardholder.py Added new optional fields for access zone and additional details in cardholder information
Comments suppressed due to low confidence (1)

tests/test_version.py:1

  • The removal of the version test means that the version validation isn't automatically checked; consider updating or replacing this test to validate that the new version 'Alpha 13' is correctly set.
Removed version test comparing __version__ to "0.1.0a12"

@devraj devraj self-assigned this Apr 30, 2025
@devraj devraj merged commit 95331f4 into master Apr 30, 2025
4 checks passed
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