-
Notifications
You must be signed in to change notification settings - Fork 2
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
Avro references2 #32
base: main
Are you sure you want to change the base?
Avro references2 #32
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
karapace/schema_models.py
Outdated
if dependencies: | ||
merged_schema = "" | ||
for dependency in dependencies.values(): | ||
merged_schema += self.builder(dependency.schema.schema_str, dependency.schema.dependencies) + ",\n" |
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.
Can we please change this to a loop based approach supported by a stack or a queue, (depending on the propagation). This is to safe guard against a large nested schema.
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.
done
Would it be possible to add new unit tests to cover the changes in schema_models.py, schema_reader.py, schema_registry_apis.py? Seems only integration tests have been added for that stuff |
Yes, it is possible. But creating tests may become an endless process if we do not follow the Karapace test practice. They have no unit tests for schema_registry_api.py, and the tests for schema_models and schema_reader do not look meticulous. However, they have good test coverage for the functional parts of schema storing, parsing, compatibility, etc. So we focused on these tests and now have integration and unit tests for Avro schemas functionality. |
f0f9450
to
0167a75
Compare
9cac0ba
to
f4346ea
Compare
f4346ea
to
5ab6ba0
Compare
About this change - What it does
References: #xxxxx
Why this way