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

fix: ignore workspace if no backup config is found #3685

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

Sidddddarth
Copy link
Member

Description

Ignore error resulting from a workspace's backup config not being found.
This is done so the backup is not stalled in such case.

Notion Ticket

linear cfd link

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Patch coverage: 16.66% and project coverage change: +0.51% 🎉

Comparison is base (b25173e) 68.05% compared to head (561a867) 68.57%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3685      +/-   ##
==========================================
+ Coverage   68.05%   68.57%   +0.51%     
==========================================
  Files         319      319              
  Lines       50445    50446       +1     
==========================================
+ Hits        34332    34593     +261     
+ Misses      13886    13634     -252     
+ Partials     2227     2219       -8     
Files Changed Coverage Δ
jobsdb/backup.go 69.91% <0.00%> (-0.12%) ⬇️
services/fileuploader/fileuploader.go 100.00% <100.00%> (ø)

... and 16 files with indirect coverage changes

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

@@ -553,17 +553,16 @@ func (jd *HandleT) createTableDumps(queryFunc func(int64) string, pathFunc func(
}
preferences, err := jd.fileUploaderProvider.GetStoragePreferences(workspaceID)
Copy link
Contributor

Choose a reason for hiding this comment

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

I had to go through the actual implementation for understanding that the current implementation only throughs an error when there is no workspace present in settings. Using a sentinel error might be preferable here.

@cisse21 cisse21 force-pushed the fix.IgnoreNoWorkspaceConfigInBackup branch 3 times, most recently from f438af4 to c5d00be Compare July 31, 2023 09:25
@cisse21 cisse21 force-pushed the fix.IgnoreNoWorkspaceConfigInBackup branch from c5d00be to f3a5c81 Compare July 31, 2023 09:35
@cisse21 cisse21 force-pushed the fix.IgnoreNoWorkspaceConfigInBackup branch from f3a5c81 to 4f50645 Compare July 31, 2023 09:47
@cisse21 cisse21 merged commit dd3f42e into master Jul 31, 2023
36 checks passed
@cisse21 cisse21 deleted the fix.IgnoreNoWorkspaceConfigInBackup branch July 31, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants