Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-14305

Improve profile delete error message

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0
    • Component/s: Cloud Provisioner
    • Labels:
      None
    • Rank:
      1|i00hjr:

      Description

      If a user attempts to delete a profile that is still assigned to a namespace or pipeline, the error message is:

      This profile profile:default.dataproc is still assigned to 1 entities, like application:default.SimpleMR.-SNAPSHOT. Please delete all assignments before deleting the profile.
      

      A better message for 1 entity would be:

      Profile 'dataproc' is still assigned to XXX. Please delete all assignments before deleting the profile.
      

      For multiple entities:

      Profile 'dataproc' is still assigned to XXX and N other entities. Please delete all assignments before deleting the profile.
      

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: