Skip to content
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

Fix online tutorial #44

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

flavio
Copy link
Member

@flavio flavio commented Nov 15, 2023

This changes the way the settings class is built inside of the tests.
That's required to ensure the online tutorial works as expected.

The tutorial changes the Settings class to have a HashSet attribute. This causes the invocations of let s Settings = Settings {} to fail because the new attribute is not specified.

Moving to use the Default::default contructor fixes everything.

This is required to unblock kubewarden/docs#295

This changes the way the settings class is built inside of the tests.
That's required to ensure the online tutorial works as expected.

The tutorial changes the `Settings` class to have a `HashSet` attribute.
This causes the invocations of `let s Settings = Settings {}` to fail
because the new attribute is not specified.

Moving to use the `Default::default` contructor fixes everything.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
@flavio flavio requested a review from a team as a code owner November 15, 2023 11:36
@flavio flavio self-assigned this Nov 15, 2023
@flavio flavio added the kind/enhancement New feature or request label Nov 15, 2023
@flavio flavio changed the title refactor required to fix online tutorial Fix online tutorial Nov 15, 2023
@flavio flavio merged commit b4cb570 into kubewarden:main Nov 15, 2023
1 check passed
@flavio flavio deleted the refactor-required-to-fix-tutorial branch November 15, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants