Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-4952

Don't display full resource name in deployment view

      In the cockpit deployment view the whole resource name is displayed. This is very verbose and huge. Maybe we should shorten this display name?

      See the attached screenshot for an example of the standalone webapp standalone-webapp.png

        This is the controller panel for Smart Panels app

            [CAM-4952] Don't display full resource name in deployment view

            Add screenshot with red circle

            Sebastian Menski added a comment - Add screenshot with red circle

            Valentin added a comment -

            gimbel Actually.. this is a "very easy pick"

            Valentin added a comment - gimbel Actually.. this is a "very easy pick"

            Valentin added a comment -

            sebastian.menski michael.schoettes
            I did some changes and am happy with them... I adapted the tests to match the new selectors.

            But... with our normal test environment, I can't get any deployments with a path (probably because the deployments are made using the REST API).
            So... If one of you has an idea how I could create a deployment which will have a path, please don't keep that precious knowledge for yourself

            Valentin added a comment - sebastian.menski michael.schoettes I did some changes and am happy with them... I adapted the tests to match the new selectors. But... with our normal test environment, I can't get any deployments with a path (probably because the deployments are made using the REST API). So... If one of you has an idea how I could create a deployment which will have a path, please don't keep that precious knowledge for yourself

            Hi,

            I'm not sure how you deploy resources in your test suite. But if you use the REST API you can specify the filename of your deployment resources in the filename Content-Disposition [1].
            I think this way you could deploy a deployment resource with a longer path.

            Cheers,
            Sebastian

            [1]: https://docs.camunda.org/manual/latest/reference/rest/deployment/post-deployment/

            Sebastian Menski added a comment - Hi, I'm not sure how you deploy resources in your test suite. But if you use the REST API you can specify the filename of your deployment resources in the filename Content-Disposition [1]. I think this way you could deploy a deployment resource with a longer path. Cheers, Sebastian [1]: https://docs.camunda.org/manual/latest/reference/rest/deployment/post-deployment/

            Valentin added a comment -

            It's more about the file path, not the file name.

            The file name will never be truncated.

            The file path is shown above the file name (in a smaller font size)... but if there's no file path.. there's nothing to test.

            Valentin added a comment - It's more about the file path, not the file name. The file name will never be truncated. The file path is shown above the file name (in a smaller font size)... but if there's no file path.. there's nothing to test.

            Doesn't the filename in the REST API contains the file path? Like:

            --28319d96a8c54b529aa9159ad75edef9
            Content-Disposition: form-data; name="data"; filename="/my/monster/path/to/my/bpmn/files/test.bpmn"
            
            <?xml version="1.0" encoding="UTF-8"?>
            <bpmn2:definitions ...>
              <!-- BPMN 2.0 XML omitted -->
            </bpmn2:definitions>
            

            Sebastian Menski added a comment - Doesn't the filename in the REST API contains the file path? Like: --28319d96a8c54b529aa9159ad75edef9 Content-Disposition: form-data; name= "data" ; filename= "/my/monster/path/to/my/bpmn/files/test.bpmn" <?xml version= "1.0" encoding= "UTF-8" ?> <bpmn2:definitions ...> <!-- BPMN 2.0 XML omitted --> </bpmn2:definitions>

            Valentin added a comment - commits: https://github.com/camunda/camunda-cockpit-ui/commit/7e2ee0f5a2a6bd3ba753b3a11f1675f0c3ad5452 https://github.com/camunda/camunda-cockpit-ui/commit/345c290ddcd58845d8b51d0f4fa3a69c85f53a39 https://github.com/camunda/camunda-bpm-webapp/commit/2beb559a1bf99ed2ce956d8210ca8e92e14ae013

            Roman Smirnov added a comment - see also: https://github.com/camunda/camunda-cockpit-ui/commit/a773b0287faaa94a09bdba8523b1aa26070e7a8e

            The path of the resource should be displayed in the list of resources, otherwise there is no way for the user to distinguish between a /a/invoice.bpmn and /b/invoice.bpmn resource.

            Sebastian Stamm added a comment - The path of the resource should be displayed in the list of resources, otherwise there is no way for the user to distinguish between a /a/invoice.bpmn and /b/invoice.bpmn resource.

            Valentin added a comment -

            Valentin added a comment - https://github.com/camunda/camunda-cockpit-ui/commit/bf840147c9a28caddda475a036ed8123b465a6bd

              michael.schoettes Michael Schoettes
              sebastian.menski Sebastian Menski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: