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

Allow use of hyphens in vocabulary IDs #619

Merged
merged 1 commit into from
Sep 2, 2022
Merged

Allow use of hyphens in vocabulary IDs #619

merged 1 commit into from
Sep 2, 2022

Conversation

osma
Copy link
Member

@osma osma commented Sep 2, 2022

This little PR fixes a parsing bug related to vocabulary IDs. If a vocabulary ID such as yso-fi or yso-arch was given in the configuration file, it would be shortened to yso. The regex for matching IDs was too restrictive.

This PR fixes the regex and adds a unit test verifying that it keeps working as intended.

@osma osma added the bug label Sep 2, 2022
@osma osma added this to the 0.59 milestone Sep 2, 2022
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 2, 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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Sep 2, 2022

Codecov Report

Merging #619 (b9af8b2) into master (48b23f7) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #619   +/-   ##
=======================================
  Coverage   99.61%   99.61%           
=======================================
  Files          87       87           
  Lines        6034     6038    +4     
=======================================
+ Hits         6011     6015    +4     
  Misses         23       23           
Impacted Files Coverage Δ
annif/registry.py 100.00% <100.00%> (ø)
tests/test_vocab.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@osma osma self-assigned this Sep 2, 2022
@osma osma merged commit da680d3 into master Sep 2, 2022
@osma osma deleted the fix-vocab-id-hyphen branch September 2, 2022 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant