Skip to content
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

299 bug not getting progressstatus on functions #305

Merged

Conversation

DannyCastroVentura
Copy link
Contributor

PR details

What is the purpose of this pull request? (put an "X" next to an item)

  • Bug fix
  • Before, we were not able to get the loading spinner updated with the refresh's progress status at the retrieve function, this PR fixes that bug.

What changes did you make? (Give an overview)

  • Created a new apex method to get the progress status of a specific result
  • In the LWC used the event that was already there to know when to refresh the table, and added a new subscription to the MC_RESULT event to get the progress status of a specified job execution (using the new apex method)
  • Fixed the unsubscribed bug (before we were getting an error in the developer console every time that the script tried to unsubscribe because it needed 2 parameters, and we were providing only one.

Unsubscribe documentation:
https://developer.salesforce.com/docs/component-library/bundle/lightning-emp-api/documentation

Daniel Ventura added 11 commits November 24, 2022 15:52
… changing mcdo_retrieveTable in order to handle the new method
…ble.js to its previous state, once that this logic wont work, and will try to use the event's logic
…ge the logic as well so it can get the appropriate data, but it still have a bug, it is refreshing the table before the event actually ended
…ssages, and the other to refresh the table once it the retrieve is done. New bug: sometimes the messages get confused with some other job steps (I think)
…g to get message from the older subscriptions as well
JoernBerkefeld and others added 4 commits December 5, 2022 09:58
still buggy; jobProgressWrapper & getJobProgress will be irrelevant when this works
…tus from database but just the latest result id, and use the events to get it basing itself on the retrieved resultId
@JoernBerkefeld
Copy link
Collaborator

confirmed working :)

@JoernBerkefeld
Copy link
Collaborator

JoernBerkefeld commented Dec 5, 2022

events as seen on the org based on our latest solution:

image

during the same time these events were published (applied different filter on console)
image

note:
event test conducted while no other results were running --> overlap not logged here

@JoernBerkefeld JoernBerkefeld merged commit 159e288 into master Dec 5, 2022
@JoernBerkefeld JoernBerkefeld deleted the 299-bug-not-getting-progressstatus-on-functions branch December 5, 2022 14:32
@JoernBerkefeld JoernBerkefeld added this to the 1.3.0 milestone Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants