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

Implement the IMPORT-REF mechanism #285

Merged
merged 2 commits into from
Apr 8, 2024
Merged

Conversation

andlaus
Copy link
Collaborator

@andlaus andlaus commented Apr 5, 2024

If I understood the spec correctly, this simply extends the pool of objects that are locally referenceable via ODXLINK (i.e., without having to explicitly specify the DOCREF attribute in the reference), and can thus be seen as a kind of "poor man's inheritance" mechanism.

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

@andlaus andlaus requested a review from kayoub5 April 5, 2024 12:37
@andlaus
Copy link
Collaborator Author

andlaus commented Apr 5, 2024

@QWander: Since I do not have any files which use IMPORT-REF, it would be nice if you could check if this fixes the issues which you currently have with the main version (cf. #283)

odxtools/diaglayer.py Outdated Show resolved Hide resolved
If I understood the spec correctly, this simply extends the pool of
objects that are locally referenceable via ODXLINK (i.e., without
having to specify the DOCREF attribute), and can thus be seen as a
kind of "poor man's inheritance" mechanism.

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Gerrit Ecke <gerrit.ecke@mbition.io>
once more, thanks to [at]kayoub5 for the catches!

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Gerrit Ecke <gerrit.ecke@mbition.io>
@andlaus
Copy link
Collaborator Author

andlaus commented Apr 8, 2024

okay. Even though it seems like the issues @QWander experiences are not caused by the IMPORT-REFS mechnism, there is a decent chance that this patch works as advertised. Let's merge and fix the fallout (if any) later...

@andlaus andlaus merged commit 0a09850 into mercedes-benz:main Apr 8, 2024
7 checks passed
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