Uploaded image for project: 'Apache Submarine'
  1. Apache Submarine
  2. SUBMARINE-662

Clarify duplicate experiment error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • None

    Description

      When we send an experiment POST request that has the same name as the previous ones, it will raise an error. However, the error message does not explain the error clearly, it only says that there is a Conflict. (as the following)

      {
        "status": "CONFLICT",
        "code": 409,
        "success": null,
        "message": "Conflict",
        "result": null,
        "attributes": {}
      }
      

      To let users understand the cause of the error better, I change the message from "Conflict" to "Duplicated experiment".

      { 
        "status": "CONFLICT",
        "code": 409,
        "success": null,
        "message": "Duplicated Experiment",
        "result": null,
        "attributes": {} 
      }

       

      Attachments

        Issue Links

          Activity

            People

              byronhsu Byron Hsu
              byronhsu Byron Hsu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: