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

140/channels filter by connection #153

Merged
merged 4 commits into from
Apr 13, 2021

Conversation

bartmacbartek
Copy link
Contributor

Closes #140

@bartmacbartek bartmacbartek force-pushed the 140/channels-filter-by-connection branch from 26805c1 to 78f1771 Compare April 12, 2021 21:42
@bartmacbartek bartmacbartek force-pushed the 140/channels-filter-by-connection branch from 78f1771 to 4c58c87 Compare April 12, 2021 22:46
Copy link
Contributor

@willclarktech willclarktech left a comment

Choose a reason for hiding this comment

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

Looking good.

'transfer',
'custom',
Order.ORDER_UNORDERED,
'ics20-1'
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these values not available from test utils?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't know but there's something. I had to flip things up but it works: c47a936


fsReadFileSync.returns(registryYaml);

await run(options, (logger as unknown) as Logger);
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, maybe we should unify the Logger types in lib and binary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I already spotted this here: #149 (comment)

Created a task: #155

.find((value) =>
value.match(
new RegExp(
`[^\\s]+\\s+(?!${options.port})[^\\s]+\\s+[^\\s]+\\s+[^\\s]+`
Copy link
Contributor

@willclarktech willclarktech Apr 13, 2021

Choose a reason for hiding this comment

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

This is a little hard to understand and seems easy to make a mistake and get false negatives here. How about checking that every channel has the correct port?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. I inverted it and also spotted an edge case with last empty line.

I think it's easier to follow now, see: 281a400

@bartmacbartek bartmacbartek merged commit d1f3e16 into main Apr 13, 2021
@bartmacbartek bartmacbartek deleted the 140/channels-filter-by-connection branch April 13, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide way to query all channels for a connection
2 participants