•  

Comment Results

Review Name Created Custom Fields Content
UI-DEN-2087-1 22 Apr 2020

I'm not sure if understood the question correctly!
1 - if the value is 0 it will be converted always successfully to on of the types : Int, UInt, Float.
2 - There is bool ok which will be set if the value cannot be converted.
3 - if conversion is not successful, an empty QBytearray will return (shows the error happened in conversion because even a value of zero has a bytearray len of 1) which will be tested against another criteria for required length for a message.
4 - because the type has been checked first there should never happen any error according to documents.
I hope the explanation helped

UI-DEN-2087-1 22 Apr 2020

Done

UI-DEN-2087-1 22 Apr 2020

RESOLVED.

UI-DEN-2087-1 16 Apr 2020

Add function header with inputs, outputs, and params

Also, is this a set function? If so, please call it setPressureOcclusionData otherwise its current name makes the reviewer guess what this function does.

UI-DEN-2087-1 22 Apr 2020

RESOLVED.

UI-DEN-2236-1 27 Apr 2020

RESOLVED

HD-SPRINT16-1 22 Apr 2020

We should use the build server combined with the build flags to build whatever is needed. Is the diversity of the various builds that great? My understanding is P-BB (v0.3, same as evel kit), P-BETA (v0.4), P-DVT (v0.7), and P-RELEASE (v1.0).

DG-DEN-2650-1 22 Apr 2020

Done.

DIALIN-ACK-1 27 Mar 2020

This functions shall be updated because there are more details to the various DG states and related modes of operation (not as simple as fill and drain).

UI-DEN-2236-1 24 Apr 2020

Hey Peter,
Thanks for the comments and all the testing .
This function doesn't mean to be used the way you tested it.
But anyway I came up with a better solution.

def partition(vString, vPart, vRightDirection=True):
    return [vString[i: i + vPart] for i in range(0, len(vString), vPart)][::-1 if vRightDirection else 1]

Actually my first thought was not correct on how this portion of the code should work.

UI-DEN-2793-1 26 Apr 2020

We are following Qt coding standard for most of our codes.
https://wiki.qt.io/Qt_Coding_Style
If our coding style documentation needs to be updated let me know.

UI-DEN-2793-1 26 Apr 2020

This is not my code and it has been defined in common.
If I change it FW will break

UI-DEN-2793-1 26 Apr 2020

Common repo.
This is the purpose of the using common repo/

UI-DEN-2793-1 26 Apr 2020

With respect to our C++ coding standard (section 8.13), we must use camelCase for all function names.

UI-DEN-2793-1 26 Apr 2020

the test names follow the pattern below :
tst_<function name>_<test case> if is a unit test for a specific function.
and function names start with non capital cases.

UI-DEN-2793-1 26 Apr 2020

Understood, this is all CAPITAL because it is commonly used with FW, which is consistent with our C Coding Standard.

UI-DEN-2793-1 26 Apr 2020

RESOLVED

UI-DEN-2236-1 24 Apr 2020
 partition("TESTING123", 3) 


will return

['123', 'ING', 'EST', ''] 


which is missing a character.

Also,

 partition("TESTING123", 12) 


returns

 ['23'] 


which isn't right.

How about:

def partition(vString, vPart, vRightDirection = True):
	if vRightDirection:
		vString = vString[::-1]
	return [vString[i : i + vPart][::-1] for i in range(0, len(vString), vPart)]

DIALIN-ACK-1 28 Apr 2020

RESOLVED.

DG-DEN-2652-1 05 May 2020

Agreed and done.

DG-DEN-2652-1 05 May 2020

RESOLVED in CODE WALKTHROUGH

DG-DEN-2652-1 05 May 2020

Why aren't these two functions static?

DG-DEN-2652-1 05 May 2020

RESOLVED in CODE WALKTHROUGH.

UI-DEN-3024-1 07 May 2020

done

UI-DEN-3024-1 07 May 2020

RESOLVED.

UI-DEN-3024-1 06 May 2020

returns

UI-DEN-3024-1 06 May 2020

thoroughly

also, how many of these do we have? and, what later investigation is needed?

UI-DEN-3024-1 06 May 2020

which is not expected (remove all me you us them from all headers and comments)

UI-DEN-3024-1 07 May 2020

RESOLVED.

UI-DEN-3024-1 07 May 2020

RESOLVED.

HD-DEN-3115-1 11 May 2020

Why -1.0?

HD-DEN-3115-1 11 May 2020

Same here.

HD-DEN-3115-1 14 May 2020

Every 10 s?

DG-DEN-2650-1 18 May 2020

Ferdyan changed max to 89%. Fixed comment.

UI-DEN-3149-1 11 Jun 2020

What is so special about this line that it needs this comment? And, what guarantees that there are not going be other lines in the future that also need to be found? I suggest finding a better method than adding comments in the code.

UI-DEN-3149-1 15 Jun 2020

The macros do not simplify the code. They make debugging much more difficult.

What would be a situation in which you think they should be removed?

UI-DEN-2087-1 16 Apr 2020

both cpp and header are next to each other.
FishEye is adding what ever file that has been changed.

DG-DEN-2379-1 20 May 2020

Should be private definitions. I see variables way down below the #defines and enumerations.

DG-DEN-2379-1 20 May 2020

Put a /// comment above enumerations - provide general description of the enumeration.

DG-COMMON-FIX-1 27 Mar 2020

I am currently unsure how we want to transition DG back and forth between normal to solo modes. I will discuss with Systems team.

UI-DEN-2236-1 24 Apr 2020

I came out with the solution below :

def partition1(vString, vPart, vRightDirection=True):
mString = vString
if vRightDirection:
mString = vString[::-1]
else:
mString = vString
list = [mString[i: i + vPart] for i in range(0, len(mString), vPart)]
return list

if _name_ == "_main_":
vString = "TESTING"
vPart = 3

list = partition1(vString, vPart, True)
print(list)


list = partition1(vString, vPart, False)
print(list)

// ----- Output ----- :
['GNI', 'TSE', 'T']
['TES', 'TIN', 'G']

which is exactly what I want.
I'm gonna push changes if you agree.

DG-COMMON-FIX-1 27 Mar 2020

Done.

DG-COMMON-FIX-1 27 Mar 2020

I wouldn't make or call these various modes of operation part of fill.

DIALIN-ACK-1 27 Mar 2020

Author should list only last person who touched this code.

DG-DEN-2379-1 19 May 2020

Where are the override functions?

HD-SPRINT16-1 22 Apr 2020

Those are for master branch builds. I use these build flags for engineering builds from my working branch.

UI-DEN-2793-1 26 Apr 2020

it's the file name.
Sure for the function names.

UI-DEN-2236-1 24 Apr 2020

Thank you so much Peter.
This is exactly the kind of code review I really like.
I looked at the code you sent and tried to test it.
At a first glance I saw a misbehavior.

your code is partition2.
list = partition2("TESTING", 2, False)
print(list)

list = partition("TESTING", 2, False)
print(list)
// —
The output is different :
['ET', 'TS', 'NI', 'G'] partition2
['TE', 'ST', 'IN', 'G'] partition

so the output is unexpected.

UI-DEN-2793-1 26 Apr 2020

Looking at our coding standard, cases within a switch are always indented. Looked also at latest and greatest coding standards online. Please indent all cases across the entire code base. This will make them not only consistent with our C++ coding standard, but also more legible and compliant with the latest and greatest trends on C++ programming community.

UI-DEN-2087-1 22 Apr 2020

Done