Merge pull request 'fix: fix the issue of nested field access' (#1) from haolou_local into dev

Reviewed-on: https://gitea.freeleaps.mathmast.com/products/freeleaps-authentication/pulls/1
This commit is contained in:
haolou 2025-10-31 05:43:05 +00:00
commit 2d3a10503b
15 changed files with 11 additions and 7 deletions

View File

@ -8,14 +8,14 @@ logIngest:
global:
environment: alpha
registry: docker.io
repository: freeleaps
repository: freeleapsdevops
authentication:
replicas: 1
image:
registry: docker.io
repository: null
name: authentication
tag: snapshot-512e418
name: 6901bcf4ed3725f39f11343d-authentication
tag: snapshot-2346a42
imagePullPolicy: IfNotPresent
ports:
- name: http

View File

@ -11,14 +11,14 @@ logIngest:
global:
environment: prod
registry: docker.io
repository: freeleaps
repository: freeleapsdevops
authentication:
replicas: 1
image:
registry: docker.io
repository: null
name: authentication
tag: 1.15.0
name: 6901bcf4ed3725f39f11343d-authentication
tag: snapshot-73d6a46
imagePullPolicy: IfNotPresent
ports:
- name: http

View File

@ -1,6 +1,6 @@
global:
registry: docker.io
repository: freeleaps
repository: freeleapsdevops
nodeSelector: {}
dashboard:
enabled: false

View File

@ -15,6 +15,10 @@ class QueryExpression:
def __init__(self, field_name: str):
self.field_name = field_name
def __getattr__(self, name: str) -> 'QueryExpression':
"""Handle nested field access like FLID.identity"""
return QueryExpression(f"{self.field_name}.{name}")
def __eq__(self, other: Any) -> Dict[str, Any]:
"""Handle field == value comparisons"""
return {self.field_name: other}