-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: add the action's ID to the ActionEvent object #1124
Conversation
…UID environment variable.
Also add a basic test. Also dump the ability to specify the ID in Harness, that doesn't seem useful.
@@ -1057,10 +1057,10 @@ class BoundStoredState: | |||
if TYPE_CHECKING: | |||
# to help the type checker and IDEs: | |||
@property | |||
def _data(self) -> StoredStateData: ... # noqa, type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This, and the next change, are drive-bys. I weirdly get ruff complaining about these but only some of the time that it's run (I haven't dug into why that is). They do not seem to be necessary, so simplest to just remove.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me -- thanks for this!
This PR exposes the
JUJU_ACTION_UUID
environment variable's value asActionEvent.id
.Fixes #1121