I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

project_draft.rb

an old example to illustrate this idea - Txinto Vaz, 24 Aug 2011 11:00

Download (29.7 KB)

 
1
class ProjectDraft < ActiveRecord::Base
2
  unloadable
3

    
4
  def load_project(myproject)
5
    # Let's find some accesors
6
    feature_tracker=Tracker.find_by_name("Feature")
7
    support_tracker=Tracker.find_by_name("Support")
8
    newstatus=IssueStatus.find_by_name("New")
9
#    manager_role=Role.find_by_name("Manager")
10
    mymngmember=nil
11
    myastromember=nil
12
    mysysmember=nil
13
    myswmember=nil
14
    myhwmember=nil
15
    mymechmember=nil
16
    myoptmember=nil
17
    myproject.members.each { |m|
18
#      if m.roles.include?(manager_role) then
19
#        mymanagermember=m
20
#      end
21
#      mymanager=mymanagermember.user
22
      if (m.user.login.equals=="mng") then
23
        mymngmember=m.user
24
      end
25
      if (m.user.login.equals=="astro") then
26
        myastromember=m.user
27
      end
28
      if (m.user.login.equals=="sw") then
29
        myswmember=m.user
30
      end
31
      if (m.user.login.equals=="sys") then
32
        mysysmember=m.user
33
      end
34
      if (m.user.login.equals=="mech") then
35
        mymechmember=m.user
36
      end
37
      if (m.user.login.equals=="opt") then
38
        myoptmember=m.user
39
      end
40
      if (m.user.login.equals=="hw") then
41
        myhwmember=m.user
42
      end
43
    }
44

    
45
    # Create the first version of the roadmap
46
    scversion=Version.new
47
    scversion.project=myproject
48
    scversion.name="01_SC"
49
    scversion.description="Instrument's Science Concept"
50
    scversion.wiki_page_title=scversion.name
51
    scversion.sharing="descendants"
52
    scversion.save
53

    
54
    # Create the second version of the roadmap
55
    techversion=Version.new
56
    techversion.project=myproject
57
    techversion.name="02_TC"
58
    techversion.description="Instrument's Technical Concept"
59
    techversion.wiki_page_title=techversion.name
60
    techversion.sharing="descendants"
61
    techversion.save
62

    
63
    # Now let's begin defining our work from last issue to the first one
64
    techconcept=Issue.new
65
    techconcept.tracker=feature_tracker
66
    techconcept.project=myproject
67
    techconcept.subject="Instrument's Tecnical Concept"
68
    techconcept.description="This is the BIG task, the result of all the team's work!!!!"
69
    techconcept.status=newstatus
70
    techconcept.assigned_to=mymngmember.user
71
    techconcept.fixed_version=techversion
72
    techconcept.author=mymngmember.user
73

    
74
    techconcept.save
75

    
76
    # For finishing a techconcept we will need the following things:
77
    # Science Final Concept
78
    # Management Final Plan
79
    # System Tech Concept
80
    # SW Tech Concept
81
    # HW Tech Concept
82
    # Mechanics Tech Concept
83
    # Optics Tech Concept
84
    # and finally the merging action of that
85
    # the merging action is blocked by all that other things
86
    science_final_concept=Issue.new
87
    science_final_concept.tracker=feature_tracker
88
    science_final_concept.project=myproject
89
    science_final_concept.subject="Science Final Concept"
90
    science_final_concept.description="This is the final Science Proposal for the technical concept"
91
    science_final_concept.status=newstatus
92
    science_final_concept.assigned_to=myastromember.user
93
    science_final_concept.fixed_version=techversion
94
    science_final_concept.author=mymngmember.user
95
    science_final_concept.parent_issue_id=techconcept.id
96
    science_final_concept.save
97

    
98
    mng_final_concept=Issue.new
99
    mng_final_concept.tracker=feature_tracker
100
    mng_final_concept.project=myproject
101
    mng_final_concept.subject="Instrument Dev Plan"
102
    mng_final_concept.description="This is the development planning for the instrument"
103
    mng_final_concept.status=newstatus
