Skip to content

Remove empty permissions from json output#3715

Merged
denik merged 1 commit intomainfrom
denik/remove-empty-permissions
Oct 3, 2025
Merged

Remove empty permissions from json output#3715
denik merged 1 commit intomainfrom
denik/remove-empty-permissions

Conversation

@denik
Copy link
Contributor

@denik denik commented Oct 3, 2025

Changes

When processing permissions, do not convert nils to empty slice in dyn value.

Why

Without this '"permissions: []"' always shows up in JSON output. When permissions are not present in the config, this is confusing.

In addition, Permissions fields are marked as "omitempty" so even if they are present, they should be cleaned up.

Related: #2756 (review)

Tests

Existing tests.

@eng-dev-ecosystem-bot
Copy link
Collaborator

eng-dev-ecosystem-bot commented Oct 3, 2025

Run: 18221219220

Env ✅​pass 🔄​flaky 🙈​skip
✅​ aws linux 320 537
✅​ aws windows 321 536
✅​ aws-ucws linux 436 433
✅​ aws-ucws windows 437 432
✅​ azure linux 320 536
✅​ azure windows 321 535
✅​ azure-ucws linux 436 432
🔄​ azure-ucws windows 434 3 431
✅​ gcp linux 319 538
✅​ gcp windows 320 537
Test Name azure-ucws windows
TestAccept/bundle/deploy/jobs/shared-root-path 🔄​flaky
TestAccept/bundle/deploy/jobs/shared-root-path/DATABRICKS_BUNDLE_ENGINE=terraform 🔄​flaky
TestAccept/bundle/deploy/lakebase/synced-database-table 🔄​flaky

- "dev": "[USERNAME]"
- }
+ "name": "project_name_[UNIQUE_NAME]_pipeline",
+ "permissions": [],
Copy link
Contributor

Choose a reason for hiding this comment

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

The + suggests it includes an empty list here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, but it probably included it before. However, it was removed in the file it compares against, so now it shows up in diff.

@denik denik added this pull request to the merge queue Oct 3, 2025
Merged via the queue into main with commit f171f8f Oct 3, 2025
13 checks passed
@denik denik deleted the denik/remove-empty-permissions branch October 3, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments