Skip to content

Cleaned up views, fixing a few long-standing gripes

Sam Kagan requested to merge clean-up-view-code into main

Specifically:

  • Removed try...except blocks around repo update and delete methods in views since they don't raise ValueErrors
  • Created helper function to unify views' return messages when missing an expected param
  • Replaced HTTP-status numbers with members of the HTTPStatus enum in views
  • Updated docstring comments for ObsSpec views

Merge request reports