mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-31 04:25:29 +00:00
fix(timelineAPI): fix issue with semantic versioning (#5033)
This commit is contained in:
parent
a39a8b26a2
commit
9af78cf83d
@ -427,9 +427,9 @@ public class TimelineServiceImpl implements TimelineService {
|
||||
ChangeTransaction element = transactionList.get(i);
|
||||
result.getChangeEvents().addAll(element.getChangeEvents());
|
||||
maxSemanticChangeType =
|
||||
result.getSemVerChange().compareTo(element.getSemVerChange()) >= 0 ? result.getSemVerChange()
|
||||
maxSemanticChangeType.compareTo(element.getSemVerChange()) >= 0 ? maxSemanticChangeType
|
||||
: element.getSemVerChange();
|
||||
maxSemVer = result.getSemVer().compareTo(element.getSemVer()) >= 0 ? result.getSemVer() : element.getSemVer();
|
||||
maxSemVer = maxSemVer.compareTo(element.getSemVer()) >= 0 ? maxSemVer : element.getSemVer();
|
||||
}
|
||||
result.setSemVerChange(maxSemanticChangeType);
|
||||
result.setSemanticVersion(maxSemVer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user