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:
commit
2d3a10503b
@ -8,14 +8,14 @@ logIngest:
|
|||||||
global:
|
global:
|
||||||
environment: alpha
|
environment: alpha
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: freeleaps
|
repository: freeleapsdevops
|
||||||
authentication:
|
authentication:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: authentication
|
name: 6901bcf4ed3725f39f11343d-authentication
|
||||||
tag: snapshot-512e418
|
tag: snapshot-2346a42
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -11,14 +11,14 @@ logIngest:
|
|||||||
global:
|
global:
|
||||||
environment: prod
|
environment: prod
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: freeleaps
|
repository: freeleapsdevops
|
||||||
authentication:
|
authentication:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: authentication
|
name: 6901bcf4ed3725f39f11343d-authentication
|
||||||
tag: 1.15.0
|
tag: snapshot-73d6a46
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
global:
|
global:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: freeleaps
|
repository: freeleapsdevops
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
dashboard:
|
dashboard:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
@ -15,6 +15,10 @@ class QueryExpression:
|
|||||||
def __init__(self, field_name: str):
|
def __init__(self, field_name: str):
|
||||||
self.field_name = field_name
|
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]:
|
def __eq__(self, other: Any) -> Dict[str, Any]:
|
||||||
"""Handle field == value comparisons"""
|
"""Handle field == value comparisons"""
|
||||||
return {self.field_name: other}
|
return {self.field_name: other}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user