Skip to content

Update plugin attributes.#65

Merged
jagoda merged 1 commit intohapijs:masterfrom
jagoda:feat-attributes
Nov 4, 2015
Merged

Update plugin attributes.#65
jagoda merged 1 commit intohapijs:masterfrom
jagoda:feat-attributes

Conversation

@jagoda
Copy link
Copy Markdown
Contributor

@jagoda jagoda commented Oct 28, 2015

In some use cases it may make sense to load vision before any
connections have been configured. Similarly, multiple plugins in an
application may try to load vision. Since vision only deals with
template rendering, it is possible to do both of these if the
'connections' and 'once' attributes are provided in the plugin
attributes.

Resolves #63.

@jagoda jagoda added the feature New functionality or improvement label Oct 28, 2015
@jagoda jagoda added this to the 3.1.0 milestone Oct 28, 2015
test/index.js Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No expect()?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It seemed unnecessary to me since when the plugin registration fails it passes an error to done() which in turn causes the test to fail. I'm fine adding an expect though if this isn't explicit enough.

@jagoda
Copy link
Copy Markdown
Contributor Author

jagoda commented Oct 28, 2015

@hueniverse I would appreciate it if you could confirm that I understood this issue correctly.

@jagoda jagoda modified the milestones: 4.0.0, 3.1.0 Nov 1, 2015
@hueniverse
Copy link
Copy Markdown
Contributor

Looks good.

In some use cases it may make sense to load vision before any
connections have been configured. Similarly, multiple plugins in an
application may try to load vision. Since vision only deals with
template rendering, it is possible to do both of these if the
'connections' and 'once' attributes are provided in the plugin
attributes.

Resolves hapijs#63.
jagoda added a commit that referenced this pull request Nov 4, 2015
@jagoda jagoda merged commit 464048e into hapijs:master Nov 4, 2015
@jagoda jagoda deleted the feat-attributes branch November 4, 2015 00:48
@jagoda jagoda self-assigned this Nov 4, 2015
@lock
Copy link
Copy Markdown

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new attributes: connections: false, once: true

3 participants