Skip to content

Conversation

@arinda-arif
Copy link
Contributor

  • change bigquery backup result table name to use timestamp suffix
  • add extra information in backup list
  • add backup detail sub command

@coveralls
Copy link

coveralls commented Nov 23, 2021

Pull Request Test Coverage Report for Build 1652456122

  • 77 of 89 (86.52%) changed or added relevant lines in 4 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.2%) to 71.865%

Changes Missing Coverage Covered Lines Changed/Added Lines %
job/replay_manager.go 7 9 77.78%
api/handler/v1/runtime.go 40 45 88.89%
ext/datastore/bigquery/table.go 9 14 64.29%
Files with Coverage Reduction New Missed Lines %
ext/datastore/bigquery/table.go 3 85.08%
Totals Coverage Status
Change from base Build 1586971530: 0.2%
Covered Lines: 5147
Relevant Lines: 7162

💛 - Coveralls

@sravankorumilli sravankorumilli linked an issue Nov 25, 2021 that may be closed by this pull request
@kushsharma
Copy link
Member

raystack/proton#66

@arinda-arif
Copy link
Contributor Author

Hi @kushsharma, this PR is ready to be reviewed. Need your help on this 🙂

if !ok {
return nil, status.Errorf(codes.Internal, "error while parsing backup result: %v", ok)
}
results = append(results, backupResult[models.BackupSpecKeyURN].(string))
Copy link
Member

Choose a reason for hiding this comment

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

What if models.BackupSpecKeyURN doesn't exist in the backupResult? If it didn't, it will be casted as nil because map kv pair value is of type interface and interface default value will be nil. What if it exists and it can't be cast to string? Both of them will panic and crash the application 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.

I have added 2 error catch:

  • if models.BackupSpecKeyURN doesn't exist in the map
  • if the value cannot be casted to string
    Please check if it is proper enough.

@kushsharma kushsharma merged commit 4e7c152 into main Jan 4, 2022
@kushsharma kushsharma deleted the backup-detail branch January 4, 2022 07:57
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.

Backup & Replay Improvements.

4 participants