Skip to content
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

Sudhanshu/5009 #5046

Closed
wants to merge 7 commits into from
Closed

Sudhanshu/5009 #5046

wants to merge 7 commits into from

Conversation

SudhanshuBawane
Copy link

##The change is regarding the git issue 5009 for the incorrect behavior of agent when asset.db used to get deleted.

##This change insured the smooth working of agent and re-download of asset.db without any hassle.

##The change was verified by trying to re-create the bug scenario using same steps and test cases.

Signed-off-by: SudhanshuBawane <[email protected]>
Signed-off-by: SudhanshuBawane <[email protected]>
Signed-off-by: SudhanshuBawane <[email protected]>
Signed-off-by: SudhanshuBawane <[email protected]>
Signed-off-by: SudhanshuBawane <[email protected]>
Signed-off-by: SudhanshuBawane <[email protected]>
@SudhanshuBawane SudhanshuBawane marked this pull request as ready for review January 25, 2024 15:45
@@ -130,6 +134,7 @@ func (b *boltDBAssetManager) Get(ctx context.Context, asset *corev2.Asset) (*Run
if value != nil {
// deserialize asset
if err := json.Unmarshal(value, &localAsset); err == nil {
logger.Println(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe you forgot to clean this up?

@@ -8,6 +8,39 @@ import (
"github.com/sensu/sensu-go/testing/testutil"
)

//var asset *v2.Asset
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe you forgot those comments too?

@@ -36,6 +36,9 @@ func AddCommand(cli *cli.SensuCli) *cobra.Command {

func addCommandExecute(cli *cli.SensuCli) func(cmd *cobra.Command, args []string) error {
return func(cmd *cobra.Command, args []string) error {
//sudhanshu/5009
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: No need to have the bug/pr reference here.

@@ -0,0 +1,28 @@
# Changelog
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you added this file by accident?

@@ -0,0 +1,7 @@
Copyright 2020 Todd Campbell
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you added this file by accident?

@@ -0,0 +1,107 @@
[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/sensu/check-cpu-usage)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you added this file by accident?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you added this file by accident?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you added this file by accident?

@fguimond
Copy link
Contributor

I should have done over this with you but as a rule of thumb you want to provide a description of the PR instead of the ticket number. Also please fill the form which should be provided when you create the PR. You can leave empty the sections that don't apply. You can see #5011 as an example.

Signed-off-by: Sudhanshu Bawane <[email protected]>
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