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

Untangle Diaglayer (1 of X) #132

Merged
merged 5 commits into from
May 31, 2023
Merged

Conversation

andlaus
Copy link
Collaborator

@andlaus andlaus commented May 30, 2023

This PR marks the start a small quest of mine to untangle the code spaghetti that is currently located in diaglayer.py. This PR moves the ParentRef and DiagLayerContainer classes into their separate files, renames the DIAG_LAYER_TYPE enum to DiagLayerType and fixes a small copy-and-pasto in the writing code for communication parameters.

Since all patches are self-contained and simple but some are fairly big, I recommend reviewing this PR by looking at the individual commits instead of the aggregate changes of the whole PR.

Andreas Lauser <andreas.lauser@mercedes-benz.com>, on behalf of MBition GmbH.
Provider Information

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Alexander Walz <alexander.walz@mbition.io>
all caps names signify values, and this is a type. (types ought to use
CamelCase...)

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Alexander Walz <alexander.walz@mbition.io>
Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Alexander Walz <alexander.walz@mbition.io>
it used to be co-located with DiagLayer...

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Alexander Walz <alexander.walz@mbition.io>
@andlaus andlaus requested a review from kayoub5 May 30, 2023 14:11
odx_id=OdxLinkId("somersault_lazy", doc_frags),
short_name="somersault_lazy",
long_name="Somersault lazy ECU",
description="<p>Sloppy variant of the somersault ECU (lazy &lt; assiduous)</p>",
parent_refs=[
DiagLayer.ParentRef( # <- TODO: this is a bit sketchy IMO
ParentRef( # <- TODO: this is a bit sketchy IMO
Copy link
Collaborator

Choose a reason for hiding this comment

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

TODO still applicable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not really. I removed it, thanks.

thanks to [at]kayoub5.

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Alexander Walz <alexander.walz@mbition.io>
@andlaus andlaus merged commit 2072a66 into mercedes-benz:main May 31, 2023
6 checks passed
@andlaus andlaus deleted the untangle_diaglayer_1 branch December 7, 2023 13:30
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.

None yet

2 participants