Ticket #54 (new defect)
Opened 6 years ago
Data loss when exporting a repository
| Reported by: | gszundy | Owned by: | dema |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.5 |
| Component: | Exporter | Version: | 0.4 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I´m currently running revision 90 from the HyperDE SVN repository.
In my model I have a class Authorship with a computed attribute named displayLabel which is marked as being the label for the given class.
The code for the attribute is the following:
publicationTitle = self.is_on.first.title authorName = self.is_by.first.name if publicationTitle.length > 40
publicationTitle = "#{publicationTitle[0..39]}..."
end "#{publicationTitle} (#{self.order}) #{authorName}"
When I export the repository, the resulting YML file contains the declaration of the class label as being the attribute displayLabel , but the declaration of the attribute itself is completely lost. Bellow is the resulting YML for the Authorship class.
Authorship:
attrs: [{order: Integer}] links: [[{IsBy?: Person}], [{IsOn?: Publication}, HasAuthorship?]] label: displayLabel
