Skip to content

feat: add explicit group_head_ids selection and search filter to ExportRMGroupsRequest#24

Merged
ilramdhan merged 1 commit intomutugading:mainfrom
ilramdhan:feat/formula-master-proto
May 4, 2026
Merged

feat: add explicit group_head_ids selection and search filter to ExportRMGroupsRequest#24
ilramdhan merged 1 commit intomutugading:mainfrom
ilramdhan:feat/formula-master-proto

Conversation

@ilramdhan
Copy link
Copy Markdown
Member

Description

This pull request updates the ExportRMGroupsRequest message in the finance/v1/rm_group.proto file to support more flexible export modes for RM groups. The request can now operate in three mutually-exclusive modes: exporting all groups, filtering by active status or search, or exporting a specific set of groups by their IDs.

Change Type

  • ✨ New service/message
  • ➕ Add field/RPC/enum value
  • 🔄 Modify validation
  • 📝 Documentation update
  • ⚠️ Deprecation
  • 🔧 Config/script changes

Proto Files Changed

  • finance/v1/rm_cost.proto
  • finance/v1/rm_group.proto

Changes Made

Enhancements to export filtering:

  • Added a group_head_ids field to allow explicit selection of groups to export, which overrides other filters when set. This field is validated to contain UUID strings.
  • Updated documentation for ExportRMGroupsRequest to clarify the three export modes and the precedence of the new group_head_ids field over active_filter and search.
  • Added a search field for optional code/name filtering, with a maximum length validation.

Pre-merge Checklist

  • I have read and followed RULES.md
  • buf format -w applied
  • buf lint passes
  • buf breaking passes
  • Comments document new messages/fields
  • REST mappings follow conventions
  • Validation rules are complete
  • Field numbers are logical

Impact Assessment

  • Backend code regeneration required
  • Frontend code regeneration required
  • OpenAPI spec regeneration required

@ilramdhan ilramdhan requested a review from Copilot May 2, 2026 02:21
@ilramdhan ilramdhan self-assigned this May 2, 2026
@ilramdhan ilramdhan added the enhancement New feature or request label May 2, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR expands ExportRMGroupsRequest in finance/v1/rm_group.proto to support additional export-selection capabilities for RM Groups, enabling either broad exports (all/filtered) or explicitly selected groups by ID.

Changes:

  • Added group_head_ids to explicitly select which RM groups to export.
  • Added search to allow optional code/name filtering for RM group exports.
  • Updated request documentation to describe the intended export modes and precedence.

Reviewed changes

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

File Description
finance/v1/rm_group.proto Extends RM group export request with explicit ID selection + search filter, and updates request docs accordingly.
finance/v1/rm_cost.proto Included in PR metadata as modified (not shown in provided diff).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread finance/v1/rm_group.proto
Comment on lines +734 to +739
// ExportRMGroupsRequest filters the export. Three mutually-exclusive modes:
//
// - All groups: leave both filters unset (default).
// - Filtered: set `active_filter` (and/or `search`) to narrow the set.
// - Selected: pass an explicit list of group_head_ids; all other filters
// are ignored.
Comment thread finance/v1/rm_group.proto
Comment on lines +743 to +749
// Optional explicit group selection. When non-empty, only these groups
// are exported (overrides `active_filter` and `search`).
repeated string group_head_ids = 2 [(buf.validate.field).repeated = {
items: {
string: {uuid: true}
}
}];
@ilramdhan ilramdhan merged commit cdf13c1 into mutugading:main May 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants