Repository navigation
feat: add per-record job timeline, requeue and nextInChain - #72
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🚀 Salesforce CI✅ Deployment succeeded✅ All tests passed📦 Workflow run, logs and artifacts 📊 Stats: 440 total | ✅ 440 passed | ❌ 0 failed |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #72 +/- ##
==========================================
+ Coverage 99.19% 99.52% +0.33%
==========================================
Files 33 41 +8
Lines 2225 3188 +963
==========================================
+ Hits 2207 3173 +966
+ Misses 18 15 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Async Jobsrecord page component: chains, chunk runs, delays, failures, chain map and live updates for one record.AsyncRequeuecustom permission.nextInChain()for jobs added from inside a running job (Run after current #68).ChainSequence__cnow always holds run order. NewAddedByCustomJobId__c,DelayMinutes__candNextAttemptAt__conAsyncResult__c.AsyncResultAccessnow also grants the card's controller class, so a viewer needs nothing else.AuraEnabledInnerClassParameter. An inner class as an@AuraEnabledparameter dies with an internal server error under a namespace, before the method runs.dev/.Why
A record had no single place showing what ran, runs or will run for it, and failed steps could not be replayed in order from there (#69). #68 asks for chaining a job next from inside a running job.
Test plan
bash dev/verify/verify.sh staticpassed (prettier, eslint, headers, PMD, Jest 213/213)bash dev/verify/verify.sh fullpassed (419/419, org coverage 94%)bash dev/verify/verify.sh nspassedAsyncResultAccessonly: delayed chain showsDELAYEDthenCOMPLETED, no requeue button, no Aura errorsAsyncRequeueAccess: requeued a failed step, replay completedFiles
force-app/main/default/lwc/asyncJobTimeline/__tests__/asyncJobTimeline.test.jsforce-app/main/default/lwc/asyncJobTimelineModel/__tests__/asyncJobTimelineModel.test.jsforce-app/main/default/lwc/asyncJobTimeline/asyncJobTimeline.jswebsite/.vitepress/theme/components/JobTimelineDemo.vueforce-app/main/default/classes/timeline/AsyncJobTimelineControllerTest.clsforce-app/main/default/lwc/asyncJobStep/__tests__/asyncJobStep.test.jsforce-app/main/default/lwc/asyncJobTimelineModel/asyncJobTimelineModel.jsforce-app/main/default/classes/queue/AsyncResultWriter.clsforce-app/main/default/lwc/asyncJobStep/asyncJobStep.cssforce-app/main/default/lwc/asyncJobSequence/__tests__/asyncJobSequence.test.jsCloses #69
Closes #68