main
wolfgang555 3 months ago committed by GitHub
parent 446012dfd6
commit ccdb79eb36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      cspell.json
  2. 2
      docker/atlas/README.md
  3. 4
      frontend/infra/idl/idl-parser/__tests__/proto.field.test.ts
  4. 4
      frontend/infra/idl/idl-parser/__tests__/proto.method.test.ts
  5. 4
      frontend/infra/idl/idl-parser/__tests__/proto.service.test.ts
  6. 8
      frontend/infra/idl/idl-parser/__tests__/thrift.field.test.ts
  7. 4
      frontend/infra/idl/idl-parser/__tests__/thrift.function.test.ts
  8. 2
      frontend/infra/idl/idl-parser/__tests__/thrift.service.test.ts
  9. 14
      frontend/infra/idl/idl-parser/__tests__/unify.field.test.ts
  10. 6
      frontend/infra/idl/idl-parser/__tests__/unify.function.test.ts
  11. 4
      frontend/infra/idl/idl-parser/__tests__/unify.service.test.ts
  12. 4
      frontend/packages/studio/workspace/project-publish/src/hooks/use-mcp-config-modal.tsx

@ -51,7 +51,7 @@
"rspack",
"rushstack",
"rushx",
"Seperator",
"Separator",
"Sider",
"slardar",
"stylelint",

@ -48,7 +48,7 @@ On developer machine(I want add/update table for my business)
atlas migrate hash # step 2 if need
atlas migrate status --url $ATLAS_URL --dir "file://migrations" # check status
# Last, dump the lastest database schema for other developer
# Last, dump the latest database schema for other developer
atlas schema inspect -u $ATLAS_URL --exclude "atlas_schema_revisions,table_*" > opencoze_latest_schema.hcl # step 3
## 4. apply migration

@ -18,7 +18,7 @@ import * as t from '../src/proto';
describe('ferry-parser', () => {
describe('proto field', () => {
it('should convert message field extenstions', () => {
it('should convert message field extensions', () => {
const idl = `
syntax = "proto3";
enum Numbers {
@ -83,7 +83,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert message field extenstions using old rules', () => {
it('should convert message field extensions using old rules', () => {
const idl = `
syntax = "proto3";
message Foo {

@ -18,7 +18,7 @@ import * as t from '../src/proto';
describe('ferry-parser', () => {
describe('proto method', () => {
it('should convert method extenstions', () => {
it('should convert method extensions', () => {
const idl = `
syntax = 'proto3';
message BizRequest {}
@ -74,7 +74,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert method extenstions using old rules', () => {
it('should convert method extensions using old rules', () => {
const idl = `
syntax = 'proto3';
message BizRequest {}

@ -18,7 +18,7 @@ import * as t from '../src/proto';
describe('ferry-parser', () => {
describe('proto service', () => {
it('should convert service extenstions', () => {
it('should convert service extensions', () => {
const idl = `
syntax = "proto3";
service Foo {
@ -32,7 +32,7 @@ describe('ferry-parser', () => {
return expect(Foo.extensionConfig).to.eql(expected);
});
it('should convert service extenstions with package', () => {
it('should convert service extensions with package', () => {
const idl = `
syntax = "proto3";
package example;

@ -18,7 +18,7 @@ import * as t from '../src/thrift';
describe('ferry-parser', () => {
describe('thrift field', () => {
it('should convert struct field extenstions', () => {
it('should convert struct field extensions', () => {
const idl = `
enum Numbers {
ONE = 1
@ -82,7 +82,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert union field extenstions', () => {
it('should convert union field extensions', () => {
const idl = `
union Foo {
1: string k1 (api.position = "query")
@ -97,7 +97,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert struct field extenstions using agw specification', () => {
it('should convert struct field extensions using agw specification', () => {
const idl = `
struct Foo {
1: string k1 (agw.source = 'query')
@ -130,7 +130,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert struct field extenstions using golang tag', () => {
it('should convert struct field extensions using golang tag', () => {
const idl = `
struct Foo {
1: string k1 (go.tag = "json:\\"key1\\"")

@ -18,7 +18,7 @@ import * as t from '../src/thrift';
describe('ferry-parser', () => {
describe('thrift function', () => {
it('should convert function extenstions', () => {
it('should convert function extensions', () => {
const idl = `
service Foo {
BizResponse Biz1(1: BizRequest req) (api.uri = '/api/biz1')
@ -57,7 +57,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert function extenstions using agw specification', () => {
it('should convert function extensions using agw specification', () => {
const idl = `
service Foo {
BizResponse Biz1(1: BizRequest req) (agw.uri = '/api/biz1')

@ -18,7 +18,7 @@ import * as t from '../src/thrift';
describe('ferry-parser', () => {
describe('thrift service', () => {
it('should convert service extenstions', () => {
it('should convert service extensions', () => {
const idl = `
service Foo {
} (api.uri_prefix = 'https://example.com')

@ -19,7 +19,7 @@ import { filterKeys } from './common';
describe('unify-parser', () => {
describe('thrift field', () => {
it('should convert struct field extenstions', () => {
it('should convert struct field extensions', () => {
const content = `
enum Numbers {
ONE = 1
@ -90,7 +90,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert union field extenstions', () => {
it('should convert union field extensions', () => {
const content = `
union Foo {
1: string k1 (api.position = "query")
@ -109,7 +109,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert struct field extenstions using agw specification', () => {
it('should convert struct field extensions using agw specification', () => {
const content = `
struct Foo {
1: string k1 (agw.source = 'query')
@ -146,7 +146,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert struct field extenstions using golang tag', () => {
it('should convert struct field extensions using golang tag', () => {
const content = `
struct Foo {
1: string k1 (go.tag = "json:\\"key1\\"")
@ -432,7 +432,7 @@ describe('unify-parser', () => {
});
describe('proto field', () => {
it('should convert message field extenstions', () => {
it('should convert message field extensions', () => {
const content = `
syntax = "proto3";
enum Numbers {
@ -499,7 +499,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert message field extenstions using old rules', () => {
it('should convert message field extensions using old rules', () => {
const content = `
syntax = "proto3";
message Foo {
@ -535,7 +535,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert message field extenstions with error', () => {
it('should convert message field extensions with error', () => {
const content = `
syntax = "proto3";
message Foo {

@ -19,7 +19,7 @@ import { filterKeys } from './common';
describe('unify-parser', () => {
describe('thrift function', () => {
it('should convert function extenstions', () => {
it('should convert function extensions', () => {
const content = `
service Foo {
BizResponse Biz1(1: BizRequest req) (api.uri = '/api/biz1')
@ -62,7 +62,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected);
});
it('should convert function extenstions using agw specification', () => {
it('should convert function extensions using agw specification', () => {
const content = `
service Foo {
BizResponse Biz1(1: BizRequest req) (agw.uri = '/api/biz1')
@ -178,7 +178,7 @@ describe('unify-parser', () => {
});
describe('proto method', () => {
it('should convert method extenstions', () => {
it('should convert method extensions', () => {
const content = `
syntax = 'proto3';
message BizRequest {}

@ -19,7 +19,7 @@ import { filterKeys } from './common';
describe('unify-parser', () => {
describe('thrift service', () => {
it('should convert service extenstions', () => {
it('should convert service extensions', () => {
const fileContent = `
service Foo {
} (api.uri_prefix = 'https://example.com')
@ -41,7 +41,7 @@ describe('unify-parser', () => {
});
describe('proto service', () => {
it('should convert service extenstions', () => {
it('should convert service extensions', () => {
const fileContent = `
syntax = "proto3";
service Foo {

@ -130,7 +130,7 @@ export const UseMcpConfigModal = ({
setVisible(false);
};
const handelConfirm = () => {
const handleConfirm = () => {
setProjectPublishInfo({
connectorPublishConfig: {
...connectorPublishConfig,
@ -178,7 +178,7 @@ export const UseMcpConfigModal = ({
cancelText={I18n.t(
'app_publish_connector_space_mcp_config_dialog_cancel',
)}
onOk={handelConfirm}
onOk={handleConfirm}
>
<div className="text-[12px]">
{I18n.t('app_publish_connector_space_mcp_config_dialog_desc')}

Loading…
Cancel
Save