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

perf: spec-parser to separate package #10842

Merged
merged 43 commits into from
Feb 18, 2024
Merged

perf: spec-parser to separate package #10842

merged 43 commits into from
Feb 18, 2024

Conversation

KennethBWSong
Copy link
Contributor

No description provided.

KennethBWSong and others added 30 commits January 25, 2024 16:29
Co-authored-by: turenlong <rentu@microsoft.com>
* perf: add test files

* perf: update test
* test: add browser test

* perf: remove useless code
Co-authored-by: turenlong <rentu@microsoft.com>
* ci: add ci for spec-parser

* test: update test

* test: update test

* test: update dependency
* ci: add cd for spec parser

* fix: fix pacakge

* test: fix ut
* perf: try to fix browser lib issue

* perf: add missing constant export

---------

Co-authored-by: turenlong <rentu@microsoft.com>
* perf: add format for spec parser

* fix: add eslint file

* build: update lock file
* perf: add license and update package.json

* ci: update version
Co-authored-by: turenlong <rentu@microsoft.com>
Co-authored-by: turenlong <rentu@microsoft.com>
* perf: add test files

* perf: update test
* test: add browser test

* perf: remove useless code
Co-authored-by: turenlong <rentu@microsoft.com>
* ci: add ci for spec-parser

* test: update test

* test: update test

* test: update dependency
* ci: add cd for spec parser

* fix: fix pacakge

* test: fix ut
* perf: try to fix browser lib issue

* perf: add missing constant export

---------

Co-authored-by: turenlong <rentu@microsoft.com>
* perf: add format for spec parser

* fix: add eslint file

* build: update lock file
@KennethBWSong KennethBWSong changed the title Spec parser perf: spec-parser to separate package Feb 6, 2024
if (!newPaths[path]) {
newPaths[path] = { ...unResolveSpec.paths[path] };
for (const m of ConstantString.AllOperationMethods) {
delete (newPaths[path] as any)[m];

Check warning

Code scanning / CodeQL

Prototype-polluting assignment Medium

This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
library input
.
}
}

(newPaths[path] as any)[methodName] = (unResolveSpec.paths[path] as any)[methodName];

Check warning

Code scanning / CodeQL

Prototype-polluting assignment Medium

This assignment may alter Object.prototype if a malicious '__proto__' string is injected from
library input
.
config.set(karmaConfig);
};

function getTestFiles(argv) {

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused function getTestFiles.
"stream-http": "^3.2.0",
"swagger2openapi": "^7.0.8",
"url": "^0.11.3",
"webpack": "^5.90.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

webpack is a deps? not devDeps?

Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Attention: 43 lines in your changes are missing coverage. Please review.

Comparison is base (e7f19de) 86.88% compared to head (87e221b) 87.17%.
Report is 74 commits behind head on dev.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev   #10842      +/-   ##
==========================================
+ Coverage   86.88%   87.17%   +0.29%     
==========================================
  Files         451      461      +10     
  Lines       26644    27335     +691     
  Branches     5332     5513     +181     
==========================================
+ Hits        23149    23829     +680     
+ Misses       1768     1759       -9     
- Partials     1727     1747      +20     
Files Coverage Δ
packages/cli/src/commands/engine.ts 89.86% <100.00%> (ø)
packages/cli/src/constants.ts 100.00% <ø> (ø)
...ages/fx-core/src/common/local/packageJsonHelper.ts 88.23% <100.00%> (-0.66%) ⬇️
packages/fx-core/src/common/telemetry.ts 98.11% <100.00%> (+0.01%) ⬆️
packages/fx-core/src/common/tools.ts 78.23% <100.00%> (ø)
...s/fx-core/src/component/constant/commonConstant.ts 100.00% <100.00%> (ø)
...core/src/component/developerPortalScaffoldUtils.ts 87.73% <ø> (-0.15%) ⬇️
...e/src/component/driver/aad/utility/aadAppClient.ts 92.20% <100.00%> (+0.20%) ⬆️
...ages/fx-core/src/component/driver/apiKey/create.ts 90.62% <ø> (-0.15%) ⬇️
...component/driver/botFramework/createOrUpdateBot.ts 94.18% <ø> (-0.14%) ⬇️
... and 31 more

... and 2 files with indirect coverage changes

@KennethBWSong KennethBWSong marked this pull request as ready for review February 8, 2024 01:09
@KennethBWSong KennethBWSong merged commit e2f9e98 into dev Feb 18, 2024
22 checks passed
@KennethBWSong KennethBWSong deleted the spec-parser branch February 18, 2024 05:34
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