Repository navigation
fix(converters): preserve enabled state for collection variables for export, import - #8854
Merged
vijayh-bruno merged 4 commits intoAug 7, 2026
Conversation
…ostman conversion Updated the brunoToPostman and postmanToBruno functions to correctly handle the enabled state of collection variables. Disabled variables are now emitted with `disabled: true`, while enabled ones omit the field. Added tests to ensure the correct behavior for both conversion directions. Signed-off-by: Richard Ricciardelli <[email protected]>
sanish-bruno
requested review from
bijin-bruno,
helloanoop,
lohit-bruno,
naman-bruno,
sachin-thakur-bruno,
sid-bruno,
utkarsh-bruno and
vijayh-bruno
as code owners
August 3, 2026 12:23
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
…an environment and collection imports Introduced new tests to ensure that the enabled state of environment variables and collection variables is correctly preserved during import from Postman JSON files. Added fixtures for mixed enabled/disabled states to validate the functionality. Also updated relevant components with data-testid attributes for improved testability.
…ents Renamed data-testid attributes in the EnvironmentList component and related tests to improve clarity and consistency. Updated references in the test suite to reflect these changes, ensuring that the correct elements are targeted during testing. This enhances the maintainability and readability of the test code.
…d state Updated the Postman environment import tests to include checks for a new variable with a null-enabled state. Modified the test description for clarity and added the corresponding fixture to ensure accurate validation of the enabled/disabled state during imports.
morsh-bruno
approved these changes
Aug 5, 2026
vijayh-bruno
approved these changes
Aug 7, 2026
vijayh-bruno
merged commit Aug 7, 2026
ba4affe
into
usebruno:fix/postman-env-import-missing-enabled-internal
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Followup #8681
Description
Updated the brunoToPostman and postmanToBruno functions to correctly handle the enabled state of collection variables. Disabled variables are now emitted with
disabled: true, while enabled ones omit the field. Added tests to ensure the correct behaviour for both conversion directions.Problem
Enabled state is dropped when exporting, importing collection variables
Fix
Honor enabled state which exporting and importing collection variables
Screenshots
N/A
Contribution Checklist:
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.