104
    mng_final_concept.assigned_to=mymngmember.user
105
    mng_final_concept.fixed_version=techversion
106
    mng_final_concept.author=mymngmember.user
107
    mng_final_concept.parent_issue_id=techconcept.id
108
    mng_final_concept.save
109

    
110
    systech_concept=Issue.new
111
    systech_concept.tracker=feature_tracker
112
    systech_concept.project=myproject
113
    systech_concept.subject="System Tech Concept"
114
    systech_concept.description="Build the System Technical Concept as part of the Instrument's technical concept, the system technical concept is needed in order to demonstrate the correct integration of all the subcomponents, and the feasibility of the engineering concepts."
115
    systech_concept.status=newstatus
116
    systech_concept.assigned_to=mysysmember.user
117
    systech_concept.fixed_version=techversion
118
    systech_concept.author=mymngmember.user
119
    systech_concept.parent_issue_id=techconcept.id
120
    systech_concept.save
121

    
122
    swtech_concept=Issue.new
123
    swtech_concept.tracker=feature_tracker
124
    swtech_concept.project=myproject
125
    swtech_concept.subject="Software Tech Concept"
126
    swtech_concept.description="Build the SW technical concept as part of the instrument technical concept."
127
    swtech_concept.status=newstatus
128
    swtech_concept.assigned_to=myswmember.user
129
    swtech_concept.fixed_version=techversion
130
    swtech_concept.author=mymngmember.user
131
    swtech_concept.parent_issue_id=techconcept.id
132
    swtech_concept.save
133

    
134
    hwtech_concept=Issue.new
135
    hwtech_concept.tracker=feature_tracker
136
    hwtech_concept.project=myproject
137
    hwtech_concept.subject="Hardware Tech Concept"
138
    hwtech_concept.description="Build the HW technical concept as part of the instrument technical concept."
139
    hwtech_concept.status=newstatus
140
    hwtech_concept.assigned_to=myhwmember.user
141
    hwtech_concept.fixed_version=techversion
142
    hwtech_concept.author=mymngmember.user
143
    hwtech_concept.parent_issue_id=techconcept.id
144
    hwtech_concept.save
145

    
146
    mechtech_concept=Issue.new
147
    mechtech_concept.tracker=feature_tracker
148
    mechtech_concept.project=myproject
149
    mechtech_concept.subject="Mechanics Tech Concept"
150
    mechtech_concept.description="Build the Mechanics technical concept as part of the instrument technical concept."
151
    mechtech_concept.status=newstatus
152
    mechtech_concept.assigned_to=mymechmember.user
153
    mechtech_concept.fixed_version=techversion
154
    mechtech_concept.author=mymngmember.user
155
    mechtech_concept.parent_issue_id=techconcept.id
156
    mechtech_concept.save
157

    
158
    opttech_concept=Issue.new
159
    opttech_concept.tracker=feature_tracker
160
    opttech_concept.project=myproject
161
    opttech_concept.subject="Optics Tech Concept"
162
    opttech_concept.description="Build the Optics technical concept as part of the instrument technical concept."
163
    opttech_concept.status=newstatus
164
    opttech_concept.assigned_to=myoptmember.user
165
    opttech_concept.fixed_version=techversion
166
    opttech_concept.author=mymngmember.user
167
    opttech_concept.parent_issue_id=techconcept.id
168
    opttech_concept.save
169

    
170
    mergetech_concept=Issue.new
171
    mergetech_concept.tracker=feature_tracker
172
    mergetech_concept.project=myproject
173
    mergetech_concept.subject="Merge the technical concepts"
174
    mergetech_concept.description="Merge all the technical concepts and plans in a single Instrument Technical Concept Proposal"
175
    mergetech_concept.status=newstatus
176
    mergetech_concept.assigned_to=mymngmember.user
177
    mergetech_concept.fixed_version=techversion
178
    mergetech_concept.author=mymngmember.user
179
    mergetech_concept.parent_issue_id=techconcept.id
180
    mergetech_concept.save
181

    
182
    rel=IssueRelation.new
183
    rel.relation_type="blocks"
184
    rel.issue_from=science_final_concept
185
    mergetech_concept.relations_to << rel
186
    rel.save
187

    
188
    rel=IssueRelation.new
189
    rel.relation_type="blocks"
190
    rel.issue_from=mng_final_concept
191
    mergetech_concept.relations_to << rel
192
    rel.save
193

    
194
    rel=IssueRelation.new
195
    rel.relation_type="blocks"
196
    rel.issue_from=systech_concept
197
    mergetech_concept.relations_to << rel
198
    rel.save
199

    
200
    rel=IssueRelation.new
201
    rel.relation_type="blocks"
202
    rel.issue_from=swtech_concept
203
    mergetech_concept.relations_to << rel
204
    rel.save
205

    
206
    rel=IssueRelation.new
207
    rel.relation_type="blocks"
208
    rel.issue_from=hwtech_concept
209
    mergetech_concept.relations_to << rel
210
    rel.save
211

    
212
    rel=IssueRelation.new
213
    rel.relation_type="blocks"
214
    rel.issue_from=mechtech_concept
215
    mergetech_concept.relations_to << rel
216
    rel.save
217

    
218
    rel=IssueRelation.new
219
    rel.relation_type="blocks"
220
    rel.issue_from=opttech_concept
221
    mergetech_concept.relations_to << rel
222
    rel.save
223

    
224
    # Now we begin with the software procedures
225
    # A technical concept of a discipline is made by
226
    # 3 main subtasks:
227
    # * having a Discipline Development Plan
228
    # * having a preliminar technical concept
229
    # * having performed the "cutting edge prospections"
230
    # The preliminar concept blocks the prospections
231
    # and it is located in the 01_SC version, while the rest
232
    # of the tasks remain in the 01_TC version
233

    
234
    sw_devplan=Issue.new
235
    sw_devplan.tracker=support_tracker
236
    sw_devplan.project=myproject
237
    sw_devplan.subject="Software Development Plan"
238
    sw_devplan.description="This plan is part of the SW technical concept.  It describes the methodologies, processes and tools used by the team to develop software for this astronomical instrument.
239

240
The plan must pay attention to the important topics in SW for astronomical instruments:
241

242
* Generic SW development.
243
* Ctrl SW for controlling the instrument and the interaction with the telescope and environment.
244
* Detector SW for controlling the acquisition.
245
* Imaging SW for manipulating the images obtained by the instrument.
246
* Science SW for manipulating and distributing the observation data.
247
* Operation SW for commanding the instrument
248
* DSL SW for describing the problems and developing high-productive software automatic generation to support the rest of the activities."
249
    sw_devplan.status=newstatus
250
    sw_devplan.assigned_to=myswmember.user
251
    sw_devplan.fixed_version=techversion
252
    sw_devplan.author=mymngmember.user
253
    sw_devplan.parent_issue_id=swtech_concept.id
254
    sw_devplan.save
255

    
256
    swprelim_techconcept=Issue.new
257
    swprelim_techconcept.tracker=feature_tracker
258
    swprelim_techconcept.project=myproject
259
    swprelim_techconcept.subject="Preliminary SW-System technical concept"
260
    swprelim_techconcept.description="This document gives an overview, from the system's point of view, of the software parts of the instrument itself."
261
    swprelim_techconcept.status=newstatus
262
    swprelim_techconcept.assigned_to=myswmember.user
263
    swprelim_techconcept.fixed_version=scversion
264
    swprelim_techconcept.author=mymngmember.user
265
    swprelim_techconcept.parent_issue_id=swtech_concept.id
266
    swprelim_techconcept.save
267

    
268
    sw_cuttingedge=Issue.new
269
    sw_cuttingedge.tracker=feature_tracker
270
    sw_cuttingedge.project=myproject
271
    sw_cuttingedge.subject="SW cutting-edge prospections"
272
    sw_cuttingedge.description="To ensure the feasibility of the SW technical concept, the team must provide implemented some software prototypes or study models that demonstrate the validity and good performance of the key parts of the instrument's software. These key parts are directly linked with the project's risk in terms of feasibility or security."
273
    sw_cuttingedge.status=newstatus
274
    sw_cuttingedge.assigned_to=myswmember.user
275
    sw_cuttingedge.fixed_version=techversion
276
    sw_cuttingedge.author=mymngmember.user
277
    sw_cuttingedge.parent_issue_id=swtech_concept.id
278
    sw_cuttingedge.save
279

    
280
    rel=IssueRelation.new
281
    rel.relation_type="blocks"
282
    rel.issue_from=swprelim_techconcept
283
    sw_cuttingedge.relations_to << rel
284
    rel.save
285

    
286
    hw_devplan=Issue.new
287
    hw_devplan.tracker=support_tracker
288
    hw_devplan.project=myproject
289
    hw_devplan.subject="Hardware Development Plan"
290
    hw_devplan.description="This plan is part of the HW technical concept.  It describes the methodologies, processes and tools used by the team to develop hardware for this astronomical instrument.
291

292
The plan must pay attention to the important topics in HW for astronomical instruments:
293

294
* Generic HW development.
295
* Ctrl HW for controlling the instrument and the interaction with the telescope and environment.
296
* Detector HW for controlling the acquisition.
297
* Sensors HW for sensing all the magnitudes from the environment.
298
* Signal processing HW.
299
* Instrumentation & measurement tools."
300
    hw_devplan.status=newstatus
301
    hw_devplan.assigned_to=myhwmember.user
302
    hw_devplan.fixed_version=techversion
303
    hw_devplan.author=mymngmember.user
304
    hw_devplan.parent_issue_id=hwtech_concept.id
305
    hw_devplan.save
306

    
307
    hwprelim_techconcept=Issue.new
308
    hwprelim_techconcept.tracker=feature_tracker
309
    hwprelim_techconcept.project=myproject
310
    hwprelim_techconcept.subject="Preliminary HW-System technical concept"
311
    hwprelim_techconcept.description="This document gives an overview, from the system's point of view, of the hardware parts of the instrument itself."
312
    hwprelim_techconcept.status=newstatus
313
    hwprelim_techconcept.assigned_to=myhwmember.user
314
    hwprelim_techconcept.fixed_version=scversion
315
    hwprelim_techconcept.author=mymngmember.user
316
    hwprelim_techconcept.parent_issue_id=hwtech_concept.id
317
    hwprelim_techconcept.save
318

    
319
    hw_cuttingedge=Issue.new
320
    hw_cuttingedge.tracker=feature_tracker
321
    hw_cuttingedge.project=myproject
322
    hw_cuttingedge.subject="HW cutting-edge prospections"
323
    hw_cuttingedge.description="To ensure the feasibility of the HW technical concept, the team must provide implemented some hardware prototypes or study models that demonstrate the validity and good performance of the key parts of the instrument's hardware. These key parts are directly linked with the project's risk in terms of feasibility or security."
324
    hw_cuttingedge.status=newstatus
325
    hw_cuttingedge.assigned_to=myhwmember.user
326
    hw_cuttingedge.fixed_version=techversion
327
    hw_cuttingedge.author=mymngmember.user
328
    hw_cuttingedge.parent_issue_id=hwtech_concept.id
329
    hw_cuttingedge.save
330

    
331
    rel=IssueRelation.new
332
    rel.relation_type="blocks"
333
    rel.issue_from=hwprelim_techconcept
334
    hw_cuttingedge.relations_to << rel
335
    rel.save
336

    
337
    mech_devplan=Issue.new
338
    mech_devplan.tracker=support_tracker
339
    mech_devplan.project=myproject
340
    mech_devplan.subject="Mechanics Development Plan"
341
    mech_devplan.description="This plan is part of the Mech technical concept.  It describes the methodologies, processes and tools used by the team to develop mechanics for this astronomical instrument.
342

343
The plan must pay attention to the important topics in Mech for astronomical instruments:
344

345
* Generic Mech development.
346
* Ctrl Mech for moving parts of the instrument and the interaction with the telescope and environment.
347
* Optical Mech for holding optic devices.
348
* Cooling Mech systems.
349
* Cryogenic Mech for parts inside the cryostatus (if present)
350
* Transportation, Storage and Discarding Mech for ensure the lifecycle of the instrument
351
* Utilities mech for maintain and manipulate the instrument
352
* Operation Mech for interactuating with human operator or robots"
353
    mech_devplan.status=newstatus
354
    mech_devplan.assigned_to=mymechmember.user
355
    mech_devplan.fixed_version=techversion
356
    mech_devplan.author=mymngmember.user
357
    mech_devplan.parent_issue_id=mechtech_concept.id
358
    mech_devplan.save
359

    
360
    mechprelim_techconcept=Issue.new
361
    mechprelim_techconcept.tracker=feature_tracker
362
    mechprelim_techconcept.project=myproject
363
    mechprelim_techconcept.subject="Preliminary Mech-System technical concept"
364
    mechprelim_techconcept.description="This document gives an overview, from the system's point of view, of the mechanics parts of the instrument itself."
365
    mechprelim_techconcept.status=newstatus
366
    mechprelim_techconcept.assigned_to=mymechmember.user
367
    mechprelim_techconcept.fixed_version=scversion
368
    mechprelim_techconcept.author=mymngmember.user
369
    mechprelim_techconcept.parent_issue_id=mechtech_concept.id
370
    mechprelim_techconcept.save
371

    
372
    mech_cuttingedge=Issue.new
373
    mech_cuttingedge.tracker=feature_tracker
374
    mech_cuttingedge.project=myproject
375
    mech_cuttingedge.subject="Mech cutting-edge prospections"
376
    mech_cuttingedge.description="To ensure the feasibility of the Mech technical concept, the team must provide implemented some mechanics prototypes or study models that demonstrate the validity and good performance of the key parts of the instrument's mechanics. These key parts are directly linked with the project's risk in terms of feasibility or security."
377
    mech_cuttingedge.status=newstatus
378
    mech_cuttingedge.assigned_to=mymechmember.user
379
    mech_cuttingedge.fixed_version=techversion
380
    mech_cuttingedge.author=mymngmember.user
381
    mech_cuttingedge.parent_issue_id=mechtech_concept.id
382
    mech_cuttingedge.save
383

    
384
    rel=IssueRelation.new
385
    rel.relation_type="blocks"
386
    rel.issue_from=mechprelim_techconcept
387
    mech_cuttingedge.relations_to << rel
388
    rel.save
389

    
390
    opt_devplan=Issue.new
391
    opt_devplan.tracker=support_tracker
392
    opt_devplan.project=myproject
393
    opt_devplan.subject="Optics Development Plan"
394
    opt_devplan.description="This plan is part of the Optics technical concept.  It describes the methodologies, processes and tools used by the team to develop optics for this astronomical instrument.
395

396
The plan must pay attention to the important topics in Optics for astronomical instruments:
397

398
* Generic Optics development.
399
* Ctrl Optics for moving and adjustable optic devices.
400
* Detector Optics for camera.
401
* Cryogenic optics.
402
* Optics characterization."
403
    opt_devplan.status=newstatus
404
    opt_devplan.assigned_to=myoptmember.user
405
    opt_devplan.fixed_version=techversion
406
    opt_devplan.author=mymngmember.user
407
    opt_devplan.parent_issue_id=opttech_concept.id
408
    opt_devplan.save
409

    
410
    optprelim_techconcept=Issue.new
411
    optprelim_techconcept.tracker=feature_tracker
412
    optprelim_techconcept.project=myproject
413
    optprelim_techconcept.subject="Preliminary Optics-System technical concept"
414
    optprelim_techconcept.description="This document gives an overview, from the system's point of view, of the optics parts of the instrument itself."
415
    optprelim_techconcept.status=newstatus
416
    optprelim_techconcept.assigned_to=myoptmember.user
417
    optprelim_techconcept.fixed_version=scversion
418
    optprelim_techconcept.author=mymngmember.user
419
    optprelim_techconcept.parent_issue_id=opttech_concept.id
420
    optprelim_techconcept.save
421

    
422
    opt_cuttingedge=Issue.new
423
    opt_cuttingedge.tracker=feature_tracker
424
    opt_cuttingedge.project=myproject
425
    opt_cuttingedge.subject="Optics cutting-edge prospections"
426
    opt_cuttingedge.description="To ensure the feasibility of the Optics technical concept, the team must provide implemented some optics prototypes or study models that demonstrate the validity and good performance of the key parts of the instrument's optics. These key parts are directly linked with the project's risk in terms of feasibility or security."
427
    opt_cuttingedge.status=newstatus
428
    opt_cuttingedge.assigned_to=myoptmember.user
429
    opt_cuttingedge.fixed_version=techversion
430
    opt_cuttingedge.author=mymngmember.user
431
    opt_cuttingedge.parent_issue_id=opttech_concept.id
432
    opt_cuttingedge.save
433

    
434
    rel=IssueRelation.new
435
    rel.relation_type="blocks"
436
    rel.issue_from=optprelim_techconcept
437
    opt_cuttingedge.relations_to << rel
438
    rel.save
439

    
440
    sys_devplan=Issue.new
441
    sys_devplan.tracker=support_tracker
442
    sys_devplan.project=myproject
443
    sys_devplan.subject="Systems Development Plan"
444
    sys_devplan.description="This plan is part of the Systems technical concept.  It describes the methodologies, processes and tools used by the team to develop systems for this astronomical instrument.
445

446
The plan must pay attention to the important topics in Systems for astronomical instruments:
447

448
* Generic Systems development.
449
** Requirements engineering.
450
** Idea management.
451
* Ctrl Systems for controlling the instrument and the interaction with the telescope and environment.
452
* Detector Systems for controlling the acquisition.
453
* Science Systems for interaction between our instrument an the scientific community.
454
* Operation Systems for commanding the instrument
455
* DSL Systems for describing the problems and developing high-productive systems automatic generation to support the rest of the activities.
456
* A consistent Risk Management Plan, which faces these kind of risks:
457
** Hazard towards people
458
** Hazard towards the operating environment
459
** Hazard towards the instrument integrity
460
** Hazard towards the instrument performance
461
** Support to other areas (mng, astro, etc...) to face their specific risks
462
*** Economic Hazard.
463
*** Science Hazard.
464
*** Team dependance Hazard.
465
*** Legality hazards."
466
    sys_devplan.status=newstatus
467
    sys_devplan.assigned_to=mysysmember.user
468
    sys_devplan.fixed_version=techversion
469
    sys_devplan.author=mymngmember.user
470
    sys_devplan.parent_issue_id=systech_concept.id
471
    sys_devplan.save
472

    
473
    sysprelim_techconcept=Issue.new
474
    sysprelim_techconcept.tracker=feature_tracker
475
    sysprelim_techconcept.project=myproject
476
    sysprelim_techconcept.subject="Preliminary System technical concept"
477
    sysprelim_techconcept.description="This document gives an overview, from the system's point of view, of the instrument itself."
478
    sysprelim_techconcept.status=newstatus
479
    sysprelim_techconcept.assigned_to=mysysmember.user
480
    sysprelim_techconcept.fixed_version=scversion
481
    sysprelim_techconcept.author=mymngmember.user
482
    sysprelim_techconcept.parent_issue_id=systech_concept.id
483
    sysprelim_techconcept.save
484

    
485
    sys_cuttingedge=Issue.new
486
    sys_cuttingedge.tracker=feature_tracker
487
    sys_cuttingedge.project=myproject
488
    sys_cuttingedge.subject="Systems cutting-edge prospections"
489
    sys_cuttingedge.description="To ensure the feasibility of the Systems technical concept, the team must provide implemented some systems prototypes or study models that demonstrate the validity and good performance of the key parts of the instrument. These key parts are directly linked with the project's risk in terms of feasibility or security."
490
    sys_cuttingedge.status=newstatus
491
    sys_cuttingedge.assigned_to=mysysmember.user
492
    sys_cuttingedge.fixed_version=techversion
493
    sys_cuttingedge.author=mymngmember.user
494
    sys_cuttingedge.parent_issue_id=systech_concept.id
