Skip to content

Add default values for deployment traces info if values falsy#5646

Merged
khanhtc1202 merged 4 commits intomasterfrom
feat/deployment-tracing
Mar 12, 2025
Merged

Add default values for deployment traces info if values falsy#5646
khanhtc1202 merged 4 commits intomasterfrom
feat/deployment-tracing

Conversation

@hongky-1994
Copy link
Contributor

What this PR does:
Add default values for deployment traces info if values falsy

  • Add default title commit: Commit title ${trace?.commitHash}
  • hide trace.commitMessage when falsy
  • hide author when falsy

Why we need it:

  • For more user friendly UI.

Which issue(s) this PR fixes:

Part of #5444

Does this PR introduce a user-facing change?: no

  • How are users affected by this change: none
  • Is this breaking change: no
  • How to migrate (if breaking change): no

ffjlabo and others added 3 commits March 7, 2025 09:51
* Add gofmt linter

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix deployment_store_test.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix pkg/app/piped/executor/analysis/mannwhitney/udist.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix pkg/app/pipedv1/livestatereporter/livestatereporter_test.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix pkg/insight/provider_test.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix pkg/log/log_test.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix tool/actions-gh-release/comment_test.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix tool/actions-gh-release/release_test.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix pkg/app/piped/executor/cloudrun/cloudrun.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix pkg/app/piped/platformprovider/cloudrun/cloudrun.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix tool/actions-gh-release/github.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Fix tool/actions-plan-preview/github.go for 'gofmt -s'

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

* Use datastoretest.MockProjectStore

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>

---------

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: kypham <hongkyhvnh@gmail.com>
- Add default title commit
- hide trace.commitMessage when falsy
- hide author when falsy

Signed-off-by: kypham <hongkyhvnh@gmail.com>
@codecov
Copy link

codecov bot commented Mar 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.53%. Comparing base (447540b) to head (df94cd2).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5646   +/-   ##
=======================================
  Coverage   25.53%   25.53%           
=======================================
  Files         477      477           
  Lines       51022    51022           
=======================================
  Hits        13030    13030           
  Misses      36987    36987           
  Partials     1005     1005           

☔ 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.

@t-kikuc t-kikuc changed the title Feat/deployment tracing Add default values for deployment traces info if values falsy Mar 11, 2025
Signed-off-by: kypham <hongkyhvnh@gmail.com>
Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

🚀

@khanhtc1202 khanhtc1202 enabled auto-merge (squash) March 12, 2025 05:41
Copy link
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

👍🏻

@khanhtc1202 khanhtc1202 merged commit 197f54d into master Mar 12, 2025
18 checks passed
@khanhtc1202 khanhtc1202 deleted the feat/deployment-tracing branch March 12, 2025 05:42
@github-actions github-actions bot mentioned this pull request Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants