Skip to content

Cmd results #13

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

Merged
merged 20 commits into from
Jun 30, 2020
Merged

Cmd results #13

merged 20 commits into from
Jun 30, 2020

Conversation

antazoey
Copy link

@antazoey antazoey commented Jun 29, 2020

This is the new way we are supposed to return stuff from Commands. The old way is deprecated and I was asked to change it. There are no changes in usage.

Also squeezes in some missing changelog entries (the only breaking changes). Which by the way could cause problems for us.

@alanag13
Copy link

can you an alias an output? i this breaking is going to cause us problems, I'd rather just point the old to the new.

@antazoey
Copy link
Author

@alanag13 You were right, this is what they want.

Juliya Smith added 2 commits June 29, 2020 22:00
@antazoey antazoey requested a review from kiran-chaudhary June 30, 2020 13:01
file_results = CommandResults(
outputs_prefix="File", outputs_key_field=None, outputs=file_context
)
return code42_results, file_results
Copy link
Author

@antazoey antazoey Jun 30, 2020

Choose a reason for hiding this comment

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

@kiran-chaudhary The way it is set up, these commands are allowed to return 1 or more CommandResults objects. This command is the only one that returns more than one. The reason for this is because they have different outputs_prefix properties, which is important when digging through Incident Context looking at the Outputs - and mapping outputs to different things, etc. Our integration modifies the system "File" outputs (line 744) as well as our own custom-defined Code42 outputs.

Choose a reason for hiding this comment

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

Thanks.

Juliya Smith added 2 commits June 30, 2020 13:04
Copy link

@kiran-chaudhary kiran-chaudhary left a comment

Choose a reason for hiding this comment

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

LGTM

@antazoey antazoey merged commit fb18ea4 into master Jun 30, 2020
@antazoey antazoey deleted the CmdResults branch June 30, 2020 13:30
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.

3 participants