Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Test Step HTML Viewer #50

Merged
merged 7 commits into from
Oct 13, 2020
Merged

Test Step HTML Viewer #50

merged 7 commits into from
Oct 13, 2020

Conversation

gioragutt
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Oct 6, 2020

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@benjamingr
Copy link
Contributor

Any chance you added the dep but didn't commit the yarn.lock file by any chance?

@gioragutt
Copy link
Contributor Author

Umm no, why? I'm not on my pc, but looks like there's a yarn.lock change in the second commit.

@gioragutt gioragutt marked this pull request as ready for review October 7, 2020 21:18
@benjamingr
Copy link
Contributor

@Bnaya PTAL too before I merge :]

Copy link
Contributor

@Bnaya Bnaya left a comment

Choose a reason for hiding this comment

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

We just need to figure the empty state before merging & releasing

}

export function HtmlViewer({ step: { mhtmlFile }, className: containerClass }: HtmlViewerProps) {
if (!mhtmlFile) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We need this nicer empty state before we ship it

return splitFiles[0];
}

return async ({ params: { file } }, res) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

flat async express middlewares are foot-gun
If one of the awaits will throw the request will hang,
we need additional wrapper here

@@ -5739,6 +5747,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/bluebird-retry/-/bluebird-retry-0.11.0.tgz#1289ab22cbbc3a02587baad35595351dd0c1c047"
integrity sha1-EomrIsu8OgJYe6rTVZU1HdDBwEc=

[email protected]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Not blocking but we need to figure-out these exact deps on fast-mhtml side to avoid this duplication

@@ -0,0 +1,60 @@
import debug from 'debug';
import { RequestHandler, Response } from 'express';
Copy link
Contributor

Choose a reason for hiding this comment

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

import type

@Bnaya
Copy link
Contributor

Bnaya commented Oct 13, 2020

Great job!

@Bnaya Bnaya merged commit 43b83ba into testimio:main Oct 13, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2020
@Bnaya
Copy link
Contributor

Bnaya commented Oct 13, 2020

@benjamingr after another thought, this will not work for the cloud viewer.
I'm not in favour of adding this kind of endpoint to the cloud backend as it can be security hazard (Without additional thinking )
We need to think about it

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.

3 participants