Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

[node] Implement JSONAPI operations #1292

Closed
wants to merge 20 commits into from
Closed

Conversation

joelalejandro
Copy link
Contributor

This is a draft implementation of what's being discussed in #1250.

@joelalejandro joelalejandro added 📦 Node code related to packages/node ⚡️ Performance Tasks related to increasing performance 💻 Developer Experience labels Apr 12, 2019
@@ -31,6 +31,41 @@ import {
} from "./methods";
import { NODE_EVENTS } from "./types";

// Maps controllers to JSONAPI operations.
export const controllersToOperations = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are some ops in a fixed set like get or add but others are strings like getFreeBalanceState?

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there an intro to @ebryn/jsonapi-ts with motivation?

@@ -21,6 +21,7 @@
"lint": "lerna run lint --parallel --no-bail",
"lint:fix": "lerna run lint:fix --parallel --no-bail",
"run:playground": "lerna run start --parallel --scope=**/playground --scope=**/playground-server --scope=**/dapp-high-roller --scope=**/dapp-tic-tac-toe",
"run:playground:server": "lerna run start --parallel --scope=**/playground-server",
Copy link
Member

Choose a reason for hiding this comment

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

Could simply do yarn start from the playground-server package, no?

const relayedProposalMsg: NodeOperation = {
meta: {
from: requestHandler.publicIdentifier,
requestId: ""
Copy link
Member

Choose a reason for hiding this comment

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

Probably outside the scope of this PR but we should discuss needing requestId - from what I've seen so far it's been empty / not referenced at all.

@joelalejandro
Copy link
Contributor Author

Cancelled in favour of JSONRPC.

@snario snario deleted the joel/node-jsonapi-ops branch September 4, 2019 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💻 Developer Experience 📦 Node code related to packages/node ⚡️ Performance Tasks related to increasing performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants