-
Notifications
You must be signed in to change notification settings - Fork 331
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
New command: Assign role with administrative unit scope. Closes #5671 #5678
New command: Assign role with administrative unit scope. Closes #5671 #5678
Conversation
Great work @MartinM85, we'll review asap! |
…ive-unit # Conflicts: # docs/src/config/sidebars.ts # src/m365/aad/commands.ts
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 start! Let's do a couple adjustments before we continue
src/m365/aad/commands/administrativeunit/administrativeunit-roleassignment-add.ts
Outdated
Show resolved
Hide resolved
src/m365/aad/commands/administrativeunit/administrativeunit-roleassignment-add.ts
Outdated
Show resolved
Hide resolved
src/m365/aad/commands/administrativeunit/administrativeunit-roleassignment-add.ts
Outdated
Show resolved
Hide resolved
src/m365/aad/commands/administrativeunit/administrativeunit-roleassignment-add.ts
Outdated
Show resolved
Hide resolved
src/m365/aad/commands/administrativeunit/administrativeunit-roleassignment-add.ts
Outdated
Show resolved
Hide resolved
src/m365/aad/commands/administrativeunit/administrativeunit-roleassignment-add.spec.ts
Outdated
Show resolved
Hide resolved
src/m365/aad/commands/administrativeunit/administrativeunit-roleassignment-add.spec.ts
Outdated
Show resolved
Hide resolved
src/m365/aad/commands/administrativeunit/administrativeunit-roleassignment-add.spec.ts
Outdated
Show resolved
Hide resolved
src/m365/aad/commands/administrativeunit/administrativeunit-roleassignment-add.spec.ts
Outdated
Show resolved
Hide resolved
Thank you for a quick turnaround @MartinM85, I'll have another look 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.
Hey @MartinM85, it seems like your fork got out of date and we're getting a bunch of merge conflicts when trying to rebase it. Could you please sync the latest changes from upstream main and ensure that everything is working as intended before we merge it? I appreciate your help.
Hi @waldekmastykarz, merged with the latest |
Thanks, I'll have a look |
Hey @MartinM85, unfortunately, I'm still getting merge conflicts when rebasing your PR. Have you followed the steps outlined in: https://github.com/pnp/cli-microsoft365/blob/main/CONTRIBUTING.md#tips |
Hi @waldekmastykarz, I'm using TortoiseGit, but doing the same. Sync my fork main with upstream main. Then merge my local main into local feature/5671-add-role-assignment-administrative-unit and pull feature/5671-add-role-assignment-administrative-unit. It shows me that I'm up-to-date with local main and upstream main |
@MartinM85, I don't think we can merge this one first, unfortunately. The AAD-to-Entra rename must be merged as soon as possible, otherwise we'll run into more merge conflicts before long. I'll be merging it tonight, which will require you to rebase on main. Sorry for the inconvenience 😅 |
Our instructions mention rebase instead of merge. They're not quite the same. Merge adds a new merge commit merging your work with the latest changes. Rebase, brings in the latest commits in first and adds your changes on top, which is what we're doing when processing PRs and why we're getting merge conflicts. |
By the way @MartinM85, aside from the current merge conflicts: If you need our help fixing the merge conflicts that arise from the rename: we're perfectly willing to help you out there, as it's not your fault that this PR breaks yours... |
@martinlingstuyl I think, I can deal with merge conflicts, but main issue is that I'm merging upstream main into my fork main instead of rebasing and it causes conflicts on Waldek site. Now, I'm not sure what can be done on my side to fix it. |
Yeah, because you merged in between it 's going to be rough going. If you want my advice, I'd probably try cherry picking your commits in a new branch based on main. Or just copy the file contents. |
I was thinking that after merging #5663 it would be better to create a new branch for #5678 and copy files related to #5678 and create a new PR. https://github.com/pnp/cli-microsoft365/blob/main/CONTRIBUTING.md#tips describe a case when you create a new feature branch, but not the case when you need to rebase the feature branch to be up-to-date with upstream main. |
That's on us, sorry. If you've got some work in progress, and want to update it with the latest changes from upstream:
After resolving conflicts, run:
|
That's also fine!
Ah, yes, I see what you mean. What's missing is that you need to rebase your feature branch on the main branch after syncing main. git switch main
# Fetch all the change from upstream
git fetch upstream
# Rebase them into your branch
git pull --rebase upstream main
git switch feature-branch
git rebase main |
I'm closing this PR due to too many changes in main. |
Closes #5671