-
Notifications
You must be signed in to change notification settings - Fork 3
✨ Tag application with platform=Cloud Foundry #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Jeff Ortel <[email protected]>
WalkthroughAdds platform tagging: introduces Changes
Sequence Diagram(s)sequenceDiagram
participant Run as Fetch.Run
participant Provider as Provider Selection
participant setTag as Fetch.setTag
participant API as Tag API / App
participant FetchM as Manifest Fetch
Run->>Provider: select provider
Provider-->>Run: provider (implements Tag())
rect rgba(200,220,240,0.25)
Note over Run,setTag: New tagging flow
Run->>setTag: setTag(provider)
setTag->>API: ensure TagCategory (TagCategory, TagSource)
API-->>setTag: category OK
setTag->>API: ensure Tag (provider.Tag())
API-->>setTag: tag OK
setTag->>API: Replace application's tags with new tag
API-->>setTag: replace result / error
setTag-->>Run: return error? / ok
end
Run->>FetchM: fetch manifest
FetchM-->>Run: manifest data
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
cmd/fetch.go(3 hunks)
🔇 Additional comments (1)
cmd/fetch.go (1)
34-37: Correct placement of tagging in the flow.The
setTag()invocation is correctly positioned after provider selection and before manifest fetch, which aligns with the requirement to tag when the manifest is fetched.
Signed-off-by: Jeff Ortel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
cmd/action.go(1 hunks)cmd/cloudfoundry/provider.go(1 hunks)cmd/fetch.go(3 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
cmd/fetch.go (1)
cmd/action.go (1)
Provider(121-126)
cmd/cloudfoundry/provider.go (1)
cmd/action.go (1)
Provider(121-126)
🔇 Additional comments (4)
cmd/cloudfoundry/provider.go (1)
102-105: LGTM!The
Tag()method implementation is clean and correctly implements theProviderinterface requirement.cmd/action.go (1)
125-125: LGTM!The interface extension is clean and follows good design practices by allowing each provider to define its own platform tag.
cmd/fetch.go (2)
5-8: LGTM!The constants are well-defined and align with the PR objectives. The
TagSourcevalue "platform-discovery" matches the requirement to useplatform-discoveryas the tag's source.
33-36: LGTM!The
setTaginvocation is correctly placed in the execution flow and properly handles errors.
closes #23
Summary by CodeRabbit