Skip to content

Conversation

smatzana
Copy link

  • Adding some necessary attributes to a Flow in order to enable transforms
  • Only affect Batch and OnlineFlows

@smatzana smatzana force-pushed the feature/AIP-5284-integrate-txf-main branch 2 times, most recently from 65d5efd to ce564d9 Compare November 30, 2021 16:21
@coveralls
Copy link
Collaborator

coveralls commented Nov 30, 2021

Coverage Status

Coverage increased (+0.1%) to 97.822% when pulling 3fbdbde on feature/AIP-5284-integrate-txf-main into c85dc6d on main.

@smatzana smatzana force-pushed the feature/AIP-5284-integrate-txf-main branch from ce564d9 to c269a75 Compare November 30, 2021 17:59


if __name__ == "__main__":
TxTestFlow()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please add a step for how the Transform is expected to be used? This would be used as an example and test of expected customer usage for us to review. thanks!


if len(self._txf_callbacks):
for _, callback in self._txf_callbacks.items():
callback()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this callback actually calling the transform? better named txf_callback.
It'll help to see an example transform in unit tests and/or tutorials.


add_txf_attributes(self)
if not self._txf_registered_datasets.get(flow_name, None):
self._txf_registered_datasets[flow_name] = [dataset]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we maintain a dictionary of _txf_registered_datasets[flow_name] where flow_name is always the name of the flow?

I think you mean _txf_registered_datasets[dataset.name]. However, that may not work because one could reference the multiple Flow dataset variable/parameter to the same logically named dataset.name.

What is _txf_registered_datasets used for? Could you please reference a PR for what it is used for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants