Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-7971

Allow Gantt function to compute task with non-numerical ID

    Details

      Description

      The Gantt diagram is not generated when at least one of the taks composing it has a non-numerical workEffortId (e.g. A10001).
      When importing data or using duplication of workEffort, you can use such id.

      How to reproduce :

      • Create a task with a non-numerical id for the project 9100 or iImport this entry :
        <entity-engine-xml>
        <WorkEffort workEffortId="A1000" sequenceNum="1" workEffortTypeId="TASK" currentStatusId="PTS_CREATED" lastStatusUpdate="2007-12-14 16:45:21.831" workEffortParentId="9101" scopeEnumId="WES_PRIVATE" workEffortName="ProblemTask" estimatedStartDate="2007-12-03 00:00:00.0" estimatedCompletionDate="2007-12-05 00:00:00.0" revisionNumber="1"/>
        </entity-engine-xml>
      1. OFBIZ-7971.patch
        3 kB
        Montalbano Florian

        Activity

        Hide
        Florian M Montalbano Florian added a comment - - edited

        Here is the patch to compute non-numerical task id.

        While creating this patch, I encountered a weird character in the file jsgantt.js at the line 1908, column 63. It seems to be a '–' (it's not a dash, it's larger)(U+2013 in unicode, &#8211 ; in html).
        There are several occurences of this character and it doesn't shows up correctly in my IDE. (it also causes error with sonar).
        Do you have an idea on this ?

        Show
        Florian M Montalbano Florian added a comment - - edited Here is the patch to compute non-numerical task id. While creating this patch, I encountered a weird character in the file jsgantt.js at the line 1908, column 63. It seems to be a '–' (it's not a dash, it's larger)(U+2013 in unicode, &#8211 ; in html). There are several occurences of this character and it doesn't shows up correctly in my IDE. (it also causes error with sonar). Do you have an idea on this ?
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Florian,

        Your patch is in trunk r1758101

        I tried to backport in R15 and 14, but got too much conflicts to my taste

        BTW Florian, maybe we could propose the js changes to the js project?

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Florian, Your patch is in trunk r1758101 I tried to backport in R15 and 14, but got too much conflicts to my taste BTW Florian, maybe we could propose the js changes to the js project?
        Hide
        Florian M Montalbano Florian added a comment -

        Hi Jacques Le Roux, I don't know what is this js project yet but it sounds like a good idea ; )
        Where can I find more details about this js project ?

        Show
        Florian M Montalbano Florian added a comment - Hi Jacques Le Roux , I don't know what is this js project yet but it sounds like a good idea ; ) Where can I find more details about this js project ?
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Simply look into jsgantt.js header, it says "Shlomy Gantz BlueBrick". It was http://www.jsgantt.com/, then https://code.google.com/archive/p/jsgantt/ but is no longer maintained . It's now actually forked at https://github.com/gunsha/JSGantt

        There are also

        Show
        jacques.le.roux Jacques Le Roux added a comment - Simply look into jsgantt.js header, it says "Shlomy Gantz BlueBrick". It was http://www.jsgantt.com/ , then https://code.google.com/archive/p/jsgantt/ but is no longer maintained . It's now actually forked at https://github.com/gunsha/JSGantt There are also https://github.com/ccoenen/jsgantt-improved not maintained https://github.com/chrelad/jsgantt "I am just creating a github repo so I can mess with the code too." but the 1st is the only 1 maintained

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            Florian M Montalbano Florian
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development