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

Formatting TS code and cleanup #425

Merged
merged 24 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b423953
Fix code loader to allow #tag?number in the links.
gvdongen Jun 17, 2024
5f22dd5
Fix all code snippets to use new code loader syntax
gvdongen Jun 17, 2024
80fea4e
Update readme on new tag syntax
gvdongen Jun 17, 2024
cd0736d
Fix code loader to accept both a # start/end tag and a ? mark tag
gvdongen Jun 17, 2024
eceaf82
Fix scrollycoding of concept services pages
gvdongen Jun 17, 2024
0195c0e
Fix scrollycoding of workflow Java SDK page
gvdongen Jun 17, 2024
415891d
Fix journaling results TS SDK page
gvdongen Jun 17, 2024
894f7a5
File rename
gvdongen Jun 17, 2024
35afe1a
Fix scrollycoding TS workflows
gvdongen Jun 17, 2024
30116d3
Fix async tasks
gvdongen Jun 17, 2024
8d7d920
Fix scrollycoding workflows
gvdongen Jun 17, 2024
4c4b615
Fix scrollycoding workflows use cases
gvdongen Jun 17, 2024
f9d3ad2
Fix scrollycoding workflows use cases page
gvdongen Jun 17, 2024
eef2750
Fix awakeables to not rely on line numbers
gvdongen Jun 18, 2024
08d8d77
Remove reliance on line numbers from service comm and serving Java SD…
gvdongen Jun 18, 2024
b2fef5c
Clean up Java SDK docs to not reference code line numbers
gvdongen Jun 18, 2024
85e6f58
Remove references to line numbers in TypeScript SDK docs
gvdongen Jun 18, 2024
7610a72
Formatting Java code
gvdongen Jun 18, 2024
273f88c
Clean up focus and marking in Java code
gvdongen Jun 21, 2024
dbc0067
Fix code loader to use line breaks, and clean up Java order workflow
gvdongen Jun 21, 2024
1d022ad
Fix issues with formatting and force split long lines
gvdongen Jun 21, 2024
fdb636b
Formatting TS code and small cleanup
gvdongen Jun 21, 2024
1c66120
Merge branch 'refs/heads/main' into formatting_ts
gvdongen Jun 21, 2024
2d76103
Formatting Java
gvdongen Jun 21, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import dev.restate.sdk.annotation.Handler;
import dev.restate.sdk.annotation.Service;
import dev.restate.sdk.client.Client;
import develop.MyWorkflowClient;
import java.time.Duration;

@Service
Expand All @@ -19,20 +18,6 @@ public void myRestateHandler(Context ctx) {
.send(Duration.ofMillis(1000))
// focus
.greet("Hi");

// focus
GreetCounterObjectClient.fromContext(ctx, "Mary")
// focus
.send(Duration.ofMillis(1000))
// focus
.greet("Hi");

// focus
MyWorkflowClient.fromContext(ctx, "wf-id-1")
// focus
.send(Duration.ofMillis(1000))
// focus
.run("input");
}

// <end_delayed_call>
Expand All @@ -47,13 +32,6 @@ public void myJavaHandler(Context ctx) {
.send(Duration.ofMillis(1000))
// focus
.greet("Hi");

// focus
GreetCounterObjectClient.fromClient(restate, "Mary")
// focus
.send(Duration.ofMillis(1000))
// focus
.greet("Hi");
}
// <end_delayed_call_java>
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import dev.restate.sdk.annotation.Handler;
import dev.restate.sdk.annotation.Service;
import dev.restate.sdk.client.Client;
import develop.MyWorkflowClient;

@Service
public class OneWayCalls {
Expand All @@ -18,20 +17,6 @@ public void myRestateHandler(Context ctx) {
.send()
// focus
.greet("Hi");

// focus
GreetCounterObjectClient.fromContext(ctx, "Mary")
// focus
.send()
// focus
.greet("Hi");

// focus
MyWorkflowClient.fromContext(ctx, "wf-id-1")
// focus
.send()
// focus
.run("input");
}

// <end_one_way_call>
Expand All @@ -46,18 +31,6 @@ public void myJavaHandler(Context ctx) {
.send()
// focus
.greet("Hi");

// focus
GreetCounterObjectClient.fromClient(restate, "Mary")
// focus
.send()
// focus
.greet("Hi");

// focus
MyWorkflowClient.fromClient(restate, "wf-id-1")
// focus
.submit("input");
}
// <end_one_way_call_java>
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import dev.restate.sdk.annotation.Handler;
import dev.restate.sdk.annotation.Service;
import dev.restate.sdk.client.Client;
import develop.MyWorkflowClient;

@Service
public class RpcCalls {
Expand All @@ -20,24 +19,6 @@ public void myRestateHandler(Context ctx) {
.greet("Hi")
// focus
.await();

// focus
int count =
// focus
GreetCounterObjectClient.fromContext(ctx, "Mary")
// focus
.greet("Hi")
// focus
.await();

// focus
String result =
// focus
MyWorkflowClient.fromContext(ctx, "wf-id-1")
// focus
.run("input")
// focus
.await();
}

// <end_rpc>
Expand All @@ -52,13 +33,6 @@ public void myJavaHandler(Context ctx) {
GreeterServiceClient.fromClient(restate)
// focus
.greet("Hi");

// focus
int count =
// focus
GreetCounterObjectClient.fromClient(restate, "Mary")
// focus
.greet("Hi");
}
// <end_rpc_java>

Expand Down
Loading
Loading