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

Add unambiguous version of flatname to customvar_flat #610

Open
julianbrost opened this issue Jun 22, 2023 · 0 comments
Open

Add unambiguous version of flatname to customvar_flat #610

julianbrost opened this issue Jun 22, 2023 · 0 comments

Comments

@julianbrost
Copy link
Contributor

The conversion from complex custom variables to customvar_flat.flatname is lossy, i.e. you can't distinguish vars.some_dict["a"]["b"] from vars.some_dict["a.b"]. Icinga DB Web uses the flat table also for display purposes (as it allows easier implementation of restrictions) but currently has more of a workaround to properly display keys containing dots: Icinga/icingadb-web#762

This could be made easier by adding a separate column that contains information to unambiguously split the flatname into its components, maybe something like a variant where ., [, and ] can be escaped or maybe some JSON list containing the components ["some_dict", "a.b"] or ["some_list", 0].

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

No branches or pull requests

1 participant