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

Fix DataSourceName update for HotReload

Open abhishekkumams opened this issue 1 year ago • 3 comments

Why make this change?

the correct way of updating the dataSourceName was already there in the initial PR here: https://github.com/Azure/data-api-builder/blob/741865371911ef0b8dc6a27d9bc9ef82470cfc16/src/Config/ObjectModel/RuntimeConfig.cs#L303

then in another refactor PR, it was incorrectly updated, ref: https://github.com/Azure/data-api-builder/pull/2356/files#r1781334859

What is this change?

  • Using the correct initial method to update the DataSourceName for HotReload Scenario.

How was this tested?

  • Manual Testing
  • More tests should be a part of other HotReload PRs

abhishekkumams avatar Oct 01 '24 05:10 abhishekkumams

/azp run

abhishekkumams avatar Oct 01 '24 05:10 abhishekkumams

/azp run

abhishekkumams avatar Oct 02 '24 05:10 abhishekkumams

/azp run

abhishekkumams avatar Oct 04 '24 14:10 abhishekkumams

In the tests section you wrote that "more tests should be part of other HotReload PRs". Do you mean tests related to the function UpdateDefaultDataSourceName or what did you mean by it?

RubenCerna2079 avatar Oct 08 '24 02:10 RubenCerna2079

In the tests section you wrote that "more tests should be part of other HotReload PRs". Do you mean tests related to the function UpdateDefaultDataSourceName or what did you mean by it?

correct integrations tests would be verifying this update logic as well.

abhishekkumams avatar Oct 08 '24 11:10 abhishekkumams

/azp run

abhishekkumams avatar Oct 08 '24 11:10 abhishekkumams

It would be helpful to have in PR description "Why" this change is correct and why the previous one is wrong

seantleonard avatar Oct 09 '24 00:10 seantleonard

/azp run

seantleonard avatar Oct 09 '24 16:10 seantleonard

/azp run

abhishekkumams avatar Oct 11 '24 05:10 abhishekkumams

/azp run

abhishekkumams avatar Oct 14 '24 07:10 abhishekkumams

/azp run

abhishekkumams avatar Oct 14 '24 13:10 abhishekkumams