Skip to content

fix(group): add assets to group not working#256

Merged
l1ttps merged 3 commits intomainfrom
fix/asset-group
Jan 22, 2026
Merged

fix(group): add assets to group not working#256
l1ttps merged 3 commits intomainfrom
fix/asset-group

Conversation

@mizhm
Copy link
Copy Markdown
Contributor

@mizhm mizhm commented Jan 22, 2026

No description provided.

@mizhm mizhm requested review from Copilot and l1ttps and removed request for Copilot January 22, 2026 03:40
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @mizhm, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the asset selection dialog by optimizing its internal state management and introducing a new search functionality. By switching the selected assets' data structure to a Set, the application gains performance benefits for selection operations. Concurrently, a user-facing filter has been added to the dialog, backed by corresponding changes in the API to allow for efficient searching of assets not yet assigned to a group.

Highlights

  • Frontend Performance Optimization: The selectedAssets state in the asset selection dialog has been refactored from an array (string[]) to a Set<string>, significantly improving the performance of selection-related operations such as checking for existence, adding, and removing assets.
  • Asset Filtering in Dialog: A new filtering capability has been introduced in the asset selection dialog, allowing users to search for assets not yet in a group. This includes a new filter state and integration with the Table component.
  • Backend Search Support: The getAssetsNotInAssetGroup method in the backend service now accepts a search query parameter. This enables the API to filter assets based on their value using a case-insensitive ILIKE comparison, supporting the new frontend filtering feature.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the asset selection dialog to use a Set for managing selected assets, which improves performance. It also adds filtering capabilities to the asset selection table and the corresponding backend endpoint. My review focuses on further improving the efficiency of Set manipulations and cleaning up some potentially confusing or redundant code in the frontend component. The backend changes look good.

Copilot AI review requested due to automatic review settings January 22, 2026 03:50
Copy link
Copy Markdown
Contributor

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 adds search/filter functionality to the asset group assets selection and refactors the selected assets state management from Array to Set for improved performance.

Changes:

  • Added search parameter extraction and ILIKE query filter in the backend service method
  • Refactored frontend asset selection from Array to Set data structure for O(1) lookups
  • Added filter input field to the asset selection dialog with backend integration

Reviewed changes

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

File Description
core-api/src/modules/asset-group/asset-group.service.ts Added search parameter support to getAssetsNotInAssetGroup method with ILIKE filtering and fixed constructor formatting
console/src/pages/asset-group/components/select-assets-dialog.tsx Refactored selectedAssets from Array to Set, added filter state, updated all selection logic to use Set operations, and integrated filter with backend API

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

@l1ttps l1ttps merged commit 5ae45e5 into main Jan 22, 2026
15 checks passed
@l1ttps l1ttps changed the title Fix/asset group fix(group): add assets to group not working Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants