medizininformatik-initiative / feasibility-backend

Backend of the feasibility-gui.
Apache License 2.0
2 stars 4 forks source link

#219 - Make order of UI tree categories configurable via env var #220

Closed michael-82 closed 11 months ago

michael-82 commented 11 months ago

A new application property app.ontologyOrder is added and linked to the env variable _ONTOLOGYORDER. It takes a comma-separated list of entries that predefine the order of the category list.

If the variable(s) should be named differently, just let me know

codecov[bot] commented 11 months ago

Codecov Report

Merging #220 (598e9aa) into develop (7cf36f1) will increase coverage by 0.05%. The diff coverage is 100.00%.

@@              Coverage Diff              @@
##             develop     #220      +/-   ##
=============================================
+ Coverage      71.12%   71.17%   +0.05%     
- Complexity       481      484       +3     
=============================================
  Files            123      123              
  Lines           2116     2120       +4     
  Branches          98       98              
=============================================
+ Hits            1505     1509       +4     
  Misses           551      551              
  Partials          60       60              
Files Coverage Δ
...ty_gui_backend/terminology/TerminologyService.java 97.11% <100.00%> (+0.11%) :arrow_up:

:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

michael-82 commented 11 months ago

The delimiter for the env var to seperate the ui categories can be chosen by the developer.

The comma is perfectly fine as delimiter since it is then automatically converted into a list without the need for further "manual" splitting

Categories which cannot be found in the sort list should be appended at the end when the backend returns the categories

Categories that are not part of the defined order are appended at the end in alphabetical order.