data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

Adding version check to startup

Open JerryNixon opened this issue 11 months ago • 3 comments

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?

  1. Introducing Azure.DataApiBuilder.Product.VersionChecker.
  2. Validating the versions during Program.Main().
  3. 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

JerryNixon avatar Feb 13 '25 18:02 JerryNixon

We've decided to start by adding this only to dab validate. And release in 1.6.

JerryNixon avatar Mar 31 '25 15:03 JerryNixon

Move to dab validate

JerryNixon avatar Apr 07 '25 15:04 JerryNixon

@Aniruddh25 can we assign this PR/branch to someone?

JerryNixon avatar Jul 02 '25 17:07 JerryNixon