Skip to content

gergo/applicationIdAttach #391

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

Closed
wants to merge 1 commit into from
Closed

Conversation

gjedlicska
Copy link
Collaborator

@gjedlicska gjedlicska commented Feb 28, 2025

Adds application ids to the result metadata

@gjedlicska gjedlicska requested a review from JR-Morgan February 28, 2025 18:04
@gjedlicska gjedlicska changed the base branch from main to v3-dev February 28, 2025 18:04
@@ -332,7 +332,7 @@ def _mark_run(
def attach_error_to_objects(
self,
category: str,
object_ids: Union[str, List[str]],
objects: Union[Base, List[Base]],
Copy link
Contributor

Choose a reason for hiding this comment

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

If we are changing this anyway, I think requiring a List[Base] only is preferable to either a single or a list

raise ValueError(
f"Need atleast one object_id to report a(n) {level.value.upper()}"
)
id_list = object_ids
id_list = [o.id for o in objects]
Copy link
Contributor

Choose a reason for hiding this comment

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

im not a fan of this - partly because we are storing a list of objects as result data contextual to the objects - ids worked well here as there wasn't an inference the developer could make that this could be NEW Base objects.

We don't serialize these objects in the same way as a Send, do we???

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No we do not, good point. We should make sure, that the object is part of the original root object hierarchy.

Copy link
Member

Choose a reason for hiding this comment

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

Are we hoping that these are Base objects that have been received by the automation script?
If so, they should always have an ID, but we should handle the case where the user passes in a Base object that doesn't have an ID. Probably by throwing since that object would not be part of the automation trigger commit.

@gjedlicska gjedlicska marked this pull request as draft April 2, 2025 12:58
@gjedlicska
Copy link
Collaborator Author

closing in favor of #424

@gjedlicska gjedlicska closed this May 27, 2025
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