You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow yaml-test load template from json to add dependencies - #3452
The reason will be displayed to describe this comment to others. Learn more.
Why does the LOAD comment need to specify the dependency? It seems that all the information should be already present in the json, via the type name and the dependencies that you declared at the top.
Why does the LOAD comment need to specify the dependency? It seems that all the information should be already present in the json, via the type name and the dependencies that you declared at the top.
In the json file dependencies, it only has test_student.proto but not the file path to the proto file, so theoretically we would at least need to modify the file name to a full file path. I think it is a bit cleaner to add the compiled class name to the load schema template command than adding a somewhat random file path (it'll be something like src/test/proto/ in practice but still theoretically can be random).
record_metadata.proto and record_metadata_options.proto work because we added them in RecordMetaDataBuilder.initGeneratedDependencies, not because they are declared in the json file.
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
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.
now users can put dependencies in src/test/proto, and
load schema templatecommand will automatically load these dependencies.