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

restapi: fix hrefs in single GET disksnapshot request #283

Merged
merged 1 commit into from Apr 25, 2022

Conversation

mkemel
Copy link
Member

@mkemel mkemel commented Apr 17, 2022

Fixing GET api/disks/{diskid}/disksnapshots/{snapshotid}:
Correct href for and elements.

  1. <disk> element was returned without href attribute
  2. <parent> element had an incorrect href - buildParentHref() was
    used, although the element is not related to the parent entity
    resource, but rather represents the parent image of the snapshot.

@ahadas
Copy link
Member

ahadas commented Apr 18, 2022

/ost

Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

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

this looked familiar - but the change I did involved a similar change related to vm snapshots (querying a specific one rather than going through all the vm snapshots) and not to disk snapshots

it looks correct, I'd separate out the settings of href to a different commit but as this is a small PR, that's fine

@mkemel
Copy link
Member Author

mkemel commented Apr 18, 2022

Rebased

@mkemel
Copy link
Member Author

mkemel commented Apr 18, 2022

Moving the query change to a separate patch, this PR now handles only the href fix

@mkemel mkemel changed the title restapi: fix single GET disksnapshot request restapi: fix hrefs in single GET disksnapshot request Apr 18, 2022
@mkemel mkemel self-assigned this Apr 20, 2022
@ArtiomDivak
Copy link
Member

/ost

@sleviim sleviim self-requested a review April 20, 2022 10:24
Fixing GET api/disks/{diskid}/disksnapshots/{snapshotid}:
Correct href for <parent> and <disk> elements.
1. <disk> element was returned without href attribute
2. <parent> element had an incorrect href - buildParentHref() was
used, although the element is not related to the parent entity
resource, but rather represents the parent image of the snapshot.

Bug-Url: https://bugzilla.redhat.com/2013697
@ahadas
Copy link
Member

ahadas commented Apr 24, 2022

/ost

@ahadas ahadas merged commit b1579af into oVirt:master Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants