-
Notifications
You must be signed in to change notification settings - Fork 324
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
Adds support for interactive mode for disambiguation prompts. Closes #5053 #5192
Adds support for interactive mode for disambiguation prompts. Closes #5053 #5192
Conversation
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.
Hi @Adam-it, what a great and huge job this is! You rock! 🎉 of course this can't go without a few comments, but I trust you already expected that 🤙
Thanks @martinlingstuyl for the awesome review. I will amend those and add the missing 3 commands from the issue |
I didn't:
|
sorry @martinlingstuyl for reposting but did you see my last response? is that acceptable for you? |
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.
Hi @Adam-it, it's been a while, but I'm back reviewing 😁 I'm having some additional feedback on the implementation here, I added some suggestions.
I'm interested to hear what you think of it!
Oh, and also: could you fix the merge conflict as well? thanks in advance! |
7e613d0
to
6495590
Compare
6495590
to
896a2c2
Compare
@martinlingstuyl ready for another round? 🙂 |
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.
Hi @Adam-it,
Ok so I went through all the files. There's quite some places where an array item is being updated.
That's a quick solution, but i do have code-smell feelings about that. 😄 I think we better just return the data at once.
What do you think? Do you Agree with me on this?
If you rebase on the latest main you'll also get my PR with listiteminstance ID deletions. They are in 8 files or so. Could you make sure those are executed above the code of the prompt?
There are quite some comments, but we're getting close now. 😉
src/m365/aad/commands/m365group/m365group-recyclebinitem-remove.ts
Outdated
Show resolved
Hide resolved
src/m365/aad/commands/approleassignment/approleassignment-add.ts
Outdated
Show resolved
Hide resolved
Sure. Not actually sure why I did the overwrites 🤔 but if it will work ok I will update the code
👍
@martinlingstuyl did you also:
sorry for the additional questions but we aim to have it as part of v7 together with making interactive as default and I would like to avoid more turn arounds if possible 🙂 also @martinlingstuyl could you recheck your comments and add a bit more clarity to them 🙏. BTW thanks for another extensive review and sorry for a hard PR to handle 😉 |
@martinlingstuyl I saw you answered to one comment but did you notice the other answer as well? Also please double check the above so we may try to point out all required changes in a single (I hope last 😅) go instead of having a couple of turnarounds for a single comment which result every time in refactoring 100 files 😜🙂 |
Hi @Adam-it, I did a random spot check, so I did not execute all commands. Seeing the amount of commands and things I'd need to set up here to make that happen that seemed too much. But I did enough to be confident of your work. I also checked the tests of course. I understand you don't want too many turnarounds. The reason this happened is that the first few turnarounds were quite big redirections in my eyes, so I gave it back to you without checking everything, as too much was going to change as it was. I'm confident we'll make it in time though. 👍 |
Ok good news and thanks for the confirmation. I started to get the impression that you come back with always a single find which in general is fine for me 🙂 but in this PR every change is a couple hour/100+ files refactor + rebase hell 😅. And it's hard for me to plan other stuff to do over the weekend if this returns multiple times instead of one or two 🙂. Ok I will start working on those review comments. Please also double check my answers what was the intention: return object (hard part) or wrap around () and return .id (easy) 🙏 |
Hi @Adam-it, yes I get your point. 👍 We could have done one iteration less if I'd seen the message/errorMessage sooner. sorry for that 🙏
I think I responded on one of the comments. to repeat: Also: I made some mistakes in my suggestions (returning an entire object instead of just the property) you've already discovered that. Just fix those as you see fit. Across the board there are two issues I'm commenting on:
Feel free to ignore the last. |
Sir yes sir 🙂👍. |
@martinlingstuyl ready for another go 👍 |
Check, I'll review it asap! |
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.
Great work @Adam-it, will merge it soon.
🎉 Merged manually, thank you!! |
Adds support for interactive mode for disambiguation prompts.
Linked Issue
Closes: #5053
Result
prompt.mp4