node-vtex-api icon indicating copy to clipboard operation
node-vtex-api copied to clipboard

fix updateSchema criteria

Open hiagolcm opened this issue 2 years ago • 0 comments

What is the purpose of this pull request?

Update the schema every time the provider version is different instead of when it is higher.

What problem is this solving?

When the app has a provider, we update the Graphql schema in runtime. The problem is that we only update it when the version is greater than the current one.

The problem is that when you link or deprecate an app, the current schema version will not be updated.

How should this be manually tested?

Go to the workspace and link any version of the vtex.search-graphql. You will notice that the version will be updated instantly.

Types of changes

  • [x] Bug fix (a non-breaking change which fixes an issue)
  • [ ] New feature (a non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Requires change to documentation, which has been updated accordingly.

hiagolcm avatar May 17 '22 00:05 hiagolcm