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

Feature/grpc support #481

Merged
merged 145 commits into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
686ecf1
adding transport client type to service configuration options. Adding…
just-at-uber May 9, 2022
61c8d84
remake package lock
just-at-uber May 9, 2022
a300a12
updating idl to copy thrift and grpc definitions.
just-at-uber May 9, 2022
00e195b
setup grpc client for domainAPI
just-at-uber May 9, 2022
5d6a859
refactoring code. include list domains API call
just-at-uber May 9, 2022
a78314e
switch to grpcjs. added request. updated base service to be a class.
just-at-uber May 10, 2022
27faca4
added lodash helpers for format conversion. formatting payload and re…
just-at-uber May 10, 2022
b31b1b4
fixing response to parse binary to string.
just-at-uber May 10, 2022
8b5bea0
cleaning up unused code
just-at-uber May 10, 2022
1b31993
fix console log to print object correctly. need to format responses p…
just-at-uber May 10, 2022
0186215
adding optional formatter per API. added formatListDomains.
just-at-uber May 10, 2022
0befc4d
formatting duration into days. removing unused failoverInfo. allowing…
just-at-uber May 10, 2022
23aa6aa
got domain list working in UI
just-at-uber May 11, 2022
af085c3
updating format domain also
just-at-uber May 11, 2022
7725af5
added DescribeDomain API
just-at-uber May 11, 2022
275b076
got open workflows returning now.
just-at-uber May 13, 2022
882891f
got closed workflows working also.
just-at-uber May 13, 2022
f04eef4
got archived workflow list displaying
just-at-uber May 13, 2022
3802986
added describe workflow api for grpc
just-at-uber May 13, 2022
c9a63b2
working through get history API grpc support
just-at-uber May 13, 2022
2ea7ec2
moving logic into helper to make it easier to use.
just-at-uber May 16, 2022
7ba69a5
adding describe task list to grpc
just-at-uber May 20, 2022
b67ba24
fix close status on summary screen.
just-at-uber May 20, 2022
1d53424
avoid using map
just-at-uber May 20, 2022
8bdcdd6
moving away from big single file into multi single small files
just-at-uber May 24, 2022
8ad9fa9
moving format input into helper. adding more properties.
just-at-uber May 25, 2022
0181f0b
added JSON support for input property
just-at-uber May 25, 2022
ebf2778
renamed formatInput to formatPayload as a generic payload format hand…
just-at-uber May 25, 2022
106660c
refactored formatMemo to reusable formatPayloadMap. reused for search…
just-at-uber May 25, 2022
bcd07f6
moving formatPayload and formatPayloadMap up to be more reusable. sma…
just-at-uber May 25, 2022
0254b94
added formatters for DecisionTaskScheduled and DecisionTaskStarted
just-at-uber May 25, 2022
fd20454
add formatter for DecisionTaskCompleted
just-at-uber May 25, 2022
c655cca
added formatter for retry policy. added formatter for activity task s…
just-at-uber May 25, 2022
9a55a11
formatter for ActivityTaskStarted
just-at-uber May 25, 2022
97b3a3e
add formatter for ActivityTaskCompleted
just-at-uber May 25, 2022
da2a345
formatter for WorkflowExecutionCompleted
just-at-uber May 25, 2022
785910f
Added formatter for MarkerRecorded and WorkflowExecutionContinuedAsNew
just-at-uber May 25, 2022
364eb4e
formatter for upsertWorkflowSearchAttributesEventAttributes
just-at-uber May 25, 2022
c285c19
Added formatter for TimerStartedEventAttributes
just-at-uber May 25, 2022
3c9cad0
adding formatter for TimerFiredEventAttributes
just-at-uber May 25, 2022
d66058a
startChildWorkflowExecutionInitiatedEventAttributes formatter
just-at-uber May 25, 2022
a2efb34
formatter for ChildWorkflowExecutionStarted
just-at-uber May 26, 2022
9a1f904
formatter for SignalExternalWorkflowExecutionInitiated
just-at-uber May 26, 2022
2b45d97
formatter for ExternalWorkflowExecutionSignaled
just-at-uber May 26, 2022
14423c6
formatter for WorkflowExecutionSignaled
just-at-uber May 26, 2022
6ea2568
formatter for ChildWorkflowExecutionCompletedEventAttributes
just-at-uber May 26, 2022
98408d2
formatter for RequestCancelExternalWorkflowExecutionInitiatedEventAtt…
just-at-uber May 26, 2022
84da845
formatter for externalWorkflowExecutionCancelRequestedEventAttributes
just-at-uber May 26, 2022
5496e38
formatter for ChildWorkflowExecutionCanceledEventAttributes
just-at-uber May 26, 2022
f546c31
formatter for workflowExecutionCanceled
just-at-uber May 27, 2022
f944f6a
formatter for workflowExecutionCancelRequestedEventAttributes
just-at-uber May 27, 2022
59eb37c
formatter for TimerCanceledEventAttributes
just-at-uber May 27, 2022
352f205
formatter for ActivityTaskTimedOutEventAttributes
just-at-uber May 31, 2022
1712b31
formatter for DecisionTaskFailedEventAttributes
just-at-uber May 31, 2022
e10988d
formatter for activityTaskFailedEventAttributes
just-at-uber May 31, 2022
d899f50
fix bug where object is unavailable. making sure any other objects ar…
just-at-uber May 31, 2022
c104ca6
adding list workflow API
just-at-uber May 31, 2022
e531f2a
document how many events left to be implemented
just-at-uber May 31, 2022
8be4689
formatter for workflowExecutionFailedEventAttributes
just-at-uber May 31, 2022
713cffb
formatter for decisionTaskTimedOutEventAttributes
just-at-uber May 31, 2022
420c793
formatter for formatActivityTaskCancelRequestedEventAttributes
just-at-uber Jun 1, 2022
cb3ae6c
formatter for request-cancel-activity-task-failed-event-attributes
just-at-uber Jun 1, 2022
0f9e834
formatter for ActivityTaskCanceledEventAttributes
just-at-uber Jun 1, 2022
5b63eaa
formatter for CancelTimerFailedEventAttributes
just-at-uber Jun 1, 2022
cb47f1d
formatter for WorkflowExecutionTerminatedEventAttributes
just-at-uber Jun 1, 2022
a4de61f
formatter for RequestCancelExternalWorkflowExecutionFailedEventAttrib…
just-at-uber Jun 1, 2022
932c7eb
formatter for formatStartChildWorkflowExecutionFailedEventAttributes.…
just-at-uber Jun 1, 2022
5a689b1
formatter for formatChildWorkflowExecutionFailedEventAttributes
just-at-uber Jun 1, 2022
bf68a91
formatter for childWorkflowExecutionTimedOutEventAttributes
just-at-uber Jun 1, 2022
1c859d7
formatter for childWorkflowExecutionTerminatedEventAttributes
just-at-uber Jun 1, 2022
0084c23
formatter for signalExternalWorkflowExecutionFailedEventAttributes
just-at-uber Jun 1, 2022
3ea94ad
cleanup
just-at-uber Jun 1, 2022
6c99ff6
hooking up query. Currently grpc endpoint returns error.
just-at-uber Jun 1, 2022
5d8b7ac
moved format payload to higher level. fixed query response to format …
just-at-uber Jun 1, 2022
cb82a1d
move format payload map up one level for consistency
just-at-uber Jun 1, 2022
cdb6b5e
removing unused API endpoints
just-at-uber Jun 1, 2022
d4234bb
hook up tasklist partition API
just-at-uber Jun 1, 2022
e6febd9
add exportHistory API
just-at-uber Jun 1, 2022
7b2059e
fix error handling to return actual error
just-at-uber Jun 1, 2022
9ebb21e
add terminate API
just-at-uber Jun 1, 2022
62d9030
upgrading eslint in order to support optional chaining
just-at-uber Jun 1, 2022
7068109
Merge branch 'master' into feature/grpc-support
just-at-uber Jun 2, 2022
1e7a8cb
repairing package lock after merge
just-at-uber Jun 2, 2022
6d9f47d
mocking describe cluster request until its supported from cadence-idl…
just-at-uber Jun 2, 2022
ac21b69
fix lint
just-at-uber Jun 2, 2022
203b61f
fixing unit tests
just-at-uber Jun 2, 2022
97ca441
refactoring cadence frontend simulator to better handle grpc
just-at-uber Jun 2, 2022
9378d46
more refactoring of mock tchannel. also making sure tchannel tests ar…
just-at-uber Jun 2, 2022
3faed8c
switching back to grpc
just-at-uber Jun 2, 2022
a4cee58
first test now passing. need to clean up alittle bit before expanding…
just-at-uber Jun 3, 2022
eb0d05b
changing test mocks to switch depending on transport type configured.
just-at-uber Jun 3, 2022
f67d6a9
fixed 1 more test
just-at-uber Jun 3, 2022
b35770a
modifying test to avoid having wierd formatter
just-at-uber Jun 6, 2022
b0ddaa6
implement interface to close server and client in integration tests g…
just-at-uber Jun 6, 2022
bc47ea4
removing unused references to server and client.
just-at-uber Jun 6, 2022
f8b7a79
working on error handling in integration tests
just-at-uber Jun 6, 2022
e8cd1f3
listing all codes. setting correct code for test.
just-at-uber Jun 6, 2022
bb3c44b
working on getting grpc to map to correct error type
just-at-uber Jun 6, 2022
f237162
successfully map error to frontend
just-at-uber Jun 6, 2022
cfab99f
fix lint
just-at-uber Jun 6, 2022
2409dd5
modify test to match what real server would send to client rather tha…
just-at-uber Jun 6, 2022
7c19205
adding query workflow test. updating mock grpc to support workflow se…
just-at-uber Jun 6, 2022
e8620e3
fix lint
just-at-uber Jun 6, 2022
21db49f
updating query response to return base64 string. updated test to supp…
just-at-uber Jun 6, 2022
c0d1db6
grpc error handling test
just-at-uber Jun 6, 2022
007ad6f
adding grpc support for task list test
just-at-uber Jun 6, 2022
2f84bfd
changing grpc response for terminate to return no content instead of …
just-at-uber Jun 6, 2022
7fd8b79
add formatter for SignalWorkflowExecution. Updated test to support grpc
just-at-uber Jun 6, 2022
9d9f677
adding history tests. disabling other tests temporarily.
just-at-uber Jun 6, 2022
6a8323d
added another history test to grpc. tweaked history response to match…
just-at-uber Jun 6, 2022
2fee4e9
add another history test. slightly tweaked formatter to work with test.
just-at-uber Jun 6, 2022
c19d659
added another history test for grpc. tweaked implementation of timest…
just-at-uber Jun 7, 2022
b2026b0
fixing how timestamp parsing works.
just-at-uber Jun 8, 2022
6c7d9a8
added another test. needed to change formatting slightly and prop order.
just-at-uber Jun 8, 2022
b22b528
added all history tests to test suite for grpc
just-at-uber Jun 8, 2022
0a1819d
another test covered
just-at-uber Jun 9, 2022
7250cb0
fix remaining tests except for describe cluster disabled tests.
just-at-uber Jun 9, 2022
9e2cd4e
re enabling disabled tests and all are passing now
just-at-uber Jun 9, 2022
93961da
fixing up tchannel tests to work with new mock structure.
just-at-uber Jun 9, 2022
c3ee515
fixing lint
just-at-uber Jun 9, 2022
544bfc8
adding btoa library for tests
just-at-uber Jun 9, 2022
01463fc
updating server tests to require btoa library
just-at-uber Jun 9, 2022
5acaef5
fix lint
just-at-uber Jun 9, 2022
feefe28
update to latest IDL
just-at-uber Jun 9, 2022
3e0af5c
adding DescribeCluster grpc endpoint from latest IDL changes. fixed b…
just-at-uber Jun 9, 2022
129dcc1
add adminServiceMock to grpc mock integration tests
just-at-uber Jun 9, 2022
3ea74d3
enabled all integration tests with grpc compatible versions.
just-at-uber Jun 9, 2022
deda029
fix lint
just-at-uber Jun 9, 2022
d62e27c
code cleanup for PR
just-at-uber Jun 9, 2022
a31732b
code cleanup for PR
just-at-uber Jun 9, 2022
c2dffed
allow command line params to set TRANSPORT_CLIENT_TYPE
just-at-uber Jun 9, 2022
88c2dad
fix lint
just-at-uber Jun 9, 2022
a27e784
stop referencing default and use process environment variable for tra…
just-at-uber Jun 9, 2022
b349d3e
fix lint and revert feature flag change default
just-at-uber Jun 9, 2022
0b87563
make sure correct transport client is selected, or throw error in the…
just-at-uber Jun 9, 2022
a3466d0
update error message to include options for transport client type
just-at-uber Jun 9, 2022
e71f3e9
removing redundant enum formatter
just-at-uber Jun 9, 2022
2ebfe3e
removing console logs
just-at-uber Jun 9, 2022
2f9d343
emitMetric set to true by default. field is deprecated.
just-at-uber Jun 13, 2022
a63608a
attempt to fix package-lock file
just-at-uber Jun 13, 2022
787c77b
fixing int test break after npm update
just-at-uber Jun 13, 2022
e16b9fc
adding unit test for formatLongToTimestamp. tweaked implementation of…
just-at-uber Jun 13, 2022
22905a0
fix lint
just-at-uber Jun 13, 2022
fb7e352
adding tests for cli transform
just-at-uber Jun 13, 2022
5fc7d67
rename formatTimestampToSeconds to formatDurationToSeconds
just-at-uber Jun 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
252 changes: 0 additions & 252 deletions client/test/domain-list.test.js

This file was deleted.

4 changes: 2 additions & 2 deletions client/test/domain-search.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('Domain search', () => {

const domainListItem = domainAutocompleteList.querySelector('li');

domainListItem.trigger('mousedown');
domainListItem.click();

await testEl.waitUntilExists('section.workflow-list.ready');
const headerBar = testEl.querySelector('header.top-bar');
Expand Down Expand Up @@ -157,7 +157,7 @@ describe('Domain search', () => {

recentDomains.textNodes('li').should.deep.equal(['ci-tests', 'demo']);

recentDomains.querySelectorAll('li')[0].trigger('mousedown');
recentDomains.querySelectorAll('li')[0].click();

await testEl.waitUntilExists('section.workflow-list.ready');
scenario.location.should.contain('/domains/ci-tests/workflows');
Expand Down
2 changes: 1 addition & 1 deletion client/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ HTMLElement.prototype.selectItem = async function selectItem(text) {
const itemToClick = Array.from(
await this.waitUntilAllExist('ul.vs__dropdown-menu li')
).find(a => a.innerText.trim() === text);
const selectedItem = new MouseEvent('mousedown');
const selectedItem = new MouseEvent('click');

itemToClick.dispatchEvent(selectedItem);
};
Expand Down
Loading