Skip to content

#6062 Fix dupplicate rename AIS requests - #6067

Merged
akleshchev merged 1 commit into
developfrom
andreyk/viewer_6062
Jul 29, 2026
Merged

#6062 Fix dupplicate rename AIS requests#6067
akleshchev merged 1 commit into
developfrom
andreyk/viewer_6062

Conversation

@akleshchev

Copy link
Copy Markdown
Contributor

mRenameItem->rename( new_name ); checks for empty string, so this is enough to avoid dupplciates.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Ready to approve

The functional change is small and targeted, with only a minor spelling nit identified in a newly added comment.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR addresses duplicate rename (AIS) requests triggered during inventory item renaming by ensuring the renamer’s text is cleared after issuing a rename, so any subsequent commit-on-focus-lost path won’t re-send the same rename.

Changes:

  • Add explanatory comments clarifying why commitRename() calls finishRenamingItem() without checking renamer visibility (focus-lost commit path).
  • After calling mRenameItem->rename(...), clear the renamer text to prevent duplicate rename requests when multiple commit paths fire.
File summaries
File Description
indra/llui/llfolderview.cpp Clears renamer text after rename to prevent duplicate rename requests; adds comments describing focus-lost behavior.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread indra/llui/llfolderview.cpp Outdated
@akleshchev
akleshchev force-pushed the andreyk/viewer_6062 branch from 37974aa to e29b1b1 Compare July 29, 2026 20:26
@akleshchev
akleshchev merged commit 7764024 into develop Jul 29, 2026
10 checks passed
@akleshchev
akleshchev deleted the andreyk/viewer_6062 branch July 29, 2026 21:26
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Viewer sends duplicate PATCH requests to InventoryAPIv3 when agent renames item or folder

3 participants