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

Make it possible to define order of plugins in configuration #1201

Merged
merged 70 commits into from
Nov 2, 2021

Conversation

Vainonen
Copy link
Contributor

@Vainonen Vainonen commented Sep 9, 2021

Changes into function and variable names ii VocabularyConfig.php :

  • $plugins --> $pluginRegister
  • function getPlugins --> function getPluginRegister
  • json_encode function moved to WebController.php and test below omitted (new tests for encoding in webcontroller?)

Fixes #1148

@Vainonen Vainonen requested review from osma and kouralex September 9, 2021 14:43
@codecov
Copy link

codecov bot commented Sep 9, 2021

Codecov Report

Merging #1201 (148ded6) into master (7a570ff) will decrease coverage by 0.13%.
The diff coverage is 61.15%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1201      +/-   ##
============================================
- Coverage     68.71%   68.58%   -0.14%     
- Complexity     1598     1630      +32     
============================================
  Files            32       32              
  Lines          3929     3995      +66     
============================================
+ Hits           2700     2740      +40     
- Misses         1229     1255      +26     
Impacted Files Coverage Δ
model/Request.php 67.85% <0.00%> (ø)
model/Vocabulary.php 84.61% <0.00%> (ø)
model/sparql/GenericSparql.php 92.14% <ø> (ø)
controller/WebController.php 16.15% <5.00%> (-0.62%) ⬇️
model/Model.php 80.97% <7.14%> (-2.72%) ⬇️
model/DataObject.php 67.39% <25.00%> (-10.11%) ⬇️
model/VocabularyConfig.php 95.00% <96.00%> (+1.46%) ⬆️
model/Concept.php 81.09% <100.00%> (+0.14%) ⬆️
model/ConceptProperty.php 96.42% <100.00%> (-3.58%) ⬇️
model/ConceptPropertyValue.php 86.25% <100.00%> (-0.50%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a570ff...148ded6. Read the comment docs.

Copy link
Contributor

@kouralex kouralex left a comment

Choose a reason for hiding this comment

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

Some minor comments on files, looks otherwise very good!

Ps. the starting post could be updated to link to the issue this is fixing.

@Vainonen Vainonen self-assigned this Oct 25, 2021
osma added 2 commits November 2, 2021 09:51
@sonarcloud
Copy link

sonarcloud bot commented Nov 2, 2021

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 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Vainonen Vainonen merged commit 00d3e88 into master Nov 2, 2021
@Vainonen Vainonen deleted the issue1148-order-of-plugins branch November 2, 2021 17:08
@osma osma changed the title add order of plugins Make it possible to define order of plugins in configuration Dec 8, 2021
@Vainonen
Copy link
Contributor Author

Vainonen commented Dec 8, 2021

This fixes only a part of the issue #1148. Vocabulary-specific plugins can be configured and listed with skosmos:vocabulyPlugins, but the order listed in that property is changed when plugins are loaded. Therefore the issue is reopened.

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.

Order of vocabulary-specific plugins is not configurable
6 participants