Open gisjedi opened 8 years ago
Preparation for this change can be made transparently by adding the desired grouping value as a new keyword with the vocabulary value indicated above to any layers that are to be categorized.
I think this is a good idea and should make the tool more generally useful. I would suggest maybe a hybrid approach, at least in the short term to make it easier for people to transition. So basically, try to use the new implementation first and if it doesn't find a KeywordGroup value, then it falls back to the current configuration-based approach. You could then remove the fallback path in a later release once people have transitioned, but it probably doesn't really hurt to leave it in as an option.
Current layer grouping is built off of explicit configuration values that exist in the opConfig.js file. This makes environment specific grouping more tedious than it needs to be. GeoServer allows for specification of "Vocabulary" in the keywords which would allow is to explicitly identify a keyword as the value for grouping. The proposal is to use the vocabulary value of "KeywordGroup" to identify a single keyword that should be used. Multiple keywords with this vocabulary are discouraged and would make the layer appear under multiple groups.