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

fix(archives): convert jvmId to subdirectoryName for web-client requests #991

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

maxcao13
Copy link
Member

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed the last commit: git commit --amend --signoff

Fixes: https://github.com/cryostatio/cryostat/pull/1457

Description of the change:

Forgot that the web-client actually uses the archived directory get response data to request for editing labels, viewing reports, and reviewing recordings in Grafana, per target. Particularly the subdirectoryName, since it is now replaced by the jvmId, should be converted like how the backend does it.

Before this change, the requests failed.

How to manually test:

  1. Go to archives view: try editing labels, view report, viewing recording in grafana

@github-actions
Copy link

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-991-57b31d6256fd616fe8c27754e92634a8e3eaa6f4 sh smoketest.sh

@andrewazores andrewazores force-pushed the web-client-from-path-methods branch from 57b31d6 to 673e98f Compare April 25, 2023 17:57
@github-actions
Copy link

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-991-673e98ff37c9bd007e2803dc764d0334dd42c1ac sh smoketest.sh

andrewazores
andrewazores previously approved these changes Apr 25, 2023
@github-actions
Copy link

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-991-4bd31e3bbcd79afcc3b0e21c302d2f1a4a2ea734 sh smoketest.sh

@andrewazores andrewazores merged commit b5ea37a into cryostatio:main Apr 25, 2023
mergify bot pushed a commit that referenced this pull request Apr 25, 2023
…sts (#991)

Signed-off-by: Max Cao <macao@redhat.com>
(cherry picked from commit b5ea37a)
@maxcao13 maxcao13 deleted the web-client-from-path-methods branch April 25, 2023 18:46
andrewazores pushed a commit that referenced this pull request Apr 25, 2023
…sts (#991) (#992)

Signed-off-by: Max Cao <macao@redhat.com>
(cherry picked from commit b5ea37a)

Co-authored-by: Max Cao <macao@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants