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

allow more complex prerequisiteTags for fields #137

Open
tyrasd opened this issue Feb 14, 2024 · 2 comments · May be fixed by #87
Open

allow more complex prerequisiteTags for fields #137

tyrasd opened this issue Feb 14, 2024 · 2 comments · May be fixed by #87
Labels
enhancement New feature or request

Comments

@tyrasd
Copy link
Collaborator

tyrasd commented Feb 14, 2024

Prerequisite tags might be more complex than a simple key=*, 'key=value, 'key!=value or !key filter. Examples might be !key or key=no or key1=* and key2=* or key=value1 or key=value2. It would be useful if such situation could be expressed in the tagging schema.

@tordans
Copy link
Collaborator

tordans commented May 1, 2024

Another example is the parking:SIDE:orientation=* which should only be visible when parking:SIDE=* is…

  • present (not null)
  • not no or separate

@tordans
Copy link
Collaborator

tordans commented May 1, 2024

We also need the capability to support multiple prerequisiteTags, so the current object should become an array. This will open the question, if the array uses and AND or OR logic. I think only going for AND would be fine. But we would have to test this out with more cases. Update: #153 needs an OR.

Update: See #153 (comment) for a example that uses the array-format with an OR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants