Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override time delay #15

Open
wants to merge 7 commits into
base: hbo-feathr-branch
Choose a base branch
from
Open

Conversation

aabbasi-hbo
Copy link
Owner

Description

Resolves #XXX

How was this PR tested?

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to clarify your proposed changes.


def to_feature_config(self) -> str:
tm = Template("""
{
key: [{{key_columns}}]
featureList: [{{feature_names}}]
{% if query.overrideTimeDelay is defined %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
{% if query.overrideTimeDelay is defined %}
{% if query.overrideTimeDelay %}

@@ -3,29 +3,66 @@
from loguru import logger
from feathr.definition.feathrconfig import HoconConvertible

class ConflictsAutoCorrection():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh interesting. This is updated code from the official feathr repo that hasn't been merged into this repo yet right?

Copy link
Collaborator

@atangwbd atangwbd left a comment

Choose a reason for hiding this comment

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

left some small suggestions but lgtm!

Comment on lines +20 to +21
if override_time_delay:
self.overrideTimeDelay = override_time_delay
Copy link
Collaborator

@atangwbd atangwbd Apr 6, 2023

Choose a reason for hiding this comment

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

Suggested change
if override_time_delay:
self.overrideTimeDelay = override_time_delay
self.overrideTimeDelay = override_time_delay

small nit: but can be expressed a bit cleaner like this and the suggestion in L28

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.

2 participants