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

feat(client): add implementation about class "BasicSearchJob" #1222

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

willandfree
Copy link
Collaborator

@willandfree willandfree commented Mar 7, 2022

No description provided.

@willandfree willandfree requested a review from AChenQ as a code owner March 7, 2022 07:49
@coveralls
Copy link

coveralls commented Mar 7, 2022

Pull Request Test Coverage Report for Build 1949687911

  • 4 of 15 (26.67%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 86.325%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tensorbay/client/job.py 4 15 26.67%
Totals Coverage Status
Change from base Build 1949255751: -0.1%
Covered Lines: 7840
Relevant Lines: 9082

💛 - Coveralls

@willandfree willandfree force-pushed the T21745_huhan branch 2 times, most recently from 9a58781 to 4e4a518 Compare March 7, 2022 08:41
Comment on lines 325 to 333
@property
def is_fusion(self) -> bool:
"""Know whether it is from fusion dataset.

Returns:
Whether the BasicSearchJob is from fusion dataset.

"""
return self._is_fusion
Copy link
Contributor

Choose a reason for hiding this comment

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

do not need this property

}
client: The :class:`~tensorbay.client.requests.Client`.
dataset_id: Dataset ID.
job_updater: The function to update the information of the SquashAndMergeJob instance.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does BasicSerchJob also need a job_updater?

@@ -286,11 +286,107 @@ def from_response_body( # type: ignore[override] # pylint: disable=arguments-d
class BasicSearchJob(Job):
"""This class defines :class:`BasicSearchJob`."""

_T = TypeVar("_T", bound="BasicSearchJob")

def __init__( # pylint: disable=too-many-arguments
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use keyword arguments to avoid pylint error.

@willandfree willandfree force-pushed the T21745_huhan branch 2 times, most recently from fef8629 to f085dc4 Compare March 8, 2022 03:19
willandfree added a commit to willandfree/tensorbay-python-sdk that referenced this pull request Mar 8, 2022
@willandfree willandfree merged commit 401425f into Graviti-AI:main Mar 8, 2022
@willandfree willandfree deleted the T21745_huhan branch March 8, 2022 05:25
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.

4 participants