-
Notifications
You must be signed in to change notification settings - Fork 438
ECS tooling rewrite brought about by the need to reuse field sets as a different name #864
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
Merged
Changes from all commits
Commits
Show all changes
113 commits
Select commit
Hold shift + click to select a range
6568fe2
Function to turn single word reuse locations into the dictionary nota…
e0befee
Validate that keys 'as' and 'at' are present in dictionary notation
53556a0
Actually resolve the shorthands when reading schemas
88313e7
Unrelated: removed dead code
05d2847
Precompute the full path of a nesting, considering nesting as another…
ee51313
First pass at self-nesting
108dd35
Missed a generated file
ab82e6e
Code formatting
a3b5fde
Changelog
2918cdd
Fix asciidoc link when nesting as another name
d0c0271
Change the wording of using a field set at the root of events (instea…
c90885f
Remove commented code
df9843d
WIP
503f90b
Start massive refactor of schema_reader...
abee212
Make the 'reusable' field set properties explicit
e11fe38
Move a bunch of code to schema_processor.py
4b2039c
Give schemas/README.md some much needed attention
819575c
new schema loader WIP
0af1aa3
About to turn the schema loader into a shotgun...
4725167
The schema loader now merges EVERYTHING, taking special care of arrays
d16c361
Import the changes from PR #821
5b27a8b
Move nesting structure comment to top of file
50a49a3
Adjust tests for safe loading of schemas for new script name
a1c20d6
Start future schema cleaner w/ basic visitor function to navigate the…
94ce10b
Raise clear error on missing schema name
5344341
Add 'mock' testing dependency
3fe758b
Make 'title' a schema_detail as well
e28c737
Keep improving schema/readme
9bb6722
Create a helper for list subtraction...
6202462
schema level cleanups looking pretty good
ff17836
Extract the check for mandatory schema attributes to its own function
0ab1b1c
Raise on multiline short descriptions
7f7511d
Fill in field name for intermediary fields as well
c693b62
Refine docs around setting description and short in the YAMLs
ee6819b
Start the field cleaning code, reuse the short description check
2610d14
First checks for fields
c607ab0
Implement the simple defaults for fields
1ec38d1
better multi-fields datatype support than before
a6140a1
Precalculate the 'path' to a field as we build the deeply nested stru…
24bb145
Implement flat/dashed names for all fields. Close to feature parity w…
6a0bc77
Add intermediary=True to fields implicitly created to contain others.
9d19424
Correct my engrish. intermediary => intermediate
fcab216
Precalculate the leaf field name
ff718ca
In loader.py it's too early to determine namespacing under fs name
f3ab162
Comment out all the 'path' stuff. Must be calculated later
14850a5
Tentative final state for cleaner.py, much simplified
b7e1adb
Comments at the top
2d41e9b
Move validation & normalizing of field reuse attributes to new script
685d7a0
Remove 'path' stuff from cleaner tests. Will happen in finalizer
490a822
Add another test for the already normalized self reuse
caee0ee
Why does this throw my brain for a loop
45e5384
Both foreign reuse and self-reuse work now :-D
88090fd
Move visitor to its own module
a8a451d
First reasonable stab at finalizing the fields.
6051d52
New way to capture what's 'nested_here', make process.parent a reuse …
3bbc26f
Start capturing original_fieldset for reused fields as well, streamli…
c095081
Clean the allowed values as well
fe30e02
Fix problem with original_fieldset and write test for calculate_final…
0263d56
Function docstrings in finalizer.py
fccaa6c
Remove inaccurate comment. finalizer.py works on the structure in place
903b0bd
Reasonable implementation of filtering subsets
ca82b70
First pass at moving the flattening to the intermediate files generatoar
ce65c69
Calculate flat_name for multi_fields
0f91bc4
Move helper func is_intermediate(field) to the helpers
1326f43
WIP new generator using all the new schema scripts
8e836ca
WIP on intermediate_files.py generator for ECS YAML files
d9acd1c
Initial stab at fixing an issue around chained nestings: original_fie…
388204c
Remove old debugging code, replace with comment as a hint
fa19654
Fix bug where explicit legit object fields were incorrectly flagged a…
42ea8f7
Don't publish the deeply nested ecs.yml for now
f3f44ab
Remove old versions of the code
f32e56f
Introduce new optional attribute about reuse, for order of performing…
e13a05e
Perform reuse in prescribed order. Temp copy by reference no longer n…
d9b6b49
Rewrite intermediate files generator using visitor pattern
c17c46d
Comment out a bunch of things for initial PR review...
342cc98
Fix issue introduced in recent changes around reuse order. Add test.
d0d89c4
All generated files except asciidocs, as of latest changes
d716c3a
Revert back to passing normal nested fields to asciidoc generator.
ffd71f5
introduce the new attribute 'reused_here' immediately, after all...
eb83c25
Append short description to 'reused_here'
321cc5f
Use the new 'reused_here' attribute to populate the field reuse section
4ca8fe1
Fix code listing allowed_values to use nested representation
81e626c
Fix last remaining place that assumed deeply nested structure
caa0eb5
asciidoc as of now. one major problem left
f506a73
Fix subtle bug where self-nestings would incorrectly mark parent fiel…
86848b2
Remove subset tests that have been replaced...
8b3d52d
Use new scripts to load ECS fields in test_ecs_spec.py
dc71e03
Code formatting
b33f8d3
Make test output verbose
e5140b9
Reset process.yml with the duplicated fields for initial review
1496d83
Add nesting of code_sig to process.parent again, for initial review
73ad62a
Also re-nest hash at process.parent
face9d4
Undo a wording improvement to simplify rewrite PR review
fac6109
Temporarily re-add object_type for initial review
0fac563
Merge branch 'master' into nest-as-rampage
b812cf7
Remove old PR ID from relevant changelog entries. This will be a clea…
14c95e4
Code comment formatting
bf16551
Update an outdated docstring
96c06bb
Add failing test to sanity check, to catch mangled tracing fields
78a3d6d
Improve an unrelated test
1e63726
Remove commented out code
530691a
Finish the comment for subset_filter.py
0fa6fe1
Add __init__.py in unit tests so they're 'discovered' properly 🤦🏻♂️
035449e
Fix load_yaml_file bug
0353f75
Pin the version of mock
91e4660
Fix merge_fields bug
98745ca
Fix issue with tracing fields getting mangled
866f1b9
Adjust sanity check for new nesting under complete field name
34595a3
Changelog
97613cf
Space. The final frontier.
c841c53
Raise if either reused schema or destination schema have root=true
d6ec0ac
Fix spacing
91e7f16
Marshall was right, these two functions were the same. Deleted one of…
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
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 @@ | ||
ecs.yml |
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.