Merge pull request 'issue-22' (#61) from issue-22 into master
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Java CI with Maven / build (push) Successful in 43s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Java CI with Maven / build (push) Successful in 43s
				
			Reviewed-on: Sebastian/TimeManager#61
This commit is contained in:
		
						commit
						89158aee1d
					
				@ -6,6 +6,7 @@
 | 
				
			|||||||
  <component name="ChangeListManager">
 | 
					  <component name="ChangeListManager">
 | 
				
			||||||
    <list default="true" id="3a869f59-290a-4ab2-b036-a878ce801bc4" name="Changes" comment="Edit and Delete in Draggable Scheduler">
 | 
					    <list default="true" id="3a869f59-290a-4ab2-b036-a878ce801bc4" name="Changes" comment="Edit and Delete in Draggable Scheduler">
 | 
				
			||||||
      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
 | 
					      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
 | 
				
			||||||
 | 
					      <change beforePath="$PROJECT_DIR$/src/main/java/core/entities/timemanager/Taskgroup.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/core/entities/timemanager/Taskgroup.java" afterDir="false" />
 | 
				
			||||||
    </list>
 | 
					    </list>
 | 
				
			||||||
    <option name="SHOW_DIALOG" value="false" />
 | 
					    <option name="SHOW_DIALOG" value="false" />
 | 
				
			||||||
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
 | 
					    <option name="HIGHLIGHT_CONFLICTS" value="true" />
 | 
				
			||||||
@ -24,7 +25,7 @@
 | 
				
			|||||||
  <component name="Git.Settings">
 | 
					  <component name="Git.Settings">
 | 
				
			||||||
    <option name="RECENT_BRANCH_BY_REPOSITORY">
 | 
					    <option name="RECENT_BRANCH_BY_REPOSITORY">
 | 
				
			||||||
      <map>
 | 
					      <map>
 | 
				
			||||||
        <entry key="$PROJECT_DIR$/.." value="docker-deployment" />
 | 
					        <entry key="$PROJECT_DIR$/.." value="master" />
 | 
				
			||||||
      </map>
 | 
					      </map>
 | 
				
			||||||
    </option>
 | 
					    </option>
 | 
				
			||||||
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
 | 
					    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
 | 
				
			||||||
@ -176,11 +177,11 @@
 | 
				
			|||||||
    </configuration>
 | 
					    </configuration>
 | 
				
			||||||
    <recent_temporary>
 | 
					    <recent_temporary>
 | 
				
			||||||
      <list>
 | 
					      <list>
 | 
				
			||||||
        <item itemvalue="JUnit.ScheduleServiceTest.scheduleNow" />
 | 
					 | 
				
			||||||
        <item itemvalue="JUnit.ScheduleServiceTest.editBasicSchedule" />
 | 
					 | 
				
			||||||
        <item itemvalue="JUnit.ScheduleServiceTest.editscheduleAdvanced" />
 | 
					 | 
				
			||||||
        <item itemvalue="JUnit.ScheduleServiceTest.scheduleAdvanced" />
 | 
					 | 
				
			||||||
        <item itemvalue="JUnit.TaskServiceTest" />
 | 
					        <item itemvalue="JUnit.TaskServiceTest" />
 | 
				
			||||||
 | 
					        <item itemvalue="JUnit.ScheduleServiceTest.scheduleNow" />
 | 
				
			||||||
 | 
					        <item itemvalue="JUnit.ScheduleServiceTest.scheduleAdvanced" />
 | 
				
			||||||
 | 
					        <item itemvalue="JUnit.ScheduleServiceTest.editscheduleAdvanced" />
 | 
				
			||||||
 | 
					        <item itemvalue="JUnit.ScheduleServiceTest.editBasicSchedule" />
 | 
				
			||||||
      </list>
 | 
					      </list>
 | 
				
			||||||
    </recent_temporary>
 | 
					    </recent_temporary>
 | 
				
			||||||
  </component>
 | 
					  </component>
 | 
				
			||||||
@ -220,6 +221,7 @@
 | 
				
			|||||||
      <workItem from="1699639316405" duration="9267000" />
 | 
					      <workItem from="1699639316405" duration="9267000" />
 | 
				
			||||||
      <workItem from="1699684493731" duration="1121000" />
 | 
					      <workItem from="1699684493731" duration="1121000" />
 | 
				
			||||||
      <workItem from="1699769541677" duration="7576000" />
 | 
					      <workItem from="1699769541677" duration="7576000" />
 | 
				
			||||||
 | 
					      <workItem from="1699898375418" duration="325000" />
 | 
				
			||||||
    </task>
 | 
					    </task>
 | 
				
			||||||
    <task id="LOCAL-00001" summary="Structure Taskgroups in Hierarchies">
 | 
					    <task id="LOCAL-00001" summary="Structure Taskgroups in Hierarchies">
 | 
				
			||||||
      <option name="closed" value="true" />
 | 
					      <option name="closed" value="true" />
 | 
				
			||||||
@ -646,6 +648,16 @@
 | 
				
			|||||||
          <line>83</line>
 | 
					          <line>83</line>
 | 
				
			||||||
          <option name="timeStamp" value="36" />
 | 
					          <option name="timeStamp" value="36" />
 | 
				
			||||||
        </line-breakpoint>
 | 
					        </line-breakpoint>
 | 
				
			||||||
 | 
					        <line-breakpoint enabled="true" type="java-line">
 | 
				
			||||||
 | 
					          <url>file://$PROJECT_DIR$/src/main/java/core/entities/timemanager/Taskgroup.java</url>
 | 
				
			||||||
 | 
					          <line>99</line>
 | 
				
			||||||
 | 
					          <option name="timeStamp" value="37" />
 | 
				
			||||||
 | 
					        </line-breakpoint>
 | 
				
			||||||
 | 
					        <line-breakpoint enabled="true" type="java-line">
 | 
				
			||||||
 | 
					          <url>file://$PROJECT_DIR$/src/main/java/core/entities/timemanager/Taskgroup.java</url>
 | 
				
			||||||
 | 
					          <line>100</line>
 | 
				
			||||||
 | 
					          <option name="timeStamp" value="38" />
 | 
				
			||||||
 | 
					        </line-breakpoint>
 | 
				
			||||||
      </breakpoints>
 | 
					      </breakpoints>
 | 
				
			||||||
    </breakpoint-manager>
 | 
					    </breakpoint-manager>
 | 
				
			||||||
  </component>
 | 
					  </component>
 | 
				
			||||||
 | 
				
			|||||||
@ -92,11 +92,13 @@ public class Taskgroup {
 | 
				
			|||||||
    public static List<Taskgroup> getAncestorList(Taskgroup taskgroup) {
 | 
					    public static List<Taskgroup> getAncestorList(Taskgroup taskgroup) {
 | 
				
			||||||
        List<Taskgroup> ancestors = new ArrayList<>();
 | 
					        List<Taskgroup> ancestors = new ArrayList<>();
 | 
				
			||||||
        Taskgroup currentTaskgroup = taskgroup;
 | 
					        Taskgroup currentTaskgroup = taskgroup;
 | 
				
			||||||
 | 
					        ancestors.add(taskgroup);
 | 
				
			||||||
        while(currentTaskgroup.parent != null) {
 | 
					        while(currentTaskgroup.parent != null) {
 | 
				
			||||||
            ancestors.add(currentTaskgroup.parent);
 | 
					            ancestors.add(currentTaskgroup.parent);
 | 
				
			||||||
            currentTaskgroup = currentTaskgroup.parent;
 | 
					            currentTaskgroup = currentTaskgroup.parent;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        //ancestors.add(taskgroup);
 | 
					
 | 
				
			||||||
 | 
					        Collections.reverse(ancestors);
 | 
				
			||||||
        return ancestors;
 | 
					        return ancestors;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -11,6 +11,11 @@ export interface NavigationLink {
 | 
				
			|||||||
  styleUrls: ['./navigation-link-list.component.css']
 | 
					  styleUrls: ['./navigation-link-list.component.css']
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
export class NavigationLinkListComponent implements OnInit{
 | 
					export class NavigationLinkListComponent implements OnInit{
 | 
				
			||||||
 | 
					  resetComponent(defaultNavigationLinkPath: NavigationLink[]) {
 | 
				
			||||||
 | 
					      this.navigationLinks = defaultNavigationLinkPath;
 | 
				
			||||||
 | 
					      console.log("Navigation Links: ")
 | 
				
			||||||
 | 
					      console.log(this.navigationLinks)
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -27,7 +32,10 @@ export class NavigationLinkListComponent implements OnInit{
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if(this.navigationLinks.find(searchedLink => searchedLink.linkText === linkText) === undefined) {
 | 
					    if(this.navigationLinks.find(searchedLink => searchedLink.linkText === linkText) === undefined) {
 | 
				
			||||||
 | 
					      console.log("Test")
 | 
				
			||||||
      this.navigationLinks.push(navigationLink);
 | 
					      this.navigationLinks.push(navigationLink);
 | 
				
			||||||
 | 
					    } else {
 | 
				
			||||||
 | 
					      console.log(linkText)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -40,13 +40,24 @@ export class TaskgroupDashboardComponent implements OnInit {
 | 
				
			|||||||
  ngOnInit(): void {
 | 
					  ngOnInit(): void {
 | 
				
			||||||
    this.activatedRoute.paramMap.subscribe(params => {
 | 
					    this.activatedRoute.paramMap.subscribe(params => {
 | 
				
			||||||
      if(params.has('taskgroupID')) {
 | 
					      if(params.has('taskgroupID')) {
 | 
				
			||||||
 | 
					        console.log("Update of taskgroup")
 | 
				
			||||||
        this.taskgroupID = Number(params.get('taskgroupID'));
 | 
					        this.taskgroupID = Number(params.get('taskgroupID'));
 | 
				
			||||||
        this.taskgroupService.taskgroupsTaskgroupIDGet(this.taskgroupID).subscribe({
 | 
					        this.taskgroupService.taskgroupsTaskgroupIDGet(this.taskgroupID).subscribe({
 | 
				
			||||||
          next: resp => {
 | 
					          next: resp => {
 | 
				
			||||||
            this.taskgroups = resp.children
 | 
					            this.taskgroups = resp.children
 | 
				
			||||||
            this.taskgroupPath = resp.ancestors
 | 
					            this.taskgroupPath = resp.ancestors
 | 
				
			||||||
            this.taskgroup = resp.taskgroupInfo;
 | 
					            this.taskgroup = resp.taskgroupInfo;
 | 
				
			||||||
            this.navLinkListComponent!.addNavigationLink(this.taskgroup.taskgroupName, ['/taskgroups', this.taskgroup.taskgroupID.toString()])
 | 
					            this.navLinkListComponent!.resetComponent([
 | 
				
			||||||
 | 
					              {
 | 
				
			||||||
 | 
					                linkText: "Dashboard",
 | 
				
			||||||
 | 
					                routerLink: ['/']
 | 
				
			||||||
 | 
					              },
 | 
				
			||||||
 | 
					              {
 | 
				
			||||||
 | 
					                linkText: "Taskgroups",
 | 
				
			||||||
 | 
					                routerLink: ["/taskgroups"]
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
 | 
					            ]);
 | 
				
			||||||
 | 
					            console.log(this.taskgroups)
 | 
				
			||||||
            this.taskgroupPath.forEach(taskgroupEntity => {
 | 
					            this.taskgroupPath.forEach(taskgroupEntity => {
 | 
				
			||||||
              this.navLinkListComponent!.addNavigationLink(taskgroupEntity.taskgroupName, ['/taskgroups', taskgroupEntity.taskgroupID.toString()]);
 | 
					              this.navLinkListComponent!.addNavigationLink(taskgroupEntity.taskgroupName, ['/taskgroups', taskgroupEntity.taskgroupID.toString()]);
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
 | 
				
			|||||||
@ -49,7 +49,16 @@ export class TaskDetailOverviewComponent implements OnInit {
 | 
				
			|||||||
            this.taskgroups = resp.children
 | 
					            this.taskgroups = resp.children
 | 
				
			||||||
            this.taskgroupPath = resp.ancestors
 | 
					            this.taskgroupPath = resp.ancestors
 | 
				
			||||||
            this.taskgroup = resp.taskgroupInfo;
 | 
					            this.taskgroup = resp.taskgroupInfo;
 | 
				
			||||||
            this.navLinkListComponent!.addNavigationLink(this.taskgroup.taskgroupName, ['/taskgroups', this.taskgroup.taskgroupID.toString()])
 | 
					            this.navLinkListComponent!.resetComponent([
 | 
				
			||||||
 | 
					              {
 | 
				
			||||||
 | 
					                linkText: "Dashboard",
 | 
				
			||||||
 | 
					                routerLink: ['/']
 | 
				
			||||||
 | 
					              },
 | 
				
			||||||
 | 
					              {
 | 
				
			||||||
 | 
					                linkText: "Taskgroups",
 | 
				
			||||||
 | 
					                routerLink: ["/taskgroups"]
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
 | 
					            ]);
 | 
				
			||||||
            this.taskgroupPath.forEach(taskgroupEntity => {
 | 
					            this.taskgroupPath.forEach(taskgroupEntity => {
 | 
				
			||||||
              this.navLinkListComponent!.addNavigationLink(taskgroupEntity.taskgroupName, ['/taskgroups', taskgroupEntity.taskgroupID.toString()]);
 | 
					              this.navLinkListComponent!.addNavigationLink(taskgroupEntity.taskgroupName, ['/taskgroups', taskgroupEntity.taskgroupID.toString()]);
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user