-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
fix: Show actual execution data for production executions even if pin data exists #6302
fix: Show actual execution data for production executions even if pin data exists #6302
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
Files matching
Files matching
Files matching
Files matching
Files matching
Make sure to check off this list before asking for review. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #6302 +/- ##
==========================================
- Coverage 27.65% 27.65% -0.01%
==========================================
Files 2948 2948
Lines 180860 180927 +67
Branches 19642 19648 +6
==========================================
+ Hits 50019 50033 +14
- Misses 130094 130147 +53
Partials 747 747
☔ View full report in Codecov by Sentry. |
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.
Confirmed working!
expect(result).toBe(true); | ||
}); | ||
|
||
it('should return true if active execution is set and mode is manual', async () => { |
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.
it('should return true if active execution is set and mode is manual', async () => { | |
it('should return true if active execution is set and mode is manual', () => { |
expect(result).toBe(true); | ||
}); | ||
|
||
it('should return false if active execution is set and mode is not manual', async () => { |
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.
it('should return false if active execution is set and mode is not manual', async () => { | |
it('should return false if active execution is set and mode is not manual', () => { |
}); | ||
} | ||
if (shouldReplaceInputDataWithPinData()) { | ||
const parentPinData = parentNode.reduce((acc: INodeExecutionData[], parentNodeName, index) => { |
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.
const parentPinData = parentNode.reduce((acc: INodeExecutionData[], parentNodeName, index) => { | |
const parentPinData = parentNode.reduce<INodeExecutionData[]>((acc, parentNodeName, index) => { |
@@ -3604,6 +3604,8 @@ export default defineComponent({ | |||
type: 'error', | |||
}); | |||
} | |||
} else if (json && json.command === 'setActiveExecution') { |
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.
} else if (json && json.command === 'setActiveExecution') { | |
} else if (json?.command === 'setActiveExecution') { |
export function shouldReplaceInputDataWithPinData() { | ||
const workflowsStore = useWorkflowsStore(); | ||
return ( | ||
!workflowsStore.activeWorkflowExecution || | ||
(workflowsStore.activeWorkflowExecution && | ||
workflowsStore.activeWorkflowExecution.mode === 'manual') | ||
); | ||
} |
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.
Or shorter:
export function shouldReplaceInputDataWithPinData() {
const { activeWorkflowExecution } = useWorkflowsStore();
return !activeWorkflowExecution || activeWorkflowExecution?.mode === 'manual';
}
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 could make this a getter in the workflows store? To avoid adding to mixins.
✅ All Cypress E2E specs passed |
✅ All Cypress E2E specs passed |
* master: fix(editor): Fix an issue with connections breaking during renaming (#6358) fix(core): Upgrade @n8n_io/riot-tmpl (no-changelog) (#6357) fix: Show actual execution data for production executions even if pin data exists (#6302) fix: Improve executions list polling performance (#6355) refactor: Revert 30k stars banner (no-changelog) (#6347) refactor: Add deprecation notice for basic auth and JWT auth (#6349) fix: Prevent redirect when outside of executions home (no-changelog) (#6305)
Got released with |
No description provided.