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

Mi/feature/merge #1153

Merged
merged 2 commits into from
May 4, 2021
Merged

Mi/feature/merge #1153

merged 2 commits into from
May 4, 2021

Conversation

xtuchyna
Copy link
Member

@xtuchyna xtuchyna commented May 4, 2021

Related Issues and Dependencies

Related to thoth-station/mi#364

This introduces a breaking change

  • Yes
  • No

This Pull Request implements

… Explain your changes.

Description

@sesheta sesheta requested review from harshad16 and KPostOffice May 4, 2021 18:07
@sesheta sesheta added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 4, 2021
Copy link
Contributor

@fridex fridex left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -1526,6 +1527,7 @@ def schedule_mi_workflow(
"ENTITIES": entities,
"KNOWLEDGE_PATH": knowledge_path,
"MI_THOTH": "1" if mi_used_for_thoth else "0",
"MI_MERGE": "1" if mi_merge else "0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Hint: booleans are ints in python: str(int(mi_merge))

Copy link
Member Author

@xtuchyna xtuchyna May 4, 2021

Choose a reason for hiding this comment

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

I know, I was just following other declarations in this file as well, see

"THOTH_ADVISER_DEV": "1" if dev else "0",

Can I then refactor these as e.g. "MI_MERGE": mi_merge ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hint: booleans are ints in python: str(int(mi_merge))

ooh I get it now, you mean it's better to use casting than the ternary operator

@sesheta
Copy link
Member

sesheta commented May 4, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fridex

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sesheta sesheta added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 4, 2021
@sesheta sesheta merged commit 7bf5b8e into thoth-station:master May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants