anomaly / anomaly/gallagher

Incorrect attribute definition `access_groups` in `CardholderDetail` as `[list]`

Offen
#103 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @devraj Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
17
Forks
2
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Describe the bug**
```python
class CardholderDetail(
AppBaseModel,
IdentityMixin,
HrefMixin,
):
"""Displays a table of cardholders

Gallagher command centre offers a summary of all the cardholders
provisioned on the system. This command presents a summary table
with the aim of using the identifier to get detailed information.

"""

# snip
personal_data_definitions: list[CardholderPersonalDataDefinition] = []
cards: list[CardholderCardSummary] = []
access_groups: Optional[list] = None
```

`access_groups: Optional[list] = None` parses `access_groups` assigned to the Cardholder as a `dict` it should ideally parse as a

**To Reproduce**
1. Fetch a cardholder
2. Attempt to access `cardholder.access_groups`
3. You get a `dict`

**Expected behavior**
1. I expect to access a `AccessGroupSummary`

**Screenshots**
NA

**Desktop (please complete the following information):**
NA

**Smartphone (please complete the following information):**
NA

**Additional context**
NA

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.