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

fix(excel2resources, excel2properties): cover all cases (DEV-1040) #201

Merged
merged 28 commits into from Jun 23, 2022

Conversation

jnussbaum
Copy link
Collaborator

resolves DEV-1040

make more robust
@jnussbaum jnussbaum self-assigned this Jun 15, 2022
@jnussbaum jnussbaum changed the title fix(excel2resources, excel2properties): make more robust, correct schemas fix(excel2resources, excel2properties): cover all cases (DEV-1040) Jun 15, 2022
@jnussbaum jnussbaum changed the title fix(excel2resources, excel2properties): cover all cases (DEV-1040) fix(excel2resources excel2properties): cover all cases (DEV-1040) Jun 15, 2022
@jnussbaum jnussbaum marked this pull request as ready for review June 16, 2022 14:40
@jnussbaum jnussbaum changed the title fix(excel2resources excel2properties): cover all cases (DEV-1040) fix(excel2resources, excel2properties): cover all cases (DEV-1040) Jun 16, 2022
MANIFEST.in Show resolved Hide resolved
docs/dsp-tools-excel.md Outdated Show resolved Hide resolved
docs/dsp-tools-excel.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@BalduinLandolt BalduinLandolt left a comment

Choose a reason for hiding this comment

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

Looks good overall. I'm concerned the regex might miss some edge cases... and stripping all strings in the beginning would spare you from doing so all over the place.

.github/workflows/check-pr-title.yml Show resolved Hide resolved
knora/dsplib/utils/excel_to_json_properties.py Outdated Show resolved Hide resolved
knora/dsplib/utils/excel_to_json_properties.py Outdated Show resolved Hide resolved
knora/dsplib/utils/excel_to_json_resources.py Outdated Show resolved Hide resolved
test/unittests/test_excel_to_properties.py Outdated 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.

Could you add one or several more unit tests which test the special characters and numbers cases you discussed? Then we can be sure that it works as expected.

.github/workflows/check-pr-title.yml Show resolved Hide resolved
knora/dsplib/schemas/lists-only.json Show resolved Hide resolved
knora/dsplib/utils/excel_to_json_properties.py Outdated Show resolved Hide resolved
knora/dsplib/utils/excel_to_json_resources.py Outdated Show resolved Hide resolved
test/unittests/test_excel_to_properties.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@BalduinLandolt BalduinLandolt left a comment

Choose a reason for hiding this comment

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

I didn't look closely at the tests. Everything else seems good to me - all my comments are of cosmetic nature.

knora/dsplib/utils/excel_to_json_resources.py Outdated Show resolved Hide resolved
knora/dsplib/utils/excel_to_json_properties.py Outdated Show resolved Hide resolved
knora/dsplib/utils/excel_to_json_properties.py Outdated Show resolved Hide resolved
knora/dsplib/utils/excel_to_json_properties.py Outdated Show resolved Hide resolved
knora/dsplib/utils/excel_to_json_resources.py Show resolved Hide resolved
test/e2e/test_tools.py Outdated Show resolved Hide resolved
…erties()

 - delete test_validate_ontology()
test_tools.py is now a complete collection of all dsp-tools subcommands
@sonarcloud
Copy link

sonarcloud bot commented Jun 23, 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 4c6ed19 into main Jun 23, 2022
@jnussbaum jnussbaum deleted the wip/dev-1040-improve-excel2resources-excel2properties branch June 23, 2022 13:39
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