-
Notifications
You must be signed in to change notification settings - Fork 27
Update SDK to add SnapshotParametersDefinition in uploaded artifact #255
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
Conversation
d6f968e to
cdda079
Compare
3cf0e0d to
4bc500d
Compare
f1e0feb to
80b3992
Compare
| direct_source=direct_source, | ||
| repository=repository, | ||
| source_config=source_config, | ||
| optional_snapshot_parameters=snapshot_parameters) |
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 love the idea of putting the word "optional" right in the argument name here.
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.
haha it was your idea! so thank you 🥇
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.
It was?? I have no memory of this.
Pull request checklist
Please check if your PR fulfills the following requirements:
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Cannot define snapshot parameters. Staged plugins do have a "snapshot parameter" that is defined to have a resync boolean.
What is the new behavior?
optional_snapshot_parametersnow (direct and staged)Does this introduce a breaking change?
This change will mean anyone that wants to build a plugin with this version of the SDK will have to update two things:
the schema file needs to have the
snapshot_parameters_definitionand the source code needs to add theoptional_snapshot_parametersto the pre_snapshot / post_snapshot operations.Tests were run on the appgate side. Also added new unit test to verify that dvp init -> dvp build works because init should always create a buildable plugin.