-
Notifications
You must be signed in to change notification settings - Fork 576
✨ Highlight New Unused Agents #2299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0c2ff8e
feat(agent-new): add is_new DB column, API and frontend NEW badge/cle…
82617e4
test: add database tests for agent NEW mark functionality
f70a173
Add tests for agent new mark functions
db7884b
Fix patch path for clear_agent_new_mark tests
9a894dd
Fix mock patch for clear_agent_new_mark tests
ba28749
Fix mock patch method for internal imports
bf78283
Fix mock for internal database imports using sys.modules
0efb090
Fix test assertions to use mock_module.clear_agent_new_mark
0e0e406
Add API tests for clear_agent_new_mark endpoint
2dce33b
chore(sql): sync is_new column to init.sql from migration
b8f0cc8
Code review fix: Retain only "new" tag without extra highlights; sync…
aeed9b5
optimize
6212f23
remove invalid test
7897815
test
20c2544
fix: tests and clear_agent_new_mark import
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
docker/sql/v1.7.9.3_0122_add_is_new_to_ag_tenant_agent_t.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| -- Add is_new column to ag_tenant_agent_t table for new agent marking | ||
| -- This migration adds a field to track whether an agent is marked as new for users | ||
|
|
||
| -- Add is_new column with default value false | ||
| ALTER TABLE nexent.ag_tenant_agent_t | ||
| ADD COLUMN IF NOT EXISTS is_new BOOLEAN DEFAULT FALSE; | ||
|
|
||
| -- Add comment for the new column | ||
| COMMENT ON COLUMN nexent.ag_tenant_agent_t.is_new IS 'Whether this agent is marked as new for the user'; | ||
|
|
||
| -- Create index for performance on is_new queries | ||
| CREATE INDEX IF NOT EXISTS idx_ag_tenant_agent_t_is_new | ||
| ON nexent.ag_tenant_agent_t (tenant_id, is_new) | ||
| WHERE delete_flag = 'N'; | ||
|
geruihappy-creator marked this conversation as resolved.
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.