Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

YACHT-1259 Add exception handling for on-demand table backup, code re… #159

Merged
merged 4 commits into from
Sep 18, 2019

Conversation

Morgenz
Copy link

@Morgenz Morgenz commented Sep 11, 2019

…factor, test refactor

if big_query_table_metadata.is_empty():
logging.info('This table is empty')
return False, "This table is empty"
Copy link
Contributor

Choose a reason for hiding this comment

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

It's tricky, but there are cases, when even if table is empty, we want to copy it.

Not returning anything in previous implementation was intended.

@@ -1,5 +1,6 @@
import logging
from abc import abstractmethod
from src.commons.exceptions import ParameterValidationException, NotFoundException
Copy link
Contributor

Choose a reason for hiding this comment

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

is this import used somewhere in this file?

@coveralls
Copy link

coveralls commented Sep 16, 2019

Pull Request Test Coverage Report for Build 1255

  • 17 of 17 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 84.668%

Totals Coverage Status
Change from base Build 1251: 0.0%
Covered Lines: 2463
Relevant Lines: 2909

💛 - Coveralls

@radkomateusz radkomateusz merged commit 0adac41 into ocadotechnology:master Sep 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants