Skip to content

AnA08S16DefaultData

Jeroen Baten edited this page Mar 9, 2018 · 1 revision

TWiki> LibrePlan Web>AnA08S16DefaultData (03 Jan 2012, JavierMoran)EditAttach

Story summary Create default data
Iteration AnA08Usability
FEA AnA08S16DefaultData
Story Lead  
Next Story  
Passed acceptance test No

Tasks

Create default data in entities

This task is to improve current default data to insert more suitable values. These default data are inserted by Bootstrappers on application launching. If they find empty the entity they are initialization in the database they insert the default data.

The new default data will be the following:

Criteria

  • Location
    • Africa
    • America
    • Asia
    • Australia
    • Europe
  • Category
    • Manager
    • Senior worker
    • Junior worker
  • Skill

Labels

  • Priority
    • High urgency
    • Medium urgency
    • Low urgency

Hours Type

  • Default
    • 30
  • Overtime
    • 50

Work report model

  • Name: Default
  • Resource: Line
  • Task: Line
  • Date: Line

Exception types

  • Resource Holiday
    • Yellow
    • Standard Effort: 0h
    • Extra Effort: 0h
  • Bank holiday
    • Red
    • Standard Effort: 0h
    • Extra Effort: 0h
  • Half-day holiday
    • Orange
    • Standard Effort: 4h
    • Extra Effrot: 0h
  • Leave
    • Magenta
    • Standard Effort: 0h
    • Extra Effort: 0h
  • Strike
    • Purple
    • Standard Effort: 0h
    • Extra Effort: 0h

Insert empty conditions to insert default data

Now there is a problem. If a user does not like the default data and remove then, on stopping the application and starting it again the default data will be inserted again.

This provokes that people cannot erase never default data.

Therefore, the solution is to insert in each bootstrapper a condition to insert the default data just if the the entity it is reponsible for has not any value in the database.

User stoties

Tasks in this story

Tasks Est Spent To do Risk Reviewer Developer Task Name Start Date Est End Date End Date
Task 4 4 0 Low JavierMoran IgnacioDiaz Create default data in entities      
Task 4 4 0 Low JavierMoran IgnacioDiaz Insert empty conditions to insert default data      

Total Hours in this Story

User Spent in XpTracker Spent in phpReport Ok?
IgnacioDiaz 8 0 ALERT!
Total 8 0 ALERT!

Copyright (c) by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Clone this wiki locally