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

[1.9] Promote hidden params to top-level args in AutomationConditionSensorDefinition #25206

Conversation

OwenKephart
Copy link
Contributor

Summary & Motivation

As title -- these should be documented and visible to users.

Open to suggestions on use_user_code_server as a name.

How I Tested These Changes

Changelog

Added a new use_user_code_server paramter to AutomationConditionSensorDefinition. If set, the sensor will be evaluated in the user code server (as traditional sensors are), allowing custom AutomationCondition subclasses to be evaluated. To learn more, view the docs [TODO].

Added a new default_condition parameter to AutomationConditionSensorDefinition. If set, this condition will be used for any assets or asset checks within the selection that do not have an automation condition defined. Requires use_user_code_server to be set.

Copy link
Contributor Author

OwenKephart commented Oct 10, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @OwenKephart and the rest of your teammates on Graphite Graphite

@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from b376815 to bcfa13a Compare October 11, 2024 17:18
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from a6bf7c5 to c727854 Compare October 11, 2024 17:19
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from bcfa13a to 77b6f21 Compare October 11, 2024 19:46
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from c727854 to f1103b3 Compare October 11, 2024 19:46
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from 77b6f21 to b7da539 Compare October 11, 2024 20:02
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from f1103b3 to f1e8a25 Compare October 11, 2024 20:02
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from b7da539 to 1c77116 Compare October 11, 2024 20:49
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from f1e8a25 to daaa074 Compare October 11, 2024 20:49
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from 1c77116 to 653b170 Compare October 11, 2024 22:25
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from 3e9969f to c0492eb Compare October 15, 2024 20:14
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from 4c439b1 to 0d8ea65 Compare October 15, 2024 21:09
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from c0492eb to f49ef30 Compare October 15, 2024 21:09
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from 0d8ea65 to f5ee70a Compare October 16, 2024 23:36
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from f49ef30 to bc611c5 Compare October 16, 2024 23:36
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from f5ee70a to f1f8963 Compare October 16, 2024 23:46
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from bc611c5 to 87e68b4 Compare October 16, 2024 23:46
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from f1f8963 to 74938cc Compare October 17, 2024 00:20
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from 87e68b4 to b3c916d Compare October 17, 2024 00:20
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from 74938cc to 0f34286 Compare October 17, 2024 16:39
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from b3c916d to 32fdc5f Compare October 17, 2024 16:39
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from 0f34286 to 19e62ef Compare October 21, 2024 23:05
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from 32fdc5f to 6ad20cb Compare October 21, 2024 23:05
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from 19e62ef to fcb2e05 Compare October 22, 2024 16:48
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from 6ad20cb to 3aee643 Compare October 22, 2024 16:49
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch 2 times, most recently from 3cc3674 to 48a30da Compare October 22, 2024 17:03
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from 3aee643 to 18f1399 Compare October 22, 2024 17:03
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_update_default_value_of_allow_backfills_to_true branch from 48a30da to 49434bc Compare October 22, 2024 18:01
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from fce0b85 to 363624b Compare October 22, 2024 18:01
Copy link
Contributor Author

OwenKephart commented Oct 22, 2024

Merge activity

  • Oct 22, 4:25 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Oct 22, 4:30 PM EDT: Graphite rebased this pull request as part of a merge.
  • Oct 22, 4:32 PM EDT: A user merged this pull request with Graphite.

@OwenKephart OwenKephart changed the base branch from 10-10-_1.9_update_default_value_of_allow_backfills_to_true to graphite-base/25206 October 22, 2024 20:26
@OwenKephart OwenKephart changed the base branch from graphite-base/25206 to master October 22, 2024 20:27
@OwenKephart OwenKephart force-pushed the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch from 363624b to 696ee35 Compare October 22, 2024 20:29
@OwenKephart OwenKephart merged commit 4692bda into master Oct 22, 2024
1 check was pending
@OwenKephart OwenKephart deleted the 10-10-_1.9_promote_hidden_params_to_top-level_args_in_automationconditionsensordefinition branch October 22, 2024 20:32
Grzyblon pushed a commit to Grzyblon/dagster that referenced this pull request Oct 26, 2024
…ensorDefinition (dagster-io#25206)

## Summary & Motivation

As title -- these should be documented and visible to users.

Open to suggestions on `use_user_code_server` as a name.

## How I Tested These Changes

## Changelog

Added a new `use_user_code_server` paramter to `AutomationConditionSensorDefinition`. If set, the sensor will be evaluated in the user code server (as traditional sensors are), allowing custom `AutomationCondition` subclasses to be evaluated. To learn more, view the docs [TODO].

Added a new `default_condition` parameter to `AutomationConditionSensorDefinition`. If set, this condition will be used for any assets or asset checks within the selection that do not have an automation condition defined. Requires `use_user_code_server` to be set.
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