The GitHub Actions job "Tests" on airflow.git has succeeded.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
fa4866e79f99332a6927039abae33adfeba52de1 / Jarek Potiuk <[email protected]>
nIcer handling of cached Breeze parameters

The cached parameters in Python Breeze were largely based on
Bash implementation. They did the job but required pretty
cumbersome synchronization of cached values with parameters
passed and it was easy to forget about this as you had to
do it sepearately in each method that had potentially
cacheable parameters.

In this PR we take advantage of the Click class hiarchy and their
extendability. We've already extended Click Choice parameter
to be much better formatted for long list of choices but we take
this a bit further now with adding new type of parameter that
can cache the values between runs.

This has multiple advantages:

* we do not have to remember about synchroniation - parameters
  automatically read/write their values from cache as they are
  used
* we can automatically set parameters to default when wrong
  value is passed. This is nice as user does not have to
  re-run the command because the values are corrected
  on-the-flight.
* the parameters can have their default values displayed in
  help screen (we use sentinel default that we can use to
  detect if value was passed from parameter or taken from default)
* the parameters can also have their <current> values marked in
  list of choices - so the user in the help screen can see not
  only the default but also which value is currently selected
  and will be used if you do not pass any parameter.

Report URL: https://github.com/apache/airflow/actions/runs/2217043540

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to