Skip to content

fix(converters): preserve enabled state for collection variables for export, import - #8854

Merged
vijayh-bruno merged 4 commits into
usebruno:fix/postman-env-import-missing-enabled-internalfrom
sanish-bruno:fix/postman-env-import-missing-enabled-key
Aug 7, 2026
Merged

vijayh-bruno merged 4 commits into
usebruno:fix/postman-env-import-missing-enabled-internalfrom
sanish-bruno:fix/postman-env-import-missing-enabled-key

Conversation

@sanish-bruno

@sanish-bruno sanish-bruno commented Aug 3, 2026 •

Copy link
Copy Markdown
Collaborator

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:

  • 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.
  • I've run the claude code review skill locally.

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.

…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]>
@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (2)
  • main
  • release/*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d1cc3833-24d5-48be-8676-a36cf6f8c8cb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

…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.
@pull-request-size pull-request-size Bot added size/L and removed size/M labels Aug 4, 2026
…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.
@vijayh-bruno
vijayh-bruno merged commit ba4affe into usebruno:fix/postman-env-import-missing-enabled-internal Aug 7, 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.

5 participants