-
Couldn't load subscription status.
- Fork 287
perf(quick-actions): eliminate duplicate api calls for each envelope #11945
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
base: main
Are you sure you want to change the base?
Conversation
8be1b55 to
c94ffa6
Compare
|
Ci needs some tweaking |
Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>
c94ffa6 to
94959ca
Compare
| } else { | ||
| this.localAction = { ...action } | ||
| this.actions = await findAllStepsForAction(action.id) | ||
| this.localAction = { id: action.id, name: action.name, accountId: action.accountId } |
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.
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.
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.
we need specific properties from the Object
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.
can you elaborate? what I see above we map three properties to identical properties.
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.
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.
fix #11746