Skip to content

feat: handle multiple projection on relation fields - #335

Merged
arnaud-moncel merged 1 commit into
mainfrom
feat/multiple-relation-projection
Jul 24, 2026
Merged

feat: handle multiple projection on relation fields#335
arnaud-moncel merged 1 commit into
mainfrom
feat/multiple-relation-projection

Conversation

@arnaud-moncel

@arnaud-moncel arnaud-moncel commented Jul 23, 2026

Copy link
Copy Markdown
Member

Definition of Done

General

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Test manually the implemented changes
  • Validate the code quality (indentation, syntax, style, simplicity, readability)

Security

  • Consider the security impact of the changes made

Note

Support multiple field projections on relation fields in query string parsing

  • QueryStringParser.build_projection_fields now uses flat_map to expand comma-separated relation subfields into individual projection entries (e.g., author:id and author:name instead of a single author:id,name token).
  • The POST /_internal/capabilities route now advertises canUseMultipleFieldsProjectionOnRelation: true in agentCapabilities.
  • Behavioral Change: projection output for relation fields with multiple subfields changes from a single token to multiple entries, which may affect consumers expecting the old format.

Macroscope summarized ab0cc12.

@qltysh

qltysh Bot commented Jul 23, 2026

Copy link
Copy Markdown

1 new issue

Tool Category Rule Count
qlty Structure Function with high complexity (count = 5): build_projection_fields 1

relation_fields.split(',').map { |sub_field| "#{field_name}:#{sub_field.strip}" }
end
end
end

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function with high complexity (count = 5): build_projection_fields [qlty:function-complexity]

@arnaud-moncel
arnaud-moncel merged commit 1c4eff9 into main Jul 24, 2026
48 checks passed
@arnaud-moncel
arnaud-moncel deleted the feat/multiple-relation-projection branch July 24, 2026 07:53
forest-bot added a commit that referenced this pull request Jul 24, 2026
# [1.36.0](v1.35.4...v1.36.0) (2026-07-24)

### Features

* handle multiple projection on relation fields ([#335](#335)) ([1c4eff9](1c4eff9))
@forest-bot

Copy link
Copy Markdown
Member

🎉 This PR is included in version 1.36.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants