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

feat(linkref): initial implementation #1788

Merged
merged 1 commit into from
Sep 5, 2021

Conversation

ml019
Copy link
Contributor

@ml019 ml019 commented Sep 4, 2021

Intent of Change

  • New feature (non-breaking change which adds functionality)

Description

Initial implementation of linkRefs.

The actual implementation logic was quite straight forward. It uses recursive logic so nested linkRefs is supported, with detection of circular dependencies included.

A subset of layers currently support the linkRefs attribute but adding other simply requires the attribute being added to the layer definition and the layer included in the appropriate place in the layer priority order.

Motivation and Context

Part of ADR-0007 implementation.

Also a useful way for modules to expose link based functionality without the consumer needing to know the internal details.

How Has This Been Tested?

Related Changes

Prerequisite PRs:

  • None

Dependent PRs:

  • None

Consumer Actions:

  • None

@ml019 ml019 requested a review from a team September 4, 2021 03:21
@ml019 ml019 self-assigned this Sep 4, 2021
@ml019 ml019 force-pushed the feat-named-links branch 4 times, most recently from 89bb493 to 03981c7 Compare September 5, 2021 07:56
Initial support for linkRefs.

The previous requirement for the `Tier` and `Component` attributes to
be mandatory on a link has been removed as a linkRef can be used by
itself. A compensating check for these attributes has been added after
`LinkRef` processing is complete.
@ml019 ml019 marked this pull request as ready for review September 5, 2021 12:11
@roleyfoley roleyfoley merged commit 685fc1c into hamlet-io:master Sep 5, 2021
@ml019 ml019 deleted the feat-named-links branch September 6, 2021 00:39
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