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

feat: dc with api plugin generator & template update #12104

Merged
merged 14 commits into from
Jul 30, 2024

Conversation

yuqizhou77
Copy link
Contributor

@yuqizhou77 yuqizhou77 commented Jul 30, 2024

  • A new generator for apps with API plugin built with Azure Function.
  • Updated API plugin from scratch with none auth template by combining contents from the original api-plugin-from-scratch and "copilot-gpt-from-scratch-plugin". Will update templates with api key and oauth later. (TODO: will ask PM to review all readmes later.)
  • Updated icons in some templates including templates of copilot extension without source code, bot plugins and api plugin from scratch with none auth.

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

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

Project coverage is 89.45%. Comparing base (fde7aac) to head (3cc9a64).
Report is 11 commits behind head on dev.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##              dev   #12104    +/-   ##
========================================
  Coverage   89.44%   89.45%            
========================================
  Files         570      571     +1     
  Lines       33554    33583    +29     
  Branches     6626     6464   -162     
========================================
+ Hits        30014    30043    +29     
  Misses       1583     1583            
  Partials     1957     1957            
Files Coverage Δ
...-core/src/component/generator/generatorProvider.ts 100.00% <100.00%> (ø)
...src/component/generator/templates/templateNames.ts 96.42% <ø> (ø)
...generator/copilotExtensionFromScratch/generator.ts 96.29% <96.29%> (ø)

... and 1 file with indirect coverage changes

@yuqizhou77 yuqizhou77 changed the title feat: dc with api plugin generator feat: dc with api plugin generator & dc with plugin no auth Jul 30, 2024
@yuqizhou77 yuqizhou77 changed the title feat: dc with api plugin generator & dc with plugin no auth feat: dc with api plugin generator & template update Jul 30, 2024
@yuqizhou77 yuqizhou77 marked this pull request as ready for review July 30, 2024 07:21
huimiu
huimiu previously approved these changes Jul 30, 2024
hund030
hund030 previously approved these changes Jul 30, 2024
isDeclarativeCopilot = "is-declarative-copilot",
}

export class ApiPluginFromScratchGenerator extends DefaultTemplateGenerator {
Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to add a property named componentName. So that we can distinguish the telemetry events that are from this generator.

isDeclarativeCopilot = "is-declarative-copilot",
}

export class ApiPluginFromScratchGenerator extends DefaultTemplateGenerator {
Copy link
Member

Choose a reason for hiding this comment

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

A small suggestion: can we call it CopilotExtensionGenerator?

Copy link
Contributor Author

@yuqizhou77 yuqizhou77 Jul 30, 2024

Choose a reason for hiding this comment

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

I want to differentiate it from the SpecGenerator in apispec folder. so maybe copilotExtensionFromScrathGenerator?

Copy link
Member

Choose a reason for hiding this comment

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

Sure, my concern is this generator is not only for the API Plugin

Alive-Fish
Alive-Fish previously approved these changes Jul 30, 2024
@yuqizhou77 yuqizhou77 requested a review from hund030 July 30, 2024 08:38
@yuqizhou77 yuqizhou77 merged commit 64f90bb into dev Jul 30, 2024
17 of 18 checks passed
@yuqizhou77 yuqizhou77 deleted the yuqzho/dc-plugin-none-auth branch July 30, 2024 08:40
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