-
Notifications
You must be signed in to change notification settings - Fork 34
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
(feat)First step towards full xml-configuration support #915
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobergum
approved these changes
Sep 20, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great direction, unlocking all the features of Vespa - I assume that excisting functionaliy works and that we can add examples of using the new syntax?
Thanks. Yes - that is the goal of next iterations.
…On Fri, Sep 20, 2024 at 9:27 AM Jo Kristian Bergum ***@***.***> wrote:
***@***.**** approved this pull request.
This is a great direction, unlocking all the features of Vespa - I assume
that excisting functionaliy works and that we can add examples of using the
new syntax?
—
Reply to this email directly, view it on GitHub
<#915 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF3M74H6FQJJOKYGQNRAKY3ZXPE6PAVCNFSM6AAAAABOJGSC6OVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGMJXGQ3TSMJUGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This was referenced Sep 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
Why
Adding support for tags far down in the tree, ref #895, results in a lot of code, and with our current approach of using jinja-templates requires a lot of effort each time.
This PR is in preparation to allow for supporting any
services.xml
configuration from pyvespa, with the approach used by FastHTML as inspiration.How
By adopting the approach in this PR, we only need to provide a list of valid xml-tags for each configuration file, and all the classes will be auto-generated.
E.g. to express the following
services.xml
:We can do this from python with:
Notes
ApplicationPackage().services_to_text
to use this functionality for it to take effect.There are many files in this PR because:
["**/services.xml", "**/validation-overrides.xml", "**/hosts.xml"]
from sample-apps repo, to use as test files for the service configuration..rnc
and.rng
files from vespaengine/vespa for schema validation.Only the 2 python files needs a review.