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

Add required subscription on package creation #897

Merged
merged 2 commits into from
Jul 19, 2022

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Jul 18, 2022

It adds by now the old license field and the new elastic.subscription condition.

Follow up of elastic/package-spec#355.
Part of elastic/package-spec#298.

@jsoriano jsoriano requested a review from a team July 18, 2022 15:46
@jsoriano jsoriano self-assigned this Jul 18, 2022
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jul 18, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-07-18T20:29:26.665+0000

  • Duration: 29 min 56 sec

Test stats 🧪

Test Results
Failed 0
Passed 770
Skipped 0
Total 770

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link
Collaborator

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (31/31) 💚
Files 66.379% (77/116) 👍
Classes 61.963% (101/163) 👍
Methods 49.619% (326/657) 👍
Lines 33.017% (2925/8859) 👎 -0.045
Conditionals 100.0% (0/0) 💚

Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

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

LGTM

Name: "elastic_subscription",
Prompt: &survey.Select{
Message: "Required Elastic subscription:",
Options: []string{"basic", "gold", "platinum", "enterprise"},
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 order to be shown like here

Suggested change
Options: []string{"basic", "gold", "platinum", "enterprise"},
Options: []string{"basic", "platinum", "enterprise", "gold"},

Copy link
Member Author

Choose a reason for hiding this comment

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

Interesting, I didn't know that gold is discontinued, I guess that this is the only reason why it appears later there. But technically platinum > gold, we have been using this order everywhere. See the spec for example: https://github.com/elastic/package-spec/blob/0456e4f000a5bf85130d4e5e9c6d329a627523ec/versions/1/integration/manifest.spec.yml#L54

@jsoriano jsoriano merged commit a24d0b5 into elastic:main Jul 19, 2022
@jsoriano jsoriano deleted the create-package-subscription branch July 19, 2022 07:48
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.

3 participants