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

(PUP-3331) Provide auto* relationships for types #3112

Merged
merged 3 commits into from Oct 17, 2014
Merged

(PUP-3331) Provide auto* relationships for types #3112

merged 3 commits into from Oct 17, 2014

Conversation

trevor-vaughan
Copy link
Contributor

This patch adds the ability to create all types of auto* relationships
for custom types.

Supported:

  • Autorequires
  • Autonotifies
  • Autobefore
  • Autosubscribes

Notify and subscribe work properly as designed and can notify services,
execs, etc...

@puppetcla
Copy link

CLA signed by all contributors.

if edge?(edge.target, edge.source)
vertex.debug "Skipping automatic relationship with #{edge.source}"
else
vertex.debug "Forming automation relationshipf of type #{rel_type} with #{edge.source}"
Copy link
Contributor

Choose a reason for hiding this comment

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

relationship

@ferventcoder
Copy link
Contributor

Any chance we can get some specs on this? This looks pretty good so far.

@trevor-vaughan
Copy link
Contributor Author

Hi Rob,

I'd be happy to add some additional tests. Do you just need each attribute
called explicitly? The existing tests exercise the entire code path from
what I could tell.

Thanks,

Trevor

On Wed, Oct 1, 2014 at 2:08 PM, Rob Reynolds notifications@github.com
wrote:

Any chance we can get some specs on this? This looks pretty good so far.


Reply to this email directly or view it on GitHub
#3112 (comment).

Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaughan@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

@ferventcoder
Copy link
Contributor

I'm not sure if we had anything other than autorequire before? It would be nice to get some specs on those new auto* items. Knowing when a relationship happens or doesn't happen. It could help drive some possible behaviors we were not thinking of.

@trevor-vaughan
Copy link
Contributor Author

Ok, will work on it as soon as I can.

Thanks,

Trevor

On Thu, Oct 2, 2014 at 3:04 PM, Rob Reynolds notifications@github.com
wrote:

I'm not sure if we anything other than autorequire before? It would be
nice to get some specs on those new auto* items. Knowing when a
relationship happens or doesn't happen. It could help drive some possible
behaviors we were not thinking of.


Reply to this email directly or view it on GitHub
#3112 (comment).

Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaughan@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

@ferventcoder
Copy link
Contributor

I'm ready to pull this in. However it looks like it needs to be rebased. Would you like to do that?

@trevor-vaughan
Copy link
Contributor Author

Sure thing. I'll work on it tonight if at all possible.

Thanks!

Trevor

On Thu, Oct 16, 2014 at 6:07 PM, Rob Reynolds notifications@github.com
wrote:

I'm ready to pull this in. However it looks like it needs to be rebased.
Would you like to do that?


Reply to this email directly or view it on GitHub
#3112 (comment).

Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaughan@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

This patch adds the ability to create all types of auto* relationships
for custom types.

Supported:
* Autorequires
* Autonotifies
* Autobefore
* Autosubscribes

Notify and subscribe work properly as designed and can notify services,
execs, etc...
Attempted to update the documentation to make it clear that you can now
use all four types of relationships.

Updates #PUP-3331
Added full spec tests within 'type_spec.rb' for all possible
permutations of autorelationships using fake types compiled into a real
catalog.

This was the only way of ensuring that the propagated events could be
properly tested.

Updates #PUP-3331
@trevor-vaughan
Copy link
Contributor Author

Rebased and ready to roll.

ferventcoder added a commit that referenced this pull request Oct 17, 2014
(PUP-3331) Provide auto* relationships for types
@ferventcoder ferventcoder merged commit fb7e462 into puppetlabs:master Oct 17, 2014
@ferventcoder
Copy link
Contributor

Thanks for your contribution! This has been merged into master and will be released as part of 4.0.0.

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.

None yet

3 participants