Skip to content

Conversation

@hsd-dev
Copy link
Contributor

@hsd-dev hsd-dev commented Nov 2, 2020

No description provided.

@hsd-dev
Copy link
Contributor Author

hsd-dev commented Nov 2, 2020

To enable Docs API: https://developers.google.com/docs/api/quickstart/python

Wasn't very comfortable with the message while authenticating:

"This app isn't verified"

@hsd-dev
Copy link
Contributor Author

hsd-dev commented Nov 2, 2020

These file names have changed I guess in previous PRs:

[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/62a38a9/62a38a9.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/e964bbb/e964bbb.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/b5f0943/b5f0943.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/9682b9a/9682b9a.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/3e88010/3e88010.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/f548cc7/f548cc7.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/38bee3a/38bee3a.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/e45b2b6/e45b2b6.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/606b8b9/606b8b9.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/3c7f92a/3c7f92a.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/bb3c7ec/bb3c7ec.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/03660af/03660af.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/35682ec/35682ec.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/dbcdb12/dbcdb12.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/3c4c399/3c4c399.bug'
[Errno 2] No such file or directory: './geometry2/001fca6/description.bug'
[Errno 2] No such file or directory: './geometry2/0481047/description.bug'
[Errno 2] No such file or directory: './geometry2/0c3aef3/description.bug'
[Errno 2] No such file or directory: './geometry2/164cfa3/description.bug'
[Errno 2] No such file or directory: './geometry2/1b44c4d/description.bug'
[Errno 2] No such file or directory: './geometry2/1b5fa94/description.bug'
[Errno 2] No such file or directory: './geometry2/2153716/description.bug'
[Errno 2] No such file or directory: './geometry2/245b02b/description.bug'
[Errno 2] No such file or directory: './geometry2/42267be/description.bug'
[Errno 2] No such file or directory: './geometry2/439e235/description.bug'
[Errno 2] No such file or directory: './geometry2/4c160d3/description.bug'
[Errno 2] No such file or directory: './geometry2/561d66b/description.bug'
[Errno 2] No such file or directory: './geometry2/566092b/description.bug'
[Errno 2] No such file or directory: './geometry2/5ad7341/description.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/38dce2a/38dce2a.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/4ea5ea7/4ea5ea7.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/841720a/841720a.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/9397c6b/9397c6b.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/af7946f/af7946f.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/fbe70c7/fbe70c7.bug'
[Errno 2] No such file or directory: './geometry2/da141a5/description.bug'
[Errno 2] No such file or directory: './geometry2/e4466f0/description.bug'
[Errno 2] No such file or directory: './geometry2/ede2646/description.bug'
[Errno 2] No such file or directory: './geometry2/f19569c/description.bug'
[Errno 2] No such file or directory: './geometry2/f2568f5/description.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/b18f559/b18f559.bug'
[Errno 2] No such file or directory: './turtlebot/pre_2013_04_22/9299530/9299530.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/8163705/8163705.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/c04eae5/c04eae5.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/0027b57/0027b57.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/e34428d/e34428d.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/ad906f0/ad906f0.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/95b24e8/95b24e8.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/d9aa656/d9aa656.bug'
[Errno 2] No such file or directory: './kobuki/pre_2013_04_22/1c141a5/1c141a5.bug'
[Errno 2] No such file or directory: './geometry2/729a653/description.bug'
[Errno 2] No such file or directory: './geometry2/7677ca7/description.bug'
[Errno 2] No such file or directory: './geometry2/860b866/description.bug'

Also these bugs have not been assigned any codes:

ERROR: Empty fields encountered for kobuki/496aac8/496aac8.bug in 'ROBUST coding'
ERROR: Empty fields encountered for geometry2/c81fa72/c81fa72.bug in 'ROBUST coding'
ERROR: Empty fields encountered for turtlebot/928306b/928306b.bug in 'ROBUST coding'

@hsd-dev
Copy link
Contributor Author

hsd-dev commented Nov 2, 2020

Should the updated bug files also be part of the same PR? We can anyways close #376, #377 and #378

Copy link
Member

@ChrisTimperley ChrisTimperley left a comment

Choose a reason for hiding this comment

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

Awesome. This looks great. Just a few suggestions to improve the script. It would also help to add specific versions for the necessary dependencies to requirements.dev.txt.

@hsd-dev
Copy link
Contributor Author

hsd-dev commented Nov 4, 2020

On a side note: what is the distinction between requirements.dev.txt and requirements.txt?

@hsd-dev
Copy link
Contributor Author

hsd-dev commented Nov 5, 2020

@ChrisTimperley please take a look now.

print(f"ERROR: Empty fields encountered for {row[COLUMN_BUG]} in 'ROBUST coding'")
yield [row[COLUMN_BUG], None, None]

def refactor_fault_failure(description: t.List[str], faults: t.List[str], failures: t.List[str], update: bool = True) -> None:
Copy link
Member

Choose a reason for hiding this comment

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

faults and failures should be t.Optional[t.List[str]].

yield [row[COLUMN_BUG], None, None]

def refactor_fault_failure(description: t.List[str], faults: t.List[str], failures: t.List[str], update: bool = True) -> None:
if 'failure-codes' and 'fault-codes' in description and not update:
Copy link
Member

Choose a reason for hiding this comment

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

There need to be two separate in operations here (i.e., 'failure-codes' in description)

print(f"{err}")
return

faults_ = faults.upper().splitlines() if faults else faults
Copy link
Member

Choose a reason for hiding this comment

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

faults_ has a type of t.Union[t.List[str], str] here. I think this should be:

fault_list: t.Optional[t.List[str]]
if not fault_cell:
    fault_list = None
else:
    fault_list = faults.upper().splitlines()

Copy link
Member

@ChrisTimperley ChrisTimperley Nov 5, 2020

Choose a reason for hiding this comment

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

Unless faults can be None? In which case the type annotation for the method should be updated to faults: t.Optional[str].

Copy link
Contributor Author

@hsd-dev hsd-dev Nov 18, 2020

Choose a reason for hiding this comment

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

faults can be None because here:

yield [row[COLUMN_BUG], None, None]

Copy link
Member

Choose a reason for hiding this comment

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

Okay. Let's use an t.Optional[str] type.

@hsd-dev
Copy link
Contributor Author

hsd-dev commented Dec 9, 2020

@ChrisTimperley ping

@hsd-dev
Copy link
Contributor Author

hsd-dev commented Jan 13, 2021

Merge branch 'master' into gdocs_sheet

was not the intention, the rebase worked locally but didn't change anything after I pushed it.

@hsd-dev
Copy link
Contributor Author

hsd-dev commented Jan 20, 2021

updated with #392

@hsd-dev hsd-dev closed this Jan 20, 2021
@hsd-dev hsd-dev deleted the gdocs_sheet branch January 20, 2021 14:46
@hsd-dev hsd-dev restored the gdocs_sheet branch January 20, 2021 14:47
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.

2 participants