Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

correlation is now created by first FS in chain #109

Merged
merged 28 commits into from
Mar 21, 2018
Merged

Conversation

nadavwix
Copy link
Contributor

@nadavwix nadavwix commented Mar 4, 2018

No description provided.

Copy link
Contributor

@amir-arad amir-arad left a comment

Choose a reason for hiding this comment

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

need to add correlation argument to contract test, as this feature will now be part of the FS contract

Copy link
Contributor

@tyv tyv left a comment

Choose a reason for hiding this comment

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

Same comment as Amir has on contract test.
Also maybe to consider making correlation value assignment with argument default or use other variable name to do not spoil original argument.

src/memory-fs.ts Outdated
if (this.isIgnored(fullPath)) {
throw new Error(`Unable to save ignored path: '${fullPath}'`);
}
correlation = correlation || makeCorrelationId();
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this better as default argument.

saveFileSync(fullPath: string, newContent: string, correlation: Correlation = makeCorrelationId()): Correlation

It maybe not possible due to API interface, but then maybe to use other variable. After that assignment would be hard to check if there were any correlation argument at the first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, made some more changes, take a look

src/local-fs.ts Outdated
const correlation = makeCorrelationId();
async ensureDirectory(fullPath: string, correlation:Correlation = makeCorrelationId()): Promise<Correlation> {
this.registerCorrelationForPathsInDir(fullPath, correlation, 'directoryCreated')
// this.registerCorrelator(['directoryCreated'], correlation, e => fullPath.startsWith(e.fullPath), true);
Copy link
Contributor

Choose a reason for hiding this comment

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

you forgot to remove this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, any idea why the travis C keeps failing? should i ignore or explore?

Copy link
Contributor

Choose a reason for hiding this comment

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

as far as i see from logs, it can't start headless chrome on linux only, so I would say ignore.
afaik it is also broken on master right now. Maybe @amir-arad knows

Copy link
Contributor

Choose a reason for hiding this comment

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

sadly it's indeed broken in master. I wo'nt be around to fix it anytime soon, so as long as it fails on loading chrome, it's fine. maybe @AlexShemeshWix can have a go at it?

Nadav Abrahami and others added 22 commits March 6, 2018 09:26
# Conflicts:
#	src/wamp-client-fs.ts
#	test/local-fs.spec.node.ts
#	test/no-feedback-events-fs.spec.ts
# Conflicts:
#	src/wamp-client-fs.ts
#	test/local-fs.spec.node.ts
#	test/no-feedback-events-fs.spec.ts
# Conflicts:
#	src/wamp-client-fs.ts
#	test/local-fs.spec.node.ts
#	test/no-feedback-events-fs.spec.ts
de-dupe local-fs events
add correlation argument to contract test
@amir-arad amir-arad merged commit 64e4178 into master Mar 21, 2018
@amir-arad amir-arad deleted the nadav/correlation branch March 21, 2018 07:00
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.

None yet

3 participants