Ticket #555 (closed Task: fixed)

Opened 2 years ago

Last modified 2 years ago

store the numerical requirement id in the questionnaire

Reported by: rupert Owned by: gerry
Priority: blocker Milestone: V1.0 CMIP5 Questionnaire Release
Component: WP6 - CMIP5 Questionnaire Version: 1.0
Keywords: Cc:
Requirement: http://metaforclimate.eu/Work-Package-2/Developing-the-CIM/Project-Requirements-summary.htm

Description

Hi Bryan,

could you store the numerical requirement id in the numerical requirement class please. The id is already read in by the questionnaire on line 28 (or thereabouts) of XMLActivityReader.py but is not stored.

It is not stored as it is not needed by the questionnaire (which uses object referencing) but the CIM will use it as the way a conformance references a numerical requirement.

I tried to do it myself but clearly do not know enough about how django works to get it working!

Thanks

-- Rupert

Change History

comment:1 Changed 2 years ago by gerry

  • Owner changed from bryan to gerry
  • Status changed from new to assigned

Bryan/Rupert?,

I think I can take this one - should be a one line update to the numericalRequirement function within XMLactivityReader.py (if I have understood things correctly). One question though, is it wise to store this in the database as 'ID' or should I change this to something like 'NR_ID', i.e. would having 'ID' clash with the actual id of the database element?

comment:2 Changed 2 years ago by gerry

I've updated the questionnaire to store the numericalRequirement IDs in the database. Rupert, I've changed the actual name from 'id' to 'nr_id'.

comment:3 Changed 2 years ago by gerry

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.