wu-sheng opened a new pull request, #159:
URL: https://github.com/apache/skywalking-query-protocol/pull/159
## Summary
\`AlarmRecord\` in the OAP persists a **single** layer column (the first
entry of the entity's resolved layer list — relation scopes use a
source-first \`LinkedHashSet\` union; single-entity scopes use the
metadata-service list as-is). The current \`AlarmQueryCondition.layers:
[String!]\` filter is asymmetric with the persisted shape — a list-of-N
query against a single value can only ever match position 0 anyway.
Collapse the filter to a single \`layer: String\` so the wire shape
matches the storage shape. Also touches the \`getAlarm\` \`@deprecated\`
reason for consistency.
Tracks the OAP-side rollout in apache/skywalking#13877.
## Test plan
- [ ] swctl / GraphIQL: \`queryAlarms(condition: { layer: \"GENERAL\", ...
})\` returns same row set as the old \`layers: [\"GENERAL\"]\`.
- [ ] swctl with no layer set still returns the unfiltered alarm list.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]