Skip to content

Conversation

@disq
Copy link
Member

@disq disq commented Jul 4, 2023

// Apply applies the given transformers to the given Tables, and recursively on the relations.
// This is useful for applying transformers that are not defined in the table definitions. To apply the table-definition transformers, use TransformTables.

@disq disq requested a review from hermanschaaf July 4, 2023 16:38
@disq disq requested a review from yevgenypats as a code owner July 4, 2023 16:38
@github-actions github-actions bot added the feat label Jul 4, 2023
@hermanschaaf
Copy link
Member

I wonder if we shouldn't rather introduce a function specifically for applying extra transformations to tables, because then you can decide whether to apply the extra transformations before or after the table's defined transformations?

@disq disq changed the title feat(transformers): Enable optional extra transformers feat(transformers): Add ApplyTransformers to apply extra transformations Jul 5, 2023
@github-actions github-actions bot added feat and removed feat labels Jul 5, 2023
@github-actions github-actions bot removed the feat label Jul 5, 2023
@disq
Copy link
Member Author

disq commented Jul 5, 2023

I wonder if we shouldn't rather introduce a function specifically for applying extra transformations to tables, because then you can decide whether to apply the extra transformations before or after the table's defined transformations?

Ok, refactored into separate fn

@github-actions github-actions bot added the feat label Jul 5, 2023
@github-actions github-actions bot added feat and removed feat labels Jul 5, 2023
@disq disq added the automerge label Jul 5, 2023
@disq disq changed the title feat(transformers): Add ApplyTransformers to apply extra transformations feat(transformers): Add Apply to apply extra transformations Jul 5, 2023
@github-actions github-actions bot added feat and removed feat labels Jul 5, 2023
@kodiakhq kodiakhq bot merged commit a40598e into cloudquery:main Jul 5, 2023
@disq disq deleted the feat/extraglobaltransformers branch July 5, 2023 10:57
kodiakhq bot pushed a commit that referenced this pull request Jul 5, 2023
🤖 I have created a release *beep* *boop*
---


## [4.8.0-rc1](v4.7.1-rc1...v4.8.0-rc1) (2023-07-05)


### Features

* **transformers:** Add `Apply` to apply extra transformations ([#1069](#1069)) ([a40598e](a40598e))


### Bug Fixes

* Deterministic ordering for records returned by readAll in tests ([#1072](#1072)) ([cf7510f](cf7510f))
* Handle null-related test options ([#1074](#1074)) ([88f08ee](88f08ee))
* **naming:** Rename `SyncMessages.InsertMessage()` to `SyncMessages.GetInserts()` ([#1070](#1070)) ([ab9e768](ab9e768))
* Reset timers on flush ([#1076](#1076)) ([767327f](767327f))
* Reverse order of records in memdb ([#1075](#1075)) ([8356590](8356590))
* **scalar:** Test `AppendTime` on TimestampBuilder ([#1068](#1068)) ([888c9ee](888c9ee))
* **testdata:** Exclude only the correct type ([#1067](#1067)) ([1c72fb2](1c72fb2))

---
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants