-
Notifications
You must be signed in to change notification settings - Fork 308
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
Enhances flow get
#5913
base: main
Are you sure you want to change the base?
Enhances flow get
#5913
Conversation
Thank you @MathijsVerbeeck, we'll try to review it soon. |
cc04e86
to
7fefee5
Compare
@martinlingstuyl I've changed your requests. Could you please have another look? |
About that mock file @MathijsVerbeeck, that now seems to contain 14000+ lines. Is it an idea if we use the same json as used in the docs? To get down on the nr of lines? |
That wouldn't cover all 'branches' of code, as we add some things to the response at lines 103-104 in flow-get.ts, so then we wouldn't have all code coverage 😄 |
Ok, I see... maybe we could switch it to a manual trigger though? That would remove quite some code I believe, among other things the whole connectionReferences node. |
We could, yes, but then I perhaps will have to add a part that tests this code manually to the mock. Is that fine? |
@martinlingstuyl PR should be ready to review. I've changed the flow-get mock file. |
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.
Looks fine @MathijsVerbeeck. 👏 Much better like this also in terms of changed lines.
@@ -10,8 +10,10 @@ import { session } from '../../../utils/session.js'; | |||
import { sinonUtil } from '../../../utils/sinonUtil.js'; | |||
import commands from '../commands.js'; | |||
import command from './flow-get.js'; | |||
|
|||
import { flowGetResponse } from './flow-get.mock.js'; | |||
describe(commands.GET, () => { |
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.
Let's add an extra white line above describe
Closes #4683
I did not update the doc file with the entire output of a command, as this can get very long. I ran the command with
--output json
on a very small flow with just four actions and it returned more than 15000 lines of details. This would make the doc file way too large I think.