Skip to content

fix(save-all): fix save all modified requests while closing the app - #7118

Merged
bijin-bruno merged 1 commit into
mainfrom
fix/save-all-requests-issue
Feb 11, 2026
Merged

bijin-bruno merged 1 commit into
mainfrom
fix/save-all-requests-issue

Conversation

@bijin-bruno

@bijin-bruno bijin-bruno commented Feb 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Fix save all modified requests while closing the app

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Summary by CodeRabbit

  • Refactor
    • Improved the internal handling of request drafts during the save operation for better code maintainability.

@coderabbitai

coderabbitai Bot commented Feb 11, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

Modified request draft filtering in SaveRequestsModal to use an isItemARequest predicate instead of literal type checking. Removed injection of a type field during draft building while preserving collectionUid and other draft categories.

Changes

Cohort / File(s) Summary
Draft Identification Refactoring
packages/bruno-app/src/providers/App/ConfirmAppClose/SaveRequestsModal.js
Replaced literal type check with predicate function for request identification; removed synthetic type field injection while maintaining collectionUid in draft structure.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • #6857: Extends draft aggregation and adds new environment draft types in the same SaveRequestsModal, directly related to this PR's request type handling changes.

Suggested reviewers

  • naman-bruno
  • lohit-bruno
  • helloanoop

Poem

🎯 A predicate's grace replaces the type,
No injection now—just drafts that are ripe,
Cleaner identification, simpler and bright,
Request handling refined, the logic feels right! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: fixing the save-all functionality for modified requests during app closure by refactoring the request draft identification logic.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/save-all-requests-issue

No actionable comments were generated in the recent review. 🎉

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@bijin-bruno
bijin-bruno merged commit e4b6f7a into main Feb 11, 2026
4 of 6 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Mar 30, 2026
6 tasks
@coderabbitai coderabbitai Bot mentioned this pull request Jun 26, 2026
2 of 4 tasks
maxenceleblanc pushed a commit to maxenceleblanc/curly_cats2 that referenced this pull request Jul 20, 2026
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.

1 participant