fix-orchestra icon indicating copy to clipboard operation
fix-orchestra copied to clipboard

[repository schema] latestEP attribute is redundant

Open donmendelson opened this issue 3 years ago • 2 comments

This attribute of <fields> is redundant to metadata for the repository

donmendelson avatar Mar 22 '21 18:03 donmendelson

I believe this is a legacy feature from the Basic repository that had separate files for abbreviations, datatypes, enums, fields, components, messages, message contents, categories, sections. All of these files hat latestEP as an attribute of their root element. It indicates the last time an element within this group was added or updated. It is redundant as the highest EP number can easily be determined by a script checking the pedigree attributes (e.g. addedEP, updatedEP) of its sub-elements.

If we remove it for fields then it should also be removed for all other elements in the list above. The root element of the files in the Basic repository also had an attribute "version" that was redundant and only exists once in the Unified repository.

kleihan avatar Mar 23 '21 08:03 kleihan

The attribute still needs to be removed from the fields element, correct?

	<xs:element name="fields">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="field" type="fixr:fieldType" minOccurs="0" maxOccurs="unbounded">
					<xs:key name="typeKey">
						<xs:selector xpath="."/>
						<xs:field xpath="@type|@codeSet"/>
					</xs:key>
				</xs:element>
				<xs:element name="annotation" type="fixr:annotation" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="latestEP" type="fixr:EP_t"/>
			<xs:attribute ref="xml:base"/>
		</xs:complexType>
                ...

kleihan avatar Mar 04 '23 09:03 kleihan

Implemented in RC1

kleihan avatar Jun 03 '24 08:06 kleihan