Skip to content

Conversation

@tzulitai
Copy link
Contributor

@tzulitai tzulitai commented Mar 4, 2020

This PR adds a required version field to YAML-ized modules.

The starting format version will be 1.0, following the conventions of systems like docker-compose.

The changelog commits should be self-explanatory on how this is implemented.
Note: From the looks of the code, the Pointers and JsonModule classes could use some refactoring, but we can revisit that once we introduce more format versions in the future.


Verifying

The JsonModuleTest has been adapted to cover this change.
Same for the E2E test - the RoutableKafkaE2E uses a YAML module, so that is covered there as well.

tzulitai added 3 commits March 4, 2020 20:06
The JsonModuleFactory is a static factory that creates JsonModules based
on the specified format version.

We currently only have one version, 1.0, and one corresponding
JsonModule, i.e. the JsonModule class. We need to further refactor
Pointers and JsonModule in the future once we introduce more versions.
@tzulitai
Copy link
Contributor Author

tzulitai commented Mar 4, 2020

cc @igalshilman

Copy link
Contributor

@igalshilman igalshilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@tzulitai
Copy link
Contributor Author

tzulitai commented Mar 6, 2020

Thanks, merging ...

@tzulitai tzulitai closed this in adb1b2d Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants