Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

refactor: Moved hooks requiring login to separate file #206

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

tbarlow12
Copy link
Contributor

Rather than changing the AzureLoginPlugin to add "before:new:hook": this.login.bind(this) every time a new hook is added that needs authentication, this allows for the hooks (without before:) to be placed in a separate file. These are loaded in the constructor of the plugin, which sets up the proper hooks.

@coveralls
Copy link

coveralls commented Jul 18, 2019

Coverage Status

Coverage increased (+0.02%) to 83.962% when pulling 3774ae0 on tabarlow/login-hooks into 9b7bb74 on dev.

Copy link
Contributor

@wbreza wbreza left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@neerajmandal neerajmandal left a comment

Choose a reason for hiding this comment

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

Looks good to me

@tbarlow12 tbarlow12 force-pushed the tabarlow/login-hooks branch from d169324 to 3774ae0 Compare July 22, 2019 12:53
@tbarlow12 tbarlow12 merged commit 5d8162e into dev Jul 22, 2019
@tbarlow12 tbarlow12 deleted the tabarlow/login-hooks branch July 22, 2019 12:57
tbarlow12 added a commit that referenced this pull request Sep 13, 2019
Rather than changing the `AzureLoginPlugin` to add `"before:new:hook": this.login.bind(this)` every time a new hook is added that needs authentication, this allows for the hooks (without `before:`) to be placed in a separate file. These are loaded in the constructor of the plugin, which sets up the proper hooks.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants