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

SDGs: if the SDG caption is referenced, do not add its IDs to the odxlink database #328

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

andlaus
Copy link
Member

@andlaus andlaus commented Aug 5, 2024

This prevents these SDG captions to be added multiple times (i.e., for SDGs which only reference the caption but do not define it). Under normal circumstances, this only results in slightly lower performance, but in special situations like having to modify a database, it can lead to SDG captions added which are defined nowhere. (I recently stumbled over such a case.)

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

…link database

This prevents these SDG captions to be added multiple times (i.e., for
SDGs which only reference the caption, not define it). Under normal
circumstances, this only results in slightly lower performance, but in
special situations like having to modify a database based on another,
it can lead to SDG captions added which are not defined. (I recently
stumbled over such a case.)

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Florian Jost <florian.jost@mbition.io>
@andlaus
Copy link
Member Author

andlaus commented Aug 5, 2024

I think this is trivial and "objectively correct" enough that there is no need to bother @kayoub5 with a review. @kayoub5: If you would like to have some changes to this, I'll do them in a separate PR...

@andlaus andlaus merged commit 3599912 into mercedes-benz:main Aug 5, 2024
7 checks passed
andlaus added a commit to andlaus/odxtools that referenced this pull request Aug 5, 2024
…t data objects

Just like for mercedes-benz#328, under normal circumstances, this only results in
slightly lower performance, but in special situations like having to
modify a database based on another, it can lead to environment data
objects being falsely added. (I recently stumbled over such a case.)

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Florian Jost <florian.jost@mbition.io>
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.

1 participant