-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
CT 2251 model yaml frontmatter #7100
Draft
gshank
wants to merge
25
commits into
main
Choose a base branch
from
ct-2251-model_yaml_frontmatter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 16 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9ae7a70
Add yaml frontmatter code in yaml_helper.py
gshank 7163a57
Split up yaml frontmatter in model parser
gshank 063cad6
Process yaml frontmatter from model parser
gshank 1b16597
Add test
gshank 106a8ec
Tweak
gshank 592d892
Fix some unit tests
gshank efec14f
Fix artifacts test
gshank 882e2cd
Add test for partial parsing
gshank 13d961c
Changie and tweak check for frontmatter because Windows
gshank cc1b521
Throw error on config in both model and schema file
gshank 04e2767
fix test_parser.py
gshank dc2b73a
Fix separator regex to work on Windows
gshank f57301c
Add test running tests, fix "write_node" to specify directory different
gshank ade4e1e
Some comments
gshank e30671e
Also check for .py
gshank 897b7a1
Merge branch 'main' into ct-2251-model_yaml_frontmatter
gshank e24fae5
test formatting
gshank c38a49c
Merge branch 'main' into ct-2251-model_yaml_frontmatter
gshank 30aaa1d
Update manifest/v10.json
gshank e8d7d8b
Update expected_manifest.py
gshank 82ed393
Merge branch 'main' into ct-2251-model_yaml_frontmatter
gshank 9634808
Skip partial parsing check for patch from schema file
gshank aae8a75
Merge branch 'main' into ct-2251-model_yaml_frontmatter
gshank 45637f7
Merge branch 'main' into ct-2251-model_yaml_frontmatter
gshank 825738a
Merge branch 'main' into ct-2251-model_yaml_frontmatter
gshank 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 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,6 @@ | ||
kind: Features | ||
body: Support embedded yaml frontmatter in model nodes | ||
time: 2023-03-02T09:56:13.106933-05:00 | ||
custom: | ||
Author: gshank | ||
Issue: "7099" |
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
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
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
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
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
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
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.
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.
I think
content
could start with whitespace (including newlines) and this method would returnFalse
, whilesplit_yaml_frontmatter
would skip over leading whitespace.Perhaps this would be better?
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.
Content should be stripped already, I think, when it's loaded in read_files. Did you actually see an error? Wouldn't hurt to double up on that though.
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.
Nope! I honestly just drove by and looked over your approach. Cool that it's already stripped. It might be worth a test case?