Skip to content
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: remind user remove aadApp/update action #13331

Closed
wants to merge 3 commits into from
Closed

fix: remind user remove aadApp/update action #13331

wants to merge 3 commits into from

Conversation

nliu-ms
Copy link
Contributor

@nliu-ms nliu-ms commented Mar 4, 2025

image

Copy link

codecov bot commented Mar 4, 2025

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.31%. Comparing base (068057a) to head (21bdde6).
Report is 17 commits behind head on dev.

Files with missing lines Patch % Lines
...ackages/fx-core/src/component/driver/aad/create.ts 95.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev   #13331      +/-   ##
==========================================
+ Coverage   90.30%   90.31%   +0.01%     
==========================================
  Files         609      610       +1     
  Lines       36221    36367     +146     
  Branches     7002     7084      +82     
==========================================
+ Hits        32710    32846     +136     
- Misses       1517     1524       +7     
- Partials     1994     1997       +3     
Files with missing lines Coverage Δ
...core/src/component/driver/aad/utility/constants.ts 100.00% <ø> (ø)
...ackages/fx-core/src/component/driver/aad/create.ts 91.35% <95.00%> (+0.14%) ⬆️

... and 21 files with indirect coverage changes

@nliu-ms nliu-ms marked this pull request as ready for review March 4, 2025 09:00
@@ -217,12 +221,18 @@ export class CreateAadAppDriver implements StepDriver {
if (
error.response!.status === 403 &&
message.includes(constants.insufficientPermissionErrorMessage) &&
!isTestToolEnabledProject(context.projectPath)
!isTestToolEnabledProject(context.projectPath) &&
process.env.TEAMSFX_ENV == environmentNameManager.getLocalEnvName()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: why only enable the new feature for local environment now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this feature is targeting for F5 success rate, so I'd like to limit the impact.

logMessageKeys.needManualRemoveAadUpdate,
teamsappYamlPath
);
await context.ui!.showMessage("warn", message, true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we try to update the manifest first before show the warning? user may already has permission to update the app

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, have we reached the UX team to review the experience? We may reach them for feedback if haven't. Asking users to remove a step directly seems a little weird. We probably need to tell them why they need to remove that step and what they need to do before remove.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we try to update the manifest first before show the warning? user may already has permission to update the app

We go into this function, because create API respond 403 error with insufficient permission. Which means user don't have permission to update as well.

@nliu-ms nliu-ms closed this Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants