Issue extracting change summaries of earlier version #1838
-
Hi I've been having issues when trying to use the extractChangeSummaries() method which is part of the ChangeSummaryManager class. When I specify the ChangeSummaryExtractOptions' currentVersionOnly parameter as true, it works fine. When I want to extract the change summaries from earlier versions than that of the briefcase currently cached, it throws the error pictured below. I also have the same issue with using the BriefcaseManager's processChangesets() method when trying to revert the briefcase to a previous changeset (although it works fine when advancing the briefcase to a later changeset). I've included the code below. The first snippet involves the obtaining of the briefcaseProps. This then gets fed straight into the next code snippet which tries to extract the change summaries. First code snippet:
Second code snippet:
Thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@nn15296 would you mind supplying the version of the imodeljs-backend package you are using? |
Beta Was this translation helpful? Give feedback.
-
@nn15296 , ChangeSummaryManager.extractChangeSummaries() relied on reversing change sets starting from the latest version supplied. However, we have since outlawed reversing schema change sets, and the method could fail if we did encounter such a case. Therefore starting with version 2.18.0, we ended up deprecating ChangeSummaryManager.extractChangeSummaries() and are replacing it with ChangeSummaryManager.createChangeSummaries() (for a range of change sets), and ChangeSummaryManger.createChangeSummary() (for a single change set - i.e., current version). Please consider upgrading to 2.18.0, and switching to these methods. Here are the change notes - https://www.itwinjs.org/changehistory/2.18.0/#change-summary-api-changes |
Beta Was this translation helpful? Give feedback.
@nn15296 , ChangeSummaryManager.extractChangeSummaries() relied on reversing change sets starting from the latest version supplied. However, we have since outlawed reversing schema change sets, and the method could fail if we did encounter such a case.
Therefore starting with version 2.18.0, we ended up deprecating ChangeSummaryManager.extractChangeSummaries() and are replacing it with ChangeSummaryManager.createChangeSummaries() (for a range of change sets), and ChangeSummaryManger.createChangeSummary() (for a single change set - i.e., current version).
Please consider upgrading to 2.18.0, and switching to these methods. Here are the change notes - https://www.itwinjs.org/changehistory/2…