Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ehuelsmann
Copy link
Member

@ehuelsmann ehuelsmann commented Aug 3, 2021

Description

add_observer isn't internal: this is a method anyone
could be willing to use programmatically in addition to the declarative
way of subscribing observers through configuration?

While writing this PR, I noted that Workflow doesn't support half the functionality supported (for its observers) by e.g. Role::EventEmitter.

Type of change

I suppose this is a documentation fix (to be confirmed by @jonasbn)

  • Bug fix (non-breaking change which fixes an issue) -- documentation

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

Most definitely, `add_observer` isn't internal: this is a method anyone
could be willing to use programmatically in addition to the declarative
way of subscribing observers through configuration.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.201% when pulling d87890f on ehuelsmann:observer-method-docs into 5fa35d9 on jonasbn:master.

@ehuelsmann ehuelsmann requested a review from jonasbn August 3, 2021 21:46
@ehuelsmann
Copy link
Member Author

This PR is a matter of expectations about the use of the API: do we expect these methods to be available to users of the library to add their own observers irrespective of what's been declared in the XML?

Copy link
Collaborator

@jonasbn jonasbn left a comment

Choose a reason for hiding this comment

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

Approved

@jonasbn jonasbn merged commit 82dd62c into perl-workflow:master Aug 5, 2021
@jonasbn jonasbn added this to the 2.0 milestone Aug 5, 2021
@jonasbn jonasbn added the enhancement Feature/improvement label Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature/improvement

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants