Skip to content

Conversation

@Jayachand
Copy link
Contributor

🔒 Scanned for secrets using gitleaks 8.28.0

fixes DAW-2745

🔒 Scanned for secrets using gitleaks 8.28.0
@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

❌ Patch coverage is 57.89474% with 48 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.40%. Comparing base (723ccbb) to head (1de32e7).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
api/client/transformations/transformations.go 57.89% 24 Missing and 24 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #335      +/-   ##
==========================================
+ Coverage   44.03%   44.40%   +0.36%     
==========================================
  Files         192      194       +2     
  Lines       13908    14103     +195     
==========================================
+ Hits         6125     6262     +137     
- Misses       7211     7243      +32     
- Partials      572      598      +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

🔒 Scanned for secrets using gitleaks 8.28.0
Comment on lines 252 to 254
if !publishResp.Published {
return fmt.Errorf("batch publish failed: published=false")
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we also provide any reason why the publish failed ?
For logging and auditing purposes in the CLI, we would require it right ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

upon any kind of failure, api throws error. There would be no case where published returns false. Errors get caught in client request (resp, err := client.Do) itself. Added this for consistency. Can remove entire response unmarshalling block

// CreateTransformationRequest is the request body for creating/updating transformations
type CreateTransformationRequest struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's handle description as *string here in the request. Setting a description on transformation is a valid request in my opinion right. With it being mentioned as omitempty, we might miss the subtle flow where we will not be able to set it to empty right ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Done

🔒 Scanned for secrets using gitleaks 8.28.0
🔒 Scanned for secrets using gitleaks 8.28.0
🔒 Scanned for secrets using gitleaks 8.28.0
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