Ticket #872 (new Issue)
versioning documents when submitting to CMIP5
|Reported by:||rupert||Owned by:||bryan|
|Priority:||blocker||Milestone:||V1.2 Questionnaire release|
|Component:||WP6 - CMIP5 Questionnaire||Version:|
Description (last modified by rupert) (diff)
When a plaftform document is re-submitted to CMIP5 due to it being edited, the version number does not change, although the persisted xml document is not overwritten as the new one has an additional "_" compared with the last. Further, the related feed gets a new entry but this entry is identical to the previous one. After my email about this Bryan has suggested that this does not sound correct.
Here are the emails:
Hi Bryan/Gerry, When is the version of a document meant to change? I've just played with the latest version of the CIM (after enabling the submit to CMIP5 button) and the platform document version does not appear to increment. So, for example ... 1: Create a valid platform 2: submit to CMIP5 3: edit the platform details and save. 4: submit to CMIP5. In both submissions the ID and version of instance is the same but the persisted document gets an additional "_" added to it so we don't lose the previous version. This continues with another save and submit cycle (i.e the latest one gets two "_"'s). So we appear to be persisting updated documents by adding an underscore to the file name. Is that what you expect? If so, when does the version change? I've looked at the relevant feed and we get exactly the same feed information replicated each time we submit. Is that what is expected? How does the software reading the feed know about using "_" for updated versions? Thanks for the clarification -- Rupert
This sounds wrong! (I wont be able to think more about it for at least a week) B
Hi Bryan, OK, I'll ticket you :-). Beware, this is my opening question about versions. There may be some other problems (related to our conversation yesterday) depending on how it all works. Cheers -- Rupert
For information, the additional problems I am talking about in the above email are:
1: if we increment version numbers for documents and have separate submit to CMIP5 buttons then we will (might?) end up referencing the wrong version.
2: What gets incremented when we submit a model document as this consists of lots of documents in a hierarchy. Do they all get incremented? What happens when we only update one component and resubmit. Do all components get their version incremented?