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

[AIRFLOW-6838] Add subcommands to Breeze #7515

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Feb 23, 2020


Issue link: AIRFLOW-6838

Make sure to mark the boxes below before creating PR: [x]

  • Description above provides context of the change
  • Commit message/PR title starts with [AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID*
  • Unit tests coverage for changes (not needed for documentation changes)
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

* For document-only changes commit message can start with [AIRFLOW-XXXX].


In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

@potiuk
Copy link
Member Author

potiuk commented Feb 23, 2020

This PR has been originated by @mik-laj - but I completed it with much better help. With this change 'breeze' introduces sub-commands instead of --switches everywhere and its interface is vastly improved. See for yourself in BREEZE.rst.

@mik-laj -> Please take a look. Kudos for pushing Breeze in this direction!

@potiuk potiuk changed the title Airflow 6838 [AIRFLOW-6838] Add subcommands to Breeze Feb 23, 2020
@potiuk
Copy link
Member Author

potiuk commented Feb 23, 2020

@mik-laj (others) I am wondering if we should not also split flags into categories similar to subcommands - but I think this should be a follow-up PR :) . This one is big enough.

Copy link
Contributor

@dimberman dimberman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mik-laj mik-laj left a comment

Choose a reason for hiding this comment

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

Today it will definitely test it thoroughly.

@potiuk
Copy link
Member Author

potiuk commented Feb 24, 2020

Fantastic @mik-laj !

hooks/build Outdated

if [[ ${VERBOSE} == "true" ]]; then
if [[ ${VERBOSE_COMMANDS:="false"} == "true" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if [[ ${VERBOSE_COMMANDS:="false"} == "true" ]]; then
if [[ ${VERBOSE_COMMANDS} == "true" ]]; then

No default needed, we set it two lines up

Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

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

Approved, looks good, but please look at the few small comments I added.

This change introduces sub-commands in breeze tool.
It is much needed as we have many commands now
and it was difficult to separate commands from flags.

Also --help output was very long and unreadable.

With this change help it is much easier to discover
what breeze can do for you as well as navigate with it.

Co-authored-by: Jarek Potiuk <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #7515 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7515      +/-   ##
==========================================
+ Coverage    86.8%   86.81%   +<.01%     
==========================================
  Files         893      893              
  Lines       42228    42247      +19     
==========================================
+ Hits        36656    36675      +19     
  Misses       5572     5572
Impacted Files Coverage Δ
airflow/__init__.py 100% <0%> (ø) ⬆️
...providers/microsoft/azure/hooks/azure_fileshare.py 100% <0%> (ø) ⬆️
airflow/kubernetes/worker_configuration.py 99.3% <0%> (+0.01%) ⬆️
airflow/utils/dag_processing.py 87.95% <0%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d0e712...32c81ea. Read the comment docs.

@potiuk potiuk merged commit 20b6b34 into apache:master Feb 24, 2020
potiuk added a commit that referenced this pull request Feb 25, 2020
This change introduces sub-commands in breeze tool.
It is much needed as we have many commands now
and it was difficult to separate commands from flags.

Also --help output was very long and unreadable.

With this change help it is much easier to discover
what breeze can do for you as well as navigate with it.

Co-authored-by: Jarek Potiuk <[email protected]>

Co-authored-by: Kamil Breguła <[email protected]>
galuszkak pushed a commit to FlyrInc/apache-airflow that referenced this pull request Mar 5, 2020
This change introduces sub-commands in breeze tool.
It is much needed as we have many commands now
and it was difficult to separate commands from flags.

Also --help output was very long and unreadable.

With this change help it is much easier to discover
what breeze can do for you as well as navigate with it.

Co-authored-by: Jarek Potiuk <[email protected]>

Co-authored-by: Kamil Breguła <[email protected]>
kaxil pushed a commit that referenced this pull request Mar 19, 2020
This change introduces sub-commands in breeze tool.
It is much needed as we have many commands now
and it was difficult to separate commands from flags.

Also --help output was very long and unreadable.

With this change help it is much easier to discover
what breeze can do for you as well as navigate with it.

Co-authored-by: Jarek Potiuk <[email protected]>

Co-authored-by: Kamil Breguła <[email protected]>
kaxil pushed a commit to astronomer/airflow that referenced this pull request Mar 19, 2020
This change introduces sub-commands in breeze tool.
It is much needed as we have many commands now
and it was difficult to separate commands from flags.

Also --help output was very long and unreadable.

With this change help it is much easier to discover
what breeze can do for you as well as navigate with it.

Co-authored-by: Jarek Potiuk <[email protected]>

Co-authored-by: Kamil Breguła <[email protected]>
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.

6 participants