-
Notifications
You must be signed in to change notification settings - Fork 0
SEP-1664: Emit the Extra Args field on schema-driven snippet forms #1231
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
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d4d1c73
SEP-1664: Emit the Extra Args field on schema-driven snippet forms
marcuscruz-percona 096c99e
SEP-1664: Reject a frontmatter parameter named extra_args
marcuscruz-percona 0826202
SEP-1664: Clarify docs around the Extra Args sharing carve-out
marcuscruz-percona aaba64a
Merge branch 'main' into SEP-1664
marcuscruz-percona d81ed86
Merge branch 'main' into SEP-1664
marcuscruz-percona 332c7dc
SEP-1664: Align Extra Args by-alias serialization with schema wire name
marcuscruz-percona a9b513f
Merge branch 'main' into SEP-1664
marcuscruz-percona 366337e
Merge branch 'main' into SEP-1664
marcuscruz-percona f5f96ef
fix: refresh frontend API codegen artifacts
Copilot c16b6fc
Merge branch 'main' into SEP-1664
marcuscruz-percona 8d16d85
SEP-1664: Drop the framework re-export and fold the non-shareable fil…
marcuscruz-percona a235da0
Merge remote-tracking branch 'origin/main' into SEP-1664
marcuscruz-percona f2e5a53
Merge branch 'main' into SEP-1664
yyyyyyyan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Copyright (C) 2026 Percona LLC | ||
| # | ||
| # This program is free software: you can redistribute it and/or modify | ||
| # it under the terms of the GNU Affero General Public License as published by | ||
| # the Free Software Foundation, either version 3 of the License, or | ||
| # (at your option) any later version. | ||
| # | ||
| # This program is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| # GNU Affero General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU Affero General Public License | ||
| # along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
|
||
| """Define wire-name constants shared across snippet and framework schema modules.""" | ||
|
|
||
| EXTRA_ARGS_FIELD_NAME = "extra_args" | ||
| """Name the synthesized Extra Args execution field on the wire. | ||
|
|
||
| Shared, cycle-free home for this spelling: ``app.sep.apps.framework.schema`` | ||
| and ``app.sep.snippets.models.snippet`` both need it, but ``framework`` | ||
| imports ``snippet`` (via ``script_helpers.py``), so ``snippet`` can't import | ||
| back from ``framework``. This leaf module has no imports of its own, so both | ||
| sides can depend on it without cycling. | ||
| """ |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Schema-driven snippet forms now render the Extra Args field for snippets that opt into it, matching the legacy Jinja form. | ||
| Reject a frontmatter snippet parameter named "extra_args", which collided with the synthesized Extra Args execution field. A snippet declaring that parameter name now fails parameter validation and cannot be executed until it is renamed. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.