495
    sys_cuttingedge.save
496

    
497
    rel=IssueRelation.new
498
    rel.relation_type="blocks"
499
    rel.issue_from=sysprelim_techconcept
500
    sys_cuttingedge.relations_to << rel
501
    rel.save
502

    
503
    astro_devplan=Issue.new
504
    astro_devplan.tracker=support_tracker
505
    astro_devplan.project=myproject
506
    astro_devplan.subject="Science Instrument Plan"
507
    astro_devplan.description="This plan is part of the Science final concept.  It describes the methodologies, processes and tools used by the team to develop science for this astronomical instrument.
508

509
The plan must pay attention to the important topics in Science for astronomical instruments:
510

511
* Generic Science plan for an instrument.
512
* Science case research procedure.
513
* Publication policy of the instrument's products.
514
* Imaging Science for manipulating the images obtained by the instrument.
515
* Science broadcast for distributing the observation data.
516
* Operation for commanding the instrument."
517
    astro_devplan.status=newstatus
518
    astro_devplan.assigned_to=myastromember.user
519
    astro_devplan.fixed_version=techversion
520
    astro_devplan.author=mymngmember.user
521
    astro_devplan.parent_issue_id=science_final_concept.id
522
    astro_devplan.save
523

    
524
    astroprelim_techconcept=Issue.new
525
    astroprelim_techconcept.tracker=feature_tracker
526
    astroprelim_techconcept.project=myproject
527
    astroprelim_techconcept.subject="Science cases proposal"
528
    astroprelim_techconcept.description="This document is the starting point for the rest of the team.  It describes briefly the kind of science that can be worthy to develop an istrument for, and shows the first ideas about the kind of instrument to make them possible."
529
    astroprelim_techconcept.status=newstatus
530
    astroprelim_techconcept.assigned_to=myastromember.user
531
    astroprelim_techconcept.fixed_version=scversion
532
    astroprelim_techconcept.author=mymngmember.user
533
    astroprelim_techconcept.parent_issue_id=science_final_concept.id
534
    astroprelim_techconcept.save
535

    
536
    astro_cuttingedge=Issue.new
537
    astro_cuttingedge.tracker=feature_tracker
538
    astro_cuttingedge.project=myproject
539
    astro_cuttingedge.subject="Science cutting-edge prospections"
540
    astro_cuttingedge.description="To ensure the feasibility of the Science concept, the team must provide implemented some science prototypes (simulations) or study models that demonstrate the validity and good performance of the key concepts of the instrument's science (algorithms to be used, papers that demonstrate the feasibility and consistency of the science cases...). These key parts are directly linked with the project's risk in terms of feasibility or security."
541
    astro_cuttingedge.status=newstatus
542
    astro_cuttingedge.assigned_to=myastromember.user
543
    astro_cuttingedge.fixed_version=techversion
544
    astro_cuttingedge.author=mymngmember.user
545
    astro_cuttingedge.parent_issue_id=science_final_concept.id
546
    astro_cuttingedge.save
547

    
548
    rel=IssueRelation.new
549
    rel.relation_type="blocks"
550
    rel.issue_from=astroprelim_techconcept
551
    astro_cuttingedge.relations_to << rel
552
    rel.save
553

    
554
    mng_devplan=Issue.new
555
    mng_devplan.tracker=support_tracker
556
    mng_devplan.project=myproject
557
    mng_devplan.subject="Project management Development Plan"
558
    mng_devplan.description="This plan is part of the Project management technical concept.  It describes the methodologies, processes and tools used by the team to develop project management for this astronomical instrument.
559

560
The plan must pay attention to the important topics in Project management for astronomical instruments:
561

562
* Generic Project management development.
563
* Ctrl Project management for handling high-integrated teams in terms of real-time device development.
564
* Human resources management for science institutions.
565
* Procedures to subcontract parts of the system at cutting edge technology contractors.
566
* Science Project management for interacting with the scientific community.
567
* Product Life Project management.
568
* Legal Project Management.
569
* Public money management."
570
    mng_devplan.status=newstatus
571
    mng_devplan.assigned_to=mymngmember.user
572
    mng_devplan.fixed_version=techversion
573
    mng_devplan.author=mymngmember.user
574
    mng_devplan.parent_issue_id=mng_final_concept.id
575
    mng_devplan.save
576

    
577
    mngprelim_techconcept=Issue.new
578
    mngprelim_techconcept.tracker=feature_tracker
579
    mngprelim_techconcept.project=myproject
580
    mngprelim_techconcept.subject="Technical concept Project plan"
581
    mngprelim_techconcept.description="This document describes the planning for the technical concept stage."
582
    mngprelim_techconcept.status=newstatus
583
    mngprelim_techconcept.assigned_to=mymngmember.user
584
    mngprelim_techconcept.fixed_version=scversion
585
    mngprelim_techconcept.author=mymngmember.user
586
    mngprelim_techconcept.parent_issue_id=mng_final_concept.id
587
    mngprelim_techconcept.save
588

    
589
    mng_cuttingedge=Issue.new
590
    mng_cuttingedge.tracker=feature_tracker
591
    mng_cuttingedge.project=myproject
592
    mng_cuttingedge.subject="Project management cutting-edge prospections"
593
    mng_cuttingedge.description="To ensure the feasibility of the Project management plan, some of the management project problems must be faced and the neededd resources must be protected under contract (personnel, money, technology, tools,...).
594
    These 'problems to be faced' are directly linked with the project's risk in terms of feasibility, or security."
595
    mng_cuttingedge.status=newstatus
596
    mng_cuttingedge.assigned_to=mymngmember.user
597
    mng_cuttingedge.fixed_version=techversion
598
    mng_cuttingedge.author=mymngmember.user
599
    mng_cuttingedge.parent_issue_id=mng_final_concept.id
600
    mng_cuttingedge.save
601

    
602
    rel=IssueRelation.new
603
    rel.relation_type="blocks"
604
    rel.issue_from=mngprelim_techconcept
605
    mng_cuttingedge.relations_to << rel
606
    rel.save
607

    
608
    # Once we have this tree, we must set some of the tasks to be performed on the 01_SC milestone
609
    # these tasks will be:
610
    # * Science cases proposal
611
    # * Technical concept project plan
612
    # * Preliminary system technical concept
613
    # * Preliminary sw-system technical concept
614
    # * Preliminary hw-system technical concept
615
    # * Preliminary mech-system technical concept
616
    # * Preliminary optics-system technical concept
617
    # astroprelim_techconcept.fixed_version=scversion
618
    # astroprelim_techconcept.save
619
    # mngprelim_techconcept.fixed_version=scversion
620
    # mngprelim_techconcept.save
621
    # sysprelim_techconcept.fixed_version=scversion
622
    # sysprelim_techconcept.save
623
    # swprelim_techconcept.fixed_version=scversion
624
    # swprelim_techconcept.save
625
    # hwprelim_techconcept.fixed_version=scversion
626
    # hwprelim_techconcept.save
627
    # mechprelim_techconcept.fixed_version=scversion
628
    # mechprelim_techconcept.save
629
    # optprelim_techconcept.fixed_version=scversion
630
    # optprelim_techconcept.save
631

    
632
    # Now we will attach the dates to the versions
633
    # for convention we will put 2 weeks for 01_SC and
634
    # a month for the 02_TC
635
    #now=Date.today
636
    now=Time.parse("Jul 15")
637
    sctime=now+(16)
638
    tctime=sctime+(31)
639

    
640
    scversion.effective_date=sctime
641
    scversion.save
642
    techversion.effective_date=tctime
643
    techversion.save
644

    
645
    # In this moment we have the starting point for our development
646
    # the key dates are given and the main tasks are defined
647
    # so the people must begin to work
648

    
649
    # we copy the project to have a snapshot of this moment
650

    
651
    # Now we begin the first tasks in parallel
652

    
653
    # Astronomer opens the science case and begins doing it in a wiki
654
    # Astronomer opens the science plan and obtain a copy from the institution's one and study it to adapt it to the current project.
655

    
656

    
657
  end
658
end
Terms of use | Privacy policy