Navigation Menu

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

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

Merged
merged 19 commits into from Mar 25, 2022

Conversation

jnussbaum
Copy link
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
Copy link

@EricSommerhalder EricSommerhalder left a comment

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.

knora/dsplib/models/resource.py Show resolved Hide resolved
knora/dsplib/models/sipi.py Show resolved Hide resolved
knora/dsplib/utils/onto_validate.py Show resolved Hide resolved
knora/dsplib/utils/onto_validate.py Show resolved Hide resolved
Copy link

@irinaschubert irinaschubert left a comment

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?

knora/dsplib/models/value.py Outdated Show resolved Hide resolved
knora/dsplib/utils/onto_validate.py Outdated Show resolved Hide resolved
knora/dsplib/utils/onto_validate.py Outdated Show resolved Hide resolved
knora/dsplib/utils/onto_validate.py Show resolved Hide resolved
knora/dsplib/utils/onto_validate.py Outdated Show resolved Hide resolved
knora/dsplib/utils/xml_upload.py Show resolved Hide resolved
knora/dsplib/utils/xml_upload.py Show resolved Hide resolved
knora/dsplib/utils/xml_upload.py Show resolved Hide resolved
knora/dsplib/utils/xml_upload.py Show resolved Hide resolved
knora/dsplib/utils/xml_upload.py Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Mar 25, 2022

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.

None yet

3 participants