lablup / lablup/backend.ai

deployment.autoScalingRules filter.AND condition is ignored — all records returned regardless of filter

Open
#11,119 0 comments 0 reactions 0 assignees View on GitHub
backend-request
Dominant language
Python
Stars
670
Forks
183
Avg merge
15h 13m
Merged PRs (30d)
368

Description

## 요약

deployment.autoScalingRules GraphQL 쿼리에서 filter.AND 조건이 서버에서 무시됩니다. 동일한 날짜의 after/before를 AND로 조합하면 결과가 0이어야 하지만, 모든 레코드(10개)가 반환됩니다.

## 재현 환경

- 환경: 테스트 노드 10.122.10.215
- deployment ID: e21d2f21-028a-405b-b196-69736b7343b0

## 재현 방법

1. deployment.autoScalingRules 쿼리를 아래 filter 변수로 요청합니다.
1. filter.AND에 동일한 날짜 값으로 after와 before를 함께 지정합니다.
1. 응답이 0건이 아닌 모든 레코드를 반환하는지 확인합니다.

## GraphQL Variables (재현용)

```json
{
"deploymentId": "TW9kZWxEZXBsb3ltZW50OmUyMWQyZjIxLTAyOGEtNDA1Yi1iMTk2LTY5NzM2YjczNDNiMA==",
"offset": 0,
"limit": 10,
"orderBy": [
{
"field": "CREATED_AT",
"direction": "DESC"
}
],
"filter": {
"AND": [
{
"createdAt": {
"after": "2026-04-15T15:00:00.000Z"
}
},
{
"createdAt": {
"before": "2026-04-15T15:00:00.000Z"
}
}
]
}
}
```

## 기대 동작

after와 before에 동일한 시각을 지정하면 논리적으로 일치하는 레코드가 없으므로 count=0, edges=[]이 반환되어야 합니다.

## 실제 동작

filter.AND 조건이 완전히 무시되어 count=10, 10개의 edge 모두 반환됩니다.

## 원인 추정

AutoScalingRuleFilter의 AND 필드가 Strawberry GraphQL 레졸버에서 처리되지 않는 것으로 보입니다.

## WebUI 영향

- 관련 이슈: FR-2494
- AutoScalingRuleList 컴포넌트의 날짜 범위 필터가 동작하지 않음
- 현재 워크어라운드: 없음

## 관련 API

- Query: deployment.autoScalingRules
- Filter type: AutoScalingRuleFilter
- Field: AND (combination condition)

JIRA Issue: BA-5747

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.