Skip to content

Conversation

@disq
Copy link
Member

@disq disq commented Jun 7, 2023

Just a draft. I don't like the untestability of this as its current state (with injected PostResourceResolvers). Fixed in c61aec5

Fixes #10779

@cq-bot cq-bot added the azure label Jun 7, 2023
@disq disq marked this pull request as ready for review June 7, 2023 13:30
Copy link
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

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

Can we make this optional via configuration so it's not a breaking change?
If it works well we can make it the default.

Also maybe there's a way to hook into the Azure SDK and handle it here? The team is quite responsive so we can ask via an issue here https://github.com/Azure/azure-sdk-for-go/issues

@disq
Copy link
Member Author

disq commented Jun 7, 2023

Can we make this optional via configuration so it's not a breaking change? If it works well we can make it the default.

done

Also maybe there's a way to hook into the Azure SDK and handle it here? The team is quite responsive so we can ask via an issue here Azure/azure-sdk-for-go/issues

Asked, I don't think they'll recommend anything other than a custom Transport (or a PerCallPolicies[].Policy) entry in ClientOptions which would be just as bad (to "detect" ids in the http.Response and process...) if not worse.

@disq disq changed the title feat(azure)!: Force ID values to be all lowercase feat(azure): Add option to normalize all ID values to be all lowercase Jun 7, 2023
return nil
}

func ChainRowResolvers(next ...schema.RowResolver) schema.RowResolver {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is currently unused and may be removed.

@disq disq added the automerge Automatically merge once required checks pass label Jun 7, 2023
@disq disq changed the title feat(azure): Add option to normalize all ID values to be all lowercase feat(azure): Add option to normalize ID values to be all lowercase Jun 7, 2023
@kodiakhq kodiakhq bot merged commit 82134ee into cloudquery:main Jun 7, 2023
@disq disq deleted the feat/azure-normalize-ids branch June 7, 2023 15:35
kodiakhq bot pushed a commit that referenced this pull request Jun 7, 2023
kodiakhq bot pushed a commit that referenced this pull request Jun 8, 2023
Follow-up to #11388.

We don't want `SetItem()`, we want to `Set()` the column directly.

Opening as `chore` because the fix is unreleased.
kodiakhq bot pushed a commit that referenced this pull request Jun 13, 2023
🤖 I have created a release *beep* *boop*
---


## [8.2.0](plugins-source-azure-v8.1.0...plugins-source-azure-v8.2.0) (2023-06-13)


### Features

* **azure:** Add option to normalize ID values to be all lowercase ([#11388](#11388)) ([82134ee](82134ee)), closes [#10779](#10779)


### Bug Fixes

* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 0f7bd3b ([#11412](#11412)) ([dd1e2e8](dd1e2e8))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 7f6aaff ([#11432](#11432)) ([55dfebc](55dfebc))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 8f72077 ([#11395](#11395)) ([d91fc5c](d91fc5c))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 90670b8 ([#11279](#11279)) ([a6cdc91](a6cdc91))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to b359e74 ([#11405](#11405)) ([5d92765](5d92765))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to d8eacf8 ([#11449](#11449)) ([742dafd](742dafd))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to e258cfb ([#11391](#11391)) ([eacbe9a](eacbe9a))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Azure returns inconsistent case sensitive results render pks incorrect

3 participants