Skip to content

feat(xmlupload): allow circular references (DEV-577) - #165

Merged
jnussbaum merged 19 commits into
mainfrom
wip/dev-577-support-circular-references-xmlupload
Mar 25, 2022
Merged

jnussbaum merged 19 commits into
mainfrom
wip/dev-577-support-circular-references-xmlupload

Conversation

@jnussbaum

Copy link
Copy Markdown
Collaborator

resolves DEV-577

@jnussbaum jnussbaum self-assigned this Feb 25, 2022
@jnussbaum jnussbaum changed the title feat(xmlupload): allow circular references feat(xmlupload): allow circular references (DEV-577) Feb 25, 2022
@jnussbaum
jnussbaum marked this pull request as ready for review March 21, 2022 08:37

@EricSommerhalder EricSommerhalder left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I had some small comments but overall it looks fine to me.

Comment thread knora/dsplib/models/resource.py
Comment thread knora/dsplib/models/sipi.py
Comment thread knora/dsplib/utils/onto_validate.py
Comment thread knora/dsplib/utils/onto_validate.py
@jnussbaum
jnussbaum requested a review from irinaschubert March 21, 2022 14:42

@irinaschubert irinaschubert left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for the work!

I added quite a few commentaries / suggestions, feel free to take over whatever you see fit.

I would test the code with unit tests so you can be sure that the code does what you expect it to do. There should never be tests inside the code itself to test the logic of the code. This should be done in unit tests.

Regarding the error messages: In my opinion (and experience), if an error happens, it should be called "error" (not exception). I recommend to stick to the pattern/formulation of error messages we already have in dsp-tools.

Regarding the security issue about the http, I declared it as safe.

The code is very complex (see code smell warnings from sonar cloud). Do you see any way to improve that? Could you take apart some of the code and make it less complex?

Comment thread knora/dsplib/models/value.py Outdated
Comment thread knora/dsplib/utils/onto_validate.py Outdated
Comment thread knora/dsplib/utils/onto_validate.py Outdated
Comment thread knora/dsplib/utils/onto_validate.py
Comment thread knora/dsplib/utils/onto_validate.py Outdated
Comment thread knora/dsplib/utils/xml_upload.py
Comment thread knora/dsplib/utils/xml_upload.py
Comment thread knora/dsplib/utils/xml_upload.py
Comment thread knora/dsplib/utils/xml_upload.py
Comment thread knora/dsplib/utils/xml_upload.py
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jnussbaum
jnussbaum merged commit 75a444f into main Mar 25, 2022
@jnussbaum
jnussbaum deleted the wip/dev-577-support-circular-references-xmlupload branch March 25, 2022 08:18
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.

3 participants