Repository navigation
feat: strip unused fields from describe affected --upload output - #2067
Conversation
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2067 +/- ##
==========================================
+ Coverage 76.27% 76.28% +0.01%
==========================================
Files 800 801 +1
Lines 75374 75410 +36
==========================================
+ Hits 57491 57527 +36
+ Misses 14297 14296 -1
- Partials 3586 3587 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
📝 WalkthroughWalkthroughAdds a PRD and implementation to strip non-essential fields from "describe affected" payloads when the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
|
These changes were released in v1.206.0-test.0. |
07bb9f2
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@docs/prd/describe-affected-upload-flag.md`:
- Line 265: Update the broken PR link and make the PR number consistent: replace
the erroneous URL "https://github.com/cloudposse-corp/apps/pull/683" (and the
reference "apps#683") with the correct PR number used elsewhere ("apps#636" or
the actual intended PR) so the link resolves (ensure the visible text and the
href match the chosen PR number).
🧹 Nitpick comments (2)
internal/exec/describe_affected_upload.go (2)
24-30: Missingperf.Trackon exported function.Per coding guidelines, public functions need performance tracking.
Proposed fix
+import ( + "github.com/cloudposse/atmos/pkg/schema" + "github.com/cloudposse/atmos/pkg/utils/perf" +) + func StripAffectedForUpload(affected []schema.Affected) []schema.Affected { + defer perf.Track(nil, "exec.StripAffectedForUpload")() + result := make([]schema.Affected, len(affected))As per coding guidelines, "Add
defer perf.Track(atmosConfig, "pkg.FuncName")()+ blank line to all public functions, usenilif no atmosConfig param."
7-23: Comments missing trailing periods.The
godotlinter requires all comments to end with periods. Line 23 (// - stack_slug, affected: Not used in downstream processing) and line 68 (// Only keep settings.pro if it exists) need periods.As per coding guidelines, "All comments must end with periods (enforced by
godotlinter)."
|
These changes were released in v1.206.1-rc.0. |
|
These changes were released in v1.207.0. |
|
These changes were released in v1.208.0-rc.0. |
|
These changes were released in v1.208.0-test.15. |
what
--uploadflag is used, strips fields not needed by Atmos Pro's Inngest processingcomponent,stack,included_in_dependents,dependents,settings.prosettings.depends_on,settings.github,component_type,component_path,namespace,tenant,environment,stage,stack_slug,affectedwhy
references
docs/prd/describe-affected-upload-flag.mdSummary by CodeRabbit
New Features
Documentation
Tests