data-api-builder
data-api-builder copied to clipboard
Adding version check to startup
Closes #3292
Why make this change?
It is easy to continue running an outdated version of Data API builder after a newer version has been released to NuGet. This PR updates the startup process, checking the current version against the latest version available on NuGet.
What is this change?
- Introducing
Azure.DataApiBuilder.Product.VersionChecker. - Validating the versions during
Program.Main(). - Write out a log message only; this does NOT exit the engine.
How was this tested?
- [ ] Integration Tests
- [ ] Unit Tests
Sample Request(s)
- Example REST and/or GraphQL request to demonstrate modifications
- Example of CLI usage to demonstrate modifications
We've decided to start by adding this only to dab validate. And release in 1.6.
Move to dab validate
@Aniruddh25 can we assign this PR/branch to someone?