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

[Alerting] only show trial upgrade when running with basic license #64865

Merged
merged 3 commits into from
May 4, 2020

Conversation

pmuellr
Copy link
Member

@pmuellr pmuellr commented Apr 30, 2020

resolves #64245

Prior to this PR, the "Upgrade your license" banner in the connectors list
was displayed for gold licenses because the Service Now action requires
platinum, and the check only looked for any actions disabled by license.

Rather than display a different message for gold users, this PR changes the
banner display logic to check for any actions disabled by license that
also have a minimum required license of gold. That means gold+ users
won't see the message, even for actions with a minimum required license of
platinum+. Another perk of the gold license!

This will continue to display the banner for basic users, but will no longer
display it for gold users. It also continues to not display it for trial,
platinum and enterprise users.

Summary

Summarize your PR. If it involves visual changes include a screenshot or gif.

Checklist

resolves elastic#64245

Prior to this PR, the "Upgrade your license" banner in the connectors list
was displayed for gold licenses because the Service Now action requires
platinum, and the check only looked for any actions disabled by license.

Rather than display a different message for gold users, this PR changes the
banner display logic to check for any actions disabled by license that
also have a minimum required license of gold.  That means gold+ users
won't see the message, even for actions with a minimum required license of
platinum+.  Another perk of the gold license!

This will continue to display the banner for basic users, but will no longer
display it for gold users.  It also continues to not display it for trial,
platinum and enterprise users.
@pmuellr pmuellr added Feature:Alerting v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.8.0 labels Apr 30, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@pmuellr pmuellr marked this pull request as ready for review April 30, 2020 13:42
@pmuellr pmuellr requested a review from a team as a code owner April 30, 2020 13:42
Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

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

LGTM

@mikecote mikecote self-requested a review April 30, 2020 18:55
Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

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

LGTM 👍 I would confirm with @alexfrancoeur or @arisonl that the banner would only show for non-paying users (gold users won't see it anymore).

The "Get more actions" link still shows for gold users but I guess it's not aggressive enough to remove.

Screen Shot 2020-04-30 at 4 00 48 PM

const hasActionsDisabledByLicense = availableActionTypes.some(
action => !index[action.id].enabledInLicense
// determine if there are actions disabled by license that that
// would be enabled by upgrading to trial
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I would change the comment from trial to a gold license to be more clear on the logic below. Trial unlocks all license levels.

Suggested change
// would be enabled by upgrading to trial
// would be enabled by upgrading to a gold license

@@ -136,6 +136,100 @@ describe('connector_add_flyout', () => {
`"https://www.elastic.co/subscriptions"`
);
});

it('does not render banner with subscription links when only platinum features are disabled due to licensing ', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Unit tests ❤️

@pmuellr
Copy link
Member Author

pmuellr commented May 4, 2020

@elasticmachine merge upstream

@pmuellr
Copy link
Member Author

pmuellr commented May 4, 2020

from #64865 (review)

I would confirm with @alexfrancoeur or @arisonl that the banner would only show for non-paying users (gold users won't see it anymore).

Confirmed. Noted that we may want to enhance this later to show a more "subtle" experience for gold+ users, in case there are actions that require an upgraded license given the current gold+ license, but for now, not showing it for gold+ is fine.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@pmuellr pmuellr merged commit 4788754 into elastic:master May 4, 2020
pmuellr added a commit to pmuellr/kibana that referenced this pull request May 4, 2020
…lastic#64865)

resolves elastic#64245

Prior to this PR, the "Upgrade your license" banner in the connectors list
was displayed for gold licenses because the Service Now action requires
platinum, and the check only looked for any actions disabled by license.

Rather than display a different message for gold users, this PR changes the
banner display logic to check for any actions disabled by license that
also have a minimum required license of gold.  That means gold+ users
won't see the message, even for actions with a minimum required license of
platinum+.  Another perk of the gold license!

This will continue to display the banner for basic users, but will no longer
display it for gold users.  It also continues to not display it for trial,
platinum and enterprise users.
pmuellr added a commit that referenced this pull request May 4, 2020
…64865) (#65138)

resolves #64245

Prior to this PR, the "Upgrade your license" banner in the connectors list
was displayed for gold licenses because the Service Now action requires
platinum, and the check only looked for any actions disabled by license.

Rather than display a different message for gold users, this PR changes the
banner display logic to check for any actions disabled by license that
also have a minimum required license of gold.  That means gold+ users
won't see the message, even for actions with a minimum required license of
platinum+.  Another perk of the gold license!

This will continue to display the banner for basic users, but will no longer
display it for gold users.  It also continues to not display it for trial,
platinum and enterprise users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade your license to access all connectors gets displayed when user is on gold license
5 participants