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 guessVocabularyFromURI when some vocabulary has no URI space (Skosmos 3) #1560

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

osma
Copy link
Member

@osma osma commented Nov 23, 2023

Reasons for creating this PR

Same as PR #1559 but for Skosmos 3.

Link to relevant issue(s), if any

Description of the changes in this PR

When constructing a cache of URI space to vocabulary mappings, don't include vocabularies that don't have a URI space.

Known problems or uncertainties in this PR

Ideally there should be a unit test, but we don't have any existing tests for empty URI space either.

Checklist

  • phpUnit tests pass locally with my changes
  • I have added tests that show that the new code works, or tests are not relevant for this PR (e.g. only HTML/CSS changes)
  • The PR doesn't reduce accessibility of the front-end code (e.g. tab focus, scaling to different resolutions, use of .sr-only class, color contrast)
  • The PR doesn't introduce unintended code changes (e.g. empty lines or useless reindentation)

@osma osma added the bug label Nov 23, 2023
@osma osma added this to the 3.0 milestone Nov 23, 2023
@osma osma self-assigned this Nov 23, 2023
Copy link

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

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e5db224) 70.53% compared to head (3c4fae6) 70.54%.

Additional details and impacted files
@@               Coverage Diff               @@
##             skosmos-3    #1560      +/-   ##
===============================================
+ Coverage        70.53%   70.54%   +0.01%     
- Complexity        1643     1644       +1     
===============================================
  Files               32       32              
  Lines             4313     4315       +2     
===============================================
+ Hits              3042     3044       +2     
  Misses            1271     1271              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@osma osma merged commit 76d9ec5 into skosmos-3 Nov 23, 2023
@osma osma deleted the fix-guessvocabulary-no-urispace-skosmos3 branch November 23, 2023 13:23
@osma osma modified the milestones: 3.x, 3.0 Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done (verified in test.dev.finto.fi, set Milestone 3.0 for both issue & PR)
Development

Successfully merging this pull request may close these issues.

1 participant