Skip to content

Conversation

@jeffngo
Copy link
Contributor

@jeffngo jeffngo commented May 8, 2020

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build was run locally and any changes were pushed
  • Lint has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current and new behavior?

Plugin authors might feel the need to deprecate older versions of LUA toolkits at some point in the future. To aid plugin authors on this endeavor, we will allow them to specify the lowest version of a LUA toolkit that can be upgraded. Right now, the plugin config does not expect a field to denote the minimum lua version that the plugin can upgrade. This change adds that field.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@jeffngo jeffngo added the enhancement New feature or request label May 8, 2020
@jeffngo jeffngo added this to the VSDK Sprint 4/30-5/21 milestone May 8, 2020
@jeffngo jeffngo self-assigned this May 8, 2020
Copy link
Contributor

@ravi-cm ravi-cm 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.

Copy link
Contributor

@nhlien93 nhlien93 left a comment

Choose a reason for hiding this comment

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

are you planning to add the changes we discussed where we validate that if a luaName exist the minimumLuaVersion also must exist? Also i think we'd wanna do it the other way around too? Where if minimumLuaVersion exists luaName must also exist.

@nhlien93
Copy link
Contributor

nhlien93 commented May 9, 2020

oh I realized after I posted that you hadn't actually updated your diff (idk why I thought you did) Ignore me!

@jeffngo jeffngo linked an issue May 11, 2020 that may be closed by this pull request
jeffngo added 5 commits May 11, 2020 13:34
… strings. Added a check (per Lindsey's suggestion) to ensure that luaName and minimumLuaVersion are both set.
Copy link
Contributor

@nhlien93 nhlien93 left a comment

Choose a reason for hiding this comment

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

agreed with what ravi said with validation. we should try to throw user errors like this only in the validation code to be consistent.

Copy link
Contributor

@ravi-cm ravi-cm left a comment

Choose a reason for hiding this comment

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

Thank you for the new changes, looks good.

Copy link
Contributor

@nhlien93 nhlien93 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.
could you link the doc bugs that are related to making sure we explicitly call out that the major/minor value is what the version is? just so we're tracking certain things and can always go back to this if we forget why we need the bug.

@jeffngo jeffngo merged commit 3bbca75 into delphix:develop May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

4 participants