Skip to content

Don't fail on item.set_self_href(None) for items with relative asset hrefs#291

Merged
lossyrob merged 3 commits into
developfrom
fix/rde/item-set-self-href-none
Mar 24, 2021
Merged

Don't fail on item.set_self_href(None) for items with relative asset hrefs#291
lossyrob merged 3 commits into
developfrom
fix/rde/item-set-self-href-none

Conversation

@lossyrob
Copy link
Copy Markdown
Member

@lossyrob lossyrob commented Mar 24, 2021

Description:
Currently if you call set_self_href on an Item with None as the parameter, if that item has assets with relative hrefs, the logic that attempts to ensure relative asset hrefs remain valid when switching the item href ends up throwing an error. This change makes it so that, if you are setting the item self href to None, any relative asset hrefs are left as is.

PR Checklist:

  • Code is formatted (run scripts/format)
  • Tests pass (run scripts/test)
  • This PR maintains or improves overall codebase code coverage.
  • Changes are added to the CHANGELOG. See the docs for information about adding to the changelog.

@lossyrob lossyrob merged commit e0768a8 into develop Mar 24, 2021
@matthewhanson matthewhanson deleted the fix/rde/item-set-self-href-none branch March 26, 2021 04:46
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.

1 participant