Skip to content

Commit

Permalink
Fix bug in #3707 - href should show full artifact content instead of …
Browse files Browse the repository at this point in the history
…preview (#3745)
  • Loading branch information
eterna2 authored May 12, 2020
1 parent 5740535 commit e57a619
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions frontend/src/components/MinioArtifactPreview.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('MinioArtifactPreview', () => {
>
<a
class="link"
href="artifacts/get?source=s3&peek=255&bucket=foo&key=bar"
href="artifacts/get?source=s3&bucket=foo&key=bar"
rel="noopener"
target="_blank"
title="s3://foo/bar"
Expand Down Expand Up @@ -145,7 +145,7 @@ describe('MinioArtifactPreview', () => {
>
<a
class="link"
href="artifacts/get?source=minio&peek=255&bucket=foo&key=bar"
href="artifacts/get?source=minio&bucket=foo&key=bar"
rel="noopener"
target="_blank"
title="minio://foo/bar"
Expand Down Expand Up @@ -185,7 +185,7 @@ describe('MinioArtifactPreview', () => {
>
<a
class="link"
href="artifacts/get?source=minio&namespace=namespace&peek=255&bucket=foo&key=bar"
href="artifacts/get?source=minio&namespace=namespace&bucket=foo&key=bar"
rel="noopener"
target="_blank"
title="minio://foo/bar"
Expand Down Expand Up @@ -224,7 +224,7 @@ describe('MinioArtifactPreview', () => {
>
<a
class="link"
href="artifacts/get?source=minio&peek=255&bucket=foo&key=bar"
href="artifacts/get?source=minio&bucket=foo&key=bar"
rel="noopener"
target="_blank"
title="minio://foo/bar"
Expand Down Expand Up @@ -257,7 +257,7 @@ describe('MinioArtifactPreview', () => {
>
<a
class="link"
href="artifacts/get?source=minio&peek=15&bucket=foo&key=bar"
href="artifacts/get?source=minio&bucket=foo&key=bar"
rel="noopener"
target="_blank"
title="minio://foo/bar"
Expand Down Expand Up @@ -302,7 +302,7 @@ describe('MinioArtifactPreview', () => {
>
<a
class="link"
href="artifacts/get?source=minio&peek=15&bucket=foo&key=bar"
href="artifacts/get?source=minio&bucket=foo&key=bar"
rel="noopener"
target="_blank"
title="minio://foo/bar"
Expand Down Expand Up @@ -346,7 +346,7 @@ describe('MinioArtifactPreview', () => {
>
<a
class="link"
href="artifacts/get?source=minio&peek=10&bucket=foo&key=bar"
href="artifacts/get?source=minio&bucket=foo&key=bar"
rel="noopener"
target="_blank"
title="minio://foo/bar"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/MinioArtifactPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const MinioArtifactPreview: React.FC<MinioArtifactPreviewProps> = ({
// TODO need to come to an agreement how to encode artifact info inside a url
// namespace is currently not supported
const linkText = Apis.buildArtifactUrl(storagePath);
const artifactUrl = Apis.buildReadFileUrl(storagePath, namespace, maxbytes);
const artifactUrl = Apis.buildReadFileUrl(storagePath, namespace);

// Opens in new window safely
// TODO use ArtifactLink instead (but it need to support namespace)
Expand Down

0 comments on commit e57a619

Please sign in to comment.