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

refactor: show warning if API contains optional params only #9843

Merged
merged 6 commits into from
Sep 6, 2023

Conversation

yuqizhou77
Copy link
Contributor

@yuqizhou77 yuqizhou77 commented Sep 5, 2023

  • show warning if API contains optional params only that we won't generate parameters for the command.

image

refactor: msg

refactor: telemetry

refactor: test
@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #9843 (923baab) into dev (a80a9a6) will increase coverage by 0.00%.
Report is 21 commits behind head on dev.
The diff coverage is 90.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #9843   +/-   ##
=======================================
  Coverage   85.51%   85.52%           
=======================================
  Files         440      440           
  Lines       25212    25222   +10     
  Branches     4808     4808           
=======================================
+ Hits        21560    21570   +10     
+ Misses       1931     1930    -1     
- Partials     1721     1722    +1     
Files Changed Coverage Δ
...re/src/component/generator/copilotPlugin/helper.ts 89.34% <81.81%> (-0.46%) ⬇️
...src/component/generator/copilotPlugin/generator.ts 95.95% <100.00%> (+0.40%) ⬆️

... and 17 files with indirect coverage changes

@yuqizhou77 yuqizhou77 marked this pull request as ready for review September 5, 2023 06:06
Alive-Fish
Alive-Fish previously approved these changes Sep 5, 2023
nliu-ms
nliu-ms previously approved these changes Sep 5, 2023
@yuqizhou77 yuqizhou77 dismissed stale reviews from nliu-ms and Alive-Fish via 0879bfe September 5, 2023 06:15
nliu-ms
nliu-ms previously approved these changes Sep 5, 2023
nliu-ms
nliu-ms previously approved these changes Sep 6, 2023
@@ -254,6 +254,8 @@
"core.copilotPlugin.scaffold.summary.warning.teamsManifest.mitigation": "Mitigation: update \"%s\" field in \"%s\".",
"core.copilotPlugin.scaffold.summary.warning.teamsManifest.missingCardTemlate": "Missing \"%s\" in command \"%s\".",
"core.copilotPlugin.scaffold.summary.warning.teamsManifest.missingCardTemlate.mitigation": " Mitigation: create Adaptive Card template in \"%s\" and then update \"%s\" field to the relative path in \"%s\".",
"core.copilotPlugin.scaffold.summary.warning.teamsManifest.missingCommandParameters": "Missing parameters in command \"%s\" as we cannot find any required parameter.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

as we cannot find any required parameter. -> consider to remove? duplicated with the wording before it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@@ -254,6 +254,8 @@
"core.copilotPlugin.scaffold.summary.warning.teamsManifest.mitigation": "Mitigation: update \"%s\" field in \"%s\".",
"core.copilotPlugin.scaffold.summary.warning.teamsManifest.missingCardTemlate": "Missing \"%s\" in command \"%s\".",
"core.copilotPlugin.scaffold.summary.warning.teamsManifest.missingCardTemlate.mitigation": " Mitigation: create Adaptive Card template in \"%s\" and then update \"%s\" field to the relative path in \"%s\".",
"core.copilotPlugin.scaffold.summary.warning.teamsManifest.missingCommandParameters": "Missing parameters in command \"%s\" as we cannot find any required parameter.",
"core.copilotPlugin.scaffold.summary.warning.teamsManifest.missingCommandParameters.mitigation": " Mitigation: add at least one parameter for command \"%s\" in \"%s\". The parameter name should match what defined in \"%s\".",
Copy link
Collaborator

Choose a reason for hiding this comment

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

what defined -> what's defined

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@yuqizhou77 yuqizhou77 merged commit 7313f75 into dev Sep 6, 2023
19 checks passed
@yuqizhou77 yuqizhou77 deleted the yuqzho/warning branch September 6, 2023 10:05
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.

4 participants