Skip to content

Conversation

@hamza221
Copy link
Contributor

@hamza221 hamza221 commented Oct 20, 2025

fix #11746

@hamza221 hamza221 self-assigned this Oct 20, 2025
@hamza221 hamza221 changed the title perf(quick-actions): eliminate dublicate api calld for each envelope perf(quick-actions): eliminate duplicate api calls for each envelope Oct 21, 2025
@hamza221 hamza221 marked this pull request as ready for review October 21, 2025 17:43
@hamza221
Copy link
Contributor Author

Ci needs some tweaking

Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>
} else {
this.localAction = { ...action }
this.actions = await findAllStepsForAction(action.id)
this.localAction = { id: action.id, name: action.name, accountId: action.accountId }
Copy link
Member

Choose a reason for hiding this comment

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

is there no generic way to clone an object in vue? the manual destruct/construct is fragile. when we change properties of the object we have to keep this line in sync.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we need specific properties from the Object

Copy link
Member

Choose a reason for hiding this comment

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

can you elaborate? what I see above we map three properties to identical properties.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I meant the object contains both quickActions and action steps to avoid multiple requests to the servers
so it looks like {id, name, accountId, actionsSteps : [array of steps] }
I split them back here so I don't break the CRUD logic for both
If you look at the next line you will see that I'm also storing the steps in a local variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loading quick action steps triggers one xhr request per message/envelope

2 participants