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

refactor: removal of implicit Enabled attribute #491

Merged

Conversation

ml019
Copy link
Contributor

@ml019 ml019 commented Dec 25, 2021

Intent of Change

  • Refactor (non-breaking change which improves the structure or operation of the implementation)

Description

  • remove code to handle missing attributes where they are now part of what composite object produces
  • use isPresent when checking for configured and enabled features

Motivation and Context

Part of hamlet-io/engine#1894

How Has This Been Tested?

Local template generation

Not all components have been exercised but expecting the test suite to pick up the less commonly used ones. This will require the prerequisite PR to have been merged,

The bulk of the correction were detected by the extra code in isPresent() which reports where it has been called from
so makes it straightforward to identify where remediation is required.

Related Changes

Prerequisite PRs:

Dependent PRs:

  • None

Consumer Actions:

  • None

- remove code to handle missing attributes where they are now part
of what composite object produces
- use `isPresent` when checking for configured and enabled features
@ml019 ml019 requested a review from a team December 25, 2021 02:37
@ml019 ml019 self-assigned this Dec 25, 2021
@roleyfoley roleyfoley merged commit 381599f into hamlet-io:master Dec 27, 2021
@ml019 ml019 deleted the refactor-remove-default-enabled-attribute branch January 3, 2022 03:37
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