Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • dotstatsuite-data-lifecycle-manager dotstatsuite-data-lifecycle-manager
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 56
    • Issues 56
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • 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

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • SIS-CC
  • Stat Suite
  • dotstatsuite-data-lifecycle-managerdotstatsuite-data-lifecycle-manager
  • Issues
  • #85
Closed
Open
Created Oct 10, 2019 by Anastassia Samsonova@anastassiaMaintainer

Show the correct status of the artefact deletion in DLM

When the user deletes one or more artefact(s) in the DLM, currently the "red trashbin" icon is shown next to the artefact menu image whatever the HTTP return status:

  • In case of success, the NSI WS returns code 200 ("OK") and more details in the response body's "ErrorMessage" tag.

    <?xml version="1.0" encoding="utf-8"?>
    <message:Error xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" 
    xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message">
      <message:ErrorMessage code="200">
        <common:Text xml:lang="en">Deleted : Codelist OECD:CL_JENS (v1.0). Deleted artefact</common:Text>
      </message:ErrorMessage>
    </message:Error>
  • In case of failure, the NSI WS returns code 409 ("Conflict") and failure explanations in the response body's "ErrorMessage" tag.

    <?xml version="1.0" encoding="utf-8"?>
    <message:Error xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" 
    xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message">
      <message:ErrorMessage code="160">
        <common:Text xml:lang="en">Not Deleted : Data Structure Definition OECD.EDU:EDU_NEAC (v2.0), because it is being used by :
    - Dataflow OECD.EDU:EDU_NEAC@EAG_ATTAINMENT (v2.0)
    - Dataflow OECD.EDU:EDU_NEAC@EAG_LFS (v2.0)</common:Text>
      </message:ErrorMessage>
    </message:Error>

Instead of showing this status-independent "red trashbin" icon, the DLM should behave as follow (using the below examples as text templates):

  • when delete is successful for the/some/all artefact(s):
    ° remove the item(s) from the list, but show a popup indicating that the delete(s) was/were successful and add the (concatenated) ErrorMessage(s) content for information:
    image

  • when delete is not successful for the/some/all artefact(s):
    ° display a red crossed bin icon like image [MUI-icon: DeleteForever] next to (each) concerned artefact action menu with a mouse-over popup allowing to see again the error message, e.g.:
    image

Notes:

Popups for successful deletions only close when the users clicks on its "close" icon or when the user does any other action in the DLM.

Edited Jul 07, 2020 by Jens Dossé
Assignee
Assign to
Time tracking