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

Key search #83

Merged
merged 5 commits into from
Oct 18, 2022
Merged

Key search #83

merged 5 commits into from
Oct 18, 2022

Conversation

oneiros
Copy link
Collaborator

@oneiros oneiros commented Aug 30, 2022

Here is a first draft of the key search feature.

After selecting an environment, one can now choose a node as before or search for key:

image

When searching for a key a results page is displayed that mostly copies the UI we already have for nodes:

image

Clicking on a file name opens up the display of the actual value, just as in the node view:

image

This includes a massive refactoring of a lot of things. I am mostly happy with this, except for the git backend "problem" we talked about.

When this looks like it is going in the right direction, I would like to add a couple more tests.

With the old funtionality it was OK to always need a node,
because a user had to choose one after choosing an environment.

With #4 we are introducing a different funtionality that
should work indepently of a node.

This is in preparation of #4 and tries to disentangle
environment, nodes and everything else.

To accomplish this, "proper" abstractions for all relevant
parts of the hiera data model are introduced (hierarchies,
data_files and values).

Due to the git backend, (data_)file and value handling still
need to be able to work with a node's facts, but this has
been made optional.
@tuxmea
Copy link
Member

tuxmea commented Sep 15, 2022

Can you please specify how the ui is going to look if you have several (maybe 50, maybe 100) node specific yaml files which have the key inside?

@oneiros
Copy link
Collaborator Author

oneiros commented Sep 20, 2022

It is a long list then:

image

@tuxmea
Copy link
Member

tuxmea commented Sep 20, 2022

  1. Please add a separator or "OR" line between the Fields "select node" and "search for a key"
  2. Please make the result collapsible

Lists of files may get very long. This way, a user can
open just the hierarchy she wants.
@oneiros oneiros changed the title WIP: Key search Key search Oct 18, 2022
@oneiros oneiros linked an issue Oct 18, 2022 that may be closed by this pull request
@oneiros oneiros marked this pull request as ready for review October 18, 2022 08:34
@oneiros
Copy link
Collaborator Author

oneiros commented Oct 18, 2022

Hierarchies are now collapsed by default. Also, I added a few tests. This should be ready now. Fixes #4

@tuxmea tuxmea merged commit 379d30b into main Oct 18, 2022
@tuxmea tuxmea deleted the issue-4 branch October 18, 2022 12:07
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.

Feature Request: Searching for hiera keys
2 participants