Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Conversation

coder11
Copy link
Contributor

@coder11 coder11 commented Feb 17, 2021

No description provided.

@coder11 coder11 requested a review from alari February 17, 2021 07:18
src/index.ts Outdated
@@ -18,7 +18,7 @@ export { seedToPeerId, peerIdToSeed, generatePeerId } from './internal/peerIdUti
export { FluenceClient } from './FluenceClient';
export { SecurityTetraplet, PeerIdB58 } from './internal/commonTypes';
export * from './api';
export { Particle } from './internal/particle';
export { RequestFlow as Particle } from './internal/particle';
Copy link
Member

Choose a reason for hiding this comment

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

Is it intended?

@coder11 coder11 marked this pull request as ready for review March 1, 2021 10:56
@@ -86,7 +71,7 @@ describe('Builtins usage suite', () => {

// FIXME:: there is no error on broken blueprint from a node
it.skip('create_service', async function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

fix and unskip this test
also add test with real service creation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

let's add the new test during a separate issue

});
});

it('Should work with overlapping function registration', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

let's add in API somewhere a comment, that last registered function wins

import log from 'loglevel';
import PeerId from 'peer-id';
import { PeerIdB58, SecurityTetraplet } from './internal/commonTypes';
import * as unstable from './api.unstable';
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe rename unstable as new? or some other positive term

Copy link
Contributor Author

@coder11 coder11 Mar 1, 2021

Choose a reason for hiding this comment

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

I think unstable conveys the message better

@@ -0,0 +1,127 @@
import { CallServiceResult, ErrorCodes } from './commonTypes';
Copy link
Contributor

Choose a reason for hiding this comment

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

docs on everything in this file

)`;
};

export class RequestFlowBuilder {
Copy link
Contributor

Choose a reason for hiding this comment

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

docs

const msg = JSON.parse(args[0]);
res.raiseError(msg);
} catch (e) {
log.warn("Error handling script didn't work", e);
Copy link
Contributor

Choose a reason for hiding this comment

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

if JSON.parse throws an error should we raise an error too?

@coder11 coder11 merged commit b0ed007 into master Mar 3, 2021
@coder11 coder11 deleted the particle-lifecycle branch March 16, 2021 08:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants