Skip to content

Feat/export query v2#121

Draft
shafeeqd959 wants to merge 5 commits intov2-devfrom
feat/export-query-v2
Draft

Feat/export query v2#121
shafeeqd959 wants to merge 5 commits intov2-devfrom
feat/export-query-v2

Conversation

@shafeeqd959
Copy link
Copy Markdown
Contributor

@shafeeqd959 shafeeqd959 commented Apr 29, 2026

Summary
This change set improves export behavior for stacks that use nested global fields, completes the move of the plugin into the cli-plugins repository, fixes incorrect or noisy message-code output in the console, and adds support for the v2-beta API or export path (adjust the wording to match your actual surface: flag, env, or default version).

Changes
Nested global field support
Ensures global fields referenced inside other global fields (or nested structures) are resolved and exported consistently with the rest of the schema, so dependent definitions are not dropped or flattened incorrectly.
Migrate plugin to cli-plugins repo
Relocates the export package (and any shared tooling) under the monorepo’s cli-plugins layout so it builds, versions, and ships with the rest of the CLI plugins.
Update any import paths, CI jobs, and docs that still pointed at the old package location.
Fix message code print issue
Corrects how message / error codes are printed (e.g. raw object vs string, duplicate codes, or missing codes) so operators see stable, readable identifiers when debugging failures.
Support v2-beta
Adds or wires through v2-beta support for the export flow (version selection, API client, or response handling as applicable), with backward compatibility for existing callers where required.
Testing

Export a stack that uses nested global fields and confirm globals and dependents match the source stack.

Run export against an environment that requires v2-beta and confirm success paths and errors show the expected message codes.

Smoke-test install/build from cli-plugins (workspace or published artifact).

@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 2 47 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 47
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 2 47 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 47
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 2 47 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 47
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

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.

2 participants