[hygiene] Use enum instead of a string #6067
Labels
area/storage
enhancement
good first issue
Good for beginners
help wanted
Features that maintainers are willing to accept but do not have cycles to implement
storage/elasticsearch
in plugin/storage/es/mappings/mapping.go the function
GetMapping
accepts a string argument and does pattern matching on it, as well as uses it for loading template files internal to the package. It's a poor design, we should instead use a numeric enum (which has private string() function to map to the file name).The text was updated successfully, but these errors were encountered: