Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • P plom
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 621
    • Issues 621
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • plom
  • plom
  • Merge requests
  • !1463

specVerifier use ValueError and manager soln tab fixes

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Colin Macdonald requested to merge valueerror into main May 16, 2022
  • Overview 0
  • Commits 2
  • Pipelines 2
  • Changes 3

We removed numberToPrename, throwing a NotImplementedError. This was reasonable but:

  • the docs for specVerifier do not mention the new behaviour, only ValueError
  • various bits of code, e.g., in API for put_spec, only expect ValueError and thus fail with 500 instead of something more graceful.
  • usually NotImplementedError is for code we haven't written yet.

There is a deprecation warning mechanism but we already dropped it (and we're not at 1.0.0 yet).

I think it might be easier to just throw ValueError: that is done here.


Also: manager's SolnTab was enable/disabled differently than the others: fix that and reorg code a little for future changes.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: valueerror