cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

Enhances `flow get`

Open MathijsVerbeeck opened this issue 11 months ago • 7 comments

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.

MathijsVerbeeck avatar Mar 13 '24 19:03 MathijsVerbeeck

Thank you @MathijsVerbeeck, we'll try to review it soon.

milanholemans avatar Mar 14 '24 08:03 milanholemans

@martinlingstuyl I've changed your requests. Could you please have another look?

MathijsVerbeeck avatar May 03 '24 19:05 MathijsVerbeeck

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?

martinlingstuyl avatar May 05 '24 20:05 martinlingstuyl

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 😄

MathijsVerbeeck avatar May 05 '24 20:05 MathijsVerbeeck

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.

martinlingstuyl avatar May 05 '24 20:05 martinlingstuyl

We could, yes, but then I perhaps will have to add a part that tests this code manually to the mock. Is that fine?

MathijsVerbeeck avatar May 05 '24 20:05 MathijsVerbeeck

@martinlingstuyl PR should be ready to review. I've changed the flow-get mock file.

MathijsVerbeeck avatar May 17 '24 08:05 MathijsVerbeeck

Merged manually, thank you! 😁

martinlingstuyl avatar Aug 14 '24 19:08 martinlingstuyl