Skip to content

Commit

Permalink
Support hierarchy subpath (#2080)
Browse files Browse the repository at this point in the history
* inital-commit-of-hierarchy-support

* add model namespace name

* reserve work

* revert change in openai modular as of openai generic

* generate operations

* add classical operation hierarchy layers and reserve work

* organize classic operation as hierarchy layered

* change typespec to have simpler names

* resolve operation conflicts with full namespace path

* add namespace prefix for model only when conflicts

* add edge case for model and operation name conflicts and resolve model conflicts if detect

* enableModelNamespace as true for anomaly detector

* fix hierarchy layer info bug

* do not rename in Modular but rename in RLC if hierarchy client and conflict exists

* fix model conflicts detect condition

* update edge case generation

* update package.json with hierarchy subpath

* manual change for export the operation interface

* reserve work

* generate options in a centralized place

* update generated code for edge case

* loadtesting-with-hierarchy-false (#9)

* loadtesting-with-hierarchy-false

* do not return namespace hierarchies

* use interface name when enable operation group in rlc

* fix package.json

* update generic generated files with just pure import order change (#10)

* loadtesting-with-hierarchy-false

* do not return namespace hierarchies

* use interface name when enable operation group in rlc

* fix package.json

* update generic generated files just import order chaneg

* disable-hierarchy-client-and-not-introduce-extra-changes (#11)

* disable-hierarchy-client-and-not-introduce-extra-changes

* fix model import issues

* reserve work

* reserve work

* fix hierarchy layer overload

* fix generation failure

* fall back to enableOperationGroup logic if hierarchyClient is false

* fix package.json and api layer export

* fix smoke-test

* fix lint error

* tryfix ci

* add operation group name back if hierarchy client is false

* use operation group name if hierarchy client is false

* rename operation if enableOperationGroup true and hierarchyClient false

* do not include operation group name duplicated

* only return interface name when enableOperationGroup true and hierarchyClient false

* disable hierarchyClient for chatApi

* Update packages/typespec-test/test/chatApi_modular/generated/typespec-ts/package.json

* Update packages/typespec-test/test/loadtesting_modular/tspconfig.yaml

* enableOperationGroup for service with operationGroup decorator

* to not get namespace hierarchy if hierarchyClient is false (#12)

* hierarchy-namespace-in-client-tsp

* fix client structure with operations

* update smoke-test

* undo enable operation group for clients
  • Loading branch information
qiaozha committed Nov 4, 2023
1 parent ba18c89 commit 7b641fe
Show file tree
Hide file tree
Showing 228 changed files with 7,595 additions and 4,282 deletions.
2 changes: 2 additions & 0 deletions packages/rlc-common/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ export interface RLCOptions {
sourceFrom?: "TypeSpec" | "Swagger";
isModularLibrary?: boolean;
enableOperationGroup?: boolean;
enableModelNamespace?: boolean;
hierarchyClient?: boolean;
}

export interface ServiceInfo {
Expand Down
Loading

0 comments on commit 7b641fe

Please sign in to comment.