Skip to content

Conversation

@rexzheng324-c
Copy link
Collaborator

No description provided.

@rexzheng324-c rexzheng324-c requested a review from linjiX as a code owner May 12, 2021 11:55
@coveralls
Copy link

coveralls commented May 12, 2021

Pull Request Test Coverage Report for Build 835617688

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 5 of 22 (22.73%) changed or added relevant lines in 1 file are covered.
  • 27 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.3%) to 79.91%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tensorbay/utility/tbrn.py 5 22 22.73%
Files with Coverage Reduction New Missed Lines %
tensorbay/utility/tbrn.py 27 45.24%
Totals Coverage Status
Change from base Build 835493886: -0.3%
Covered Lines: 4276
Relevant Lines: 5351

💛 - Coveralls

'TensorBay Resource Name should add dataset name "tb:<dataset name>"'
)

is_draft = TBRN._DRAFT_SEPARATOR in dataset_name
Copy link
Contributor

Choose a reason for hiding this comment

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

branch and tag may contain #

@rexzheng324-c rexzheng324-c force-pushed the T15191_tbrn_support_ref_and_draft branch from 5763cb8 to b2cdd6c Compare May 12, 2021 12:40
return self._type

@property
def is_draft(self) -> int:
Copy link
Contributor

Choose a reason for hiding this comment

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

return int?

else:
names[TBRN._FRAME_INDEX] = ""
if self.is_draft:
names[1] = f"{names[1]}{TBRN._DRAFT_SEPARATOR}{self.draft_number}"
Copy link
Contributor

@linjiX linjiX May 12, 2021

Choose a reason for hiding this comment

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

should not change names[1]

Copy link
Contributor

Choose a reason for hiding this comment

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

names is a local variable, can be changed.

names[TBRN._FRAME_INDEX] = ""
if self.is_draft:
names[1] = f"{names[1]}{TBRN._DRAFT_SEPARATOR}{self.draft_number}"
else:
Copy link
Contributor

Choose a reason for hiding this comment

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

elif?

else:
names[TBRN._FRAME_INDEX] = ""
if self.is_draft:
names[1] = f"{names[1]}{TBRN._DRAFT_SEPARATOR}{self.draft_number}"
Copy link
Contributor

Choose a reason for hiding this comment

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

names is a local variable, can be changed.

@rexzheng324-c rexzheng324-c force-pushed the T15191_tbrn_support_ref_and_draft branch from b2cdd6c to dd03dd7 Compare May 12, 2021 13:29
@rexzheng324-c rexzheng324-c changed the title feat(cli): add draft and commit revision in TBRN feat(cli): support draft and revision in TBRN May 12, 2021
@rexzheng324-c rexzheng324-c force-pushed the T15191_tbrn_support_ref_and_draft branch 2 times, most recently from ebaa6db to b583651 Compare May 12, 2021 13:34
@rexzheng324-c rexzheng324-c changed the title feat(cli): support draft and revision in TBRN feat(cli): support draft number and revision in TBRN May 12, 2021
@rexzheng324-c rexzheng324-c force-pushed the T15191_tbrn_support_ref_and_draft branch 2 times, most recently from 2e6d4fc to 913aa1f Compare May 12, 2021 13:39
remote_path: Object path of the file.
tbrn: Full TBRN string.
draft_number: The draft number (if the status is draft).
revision: The commit revision (if the status is commit).
Copy link
Contributor

Choose a reason for hiding this comment

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

status is not draft
commit revision -> revision

@rexzheng324-c rexzheng324-c force-pushed the T15191_tbrn_support_ref_and_draft branch from 913aa1f to b4a6f09 Compare May 12, 2021 13:54
@rexzheng324-c rexzheng324-c requested a review from Hoteryoung as a code owner May 12, 2021 13:54
@rexzheng324-c rexzheng324-c force-pushed the T15191_tbrn_support_ref_and_draft branch from b4a6f09 to e6ce906 Compare May 12, 2021 14:01
@rexzheng324-c rexzheng324-c merged commit 1b836c4 into Graviti-AI:main May 12, 2021
@rexzheng324-c rexzheng324-c deleted the T15191_tbrn_support_ref_and_draft branch May 12, 2021 14:01
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.

3 participants