diff --git a/app/assets/javascripts/oxalis/view/settings/dataset_settings_view.js b/app/assets/javascripts/oxalis/view/settings/dataset_settings_view.js index 691e96797f4..07730d1ff81 100644 --- a/app/assets/javascripts/oxalis/view/settings/dataset_settings_view.js +++ b/app/assets/javascripts/oxalis/view/settings/dataset_settings_view.js @@ -24,7 +24,6 @@ import { ColorSetting, } from "oxalis/view/settings/setting_input_views"; import Utils from "libs/utils"; -import Constants from "oxalis/constants"; const Panel = Collapse.Panel; const Option = Select.Option; @@ -97,13 +96,11 @@ class DatasetSettings extends React.PureComponent { value={this.props.datasetConfiguration.fourBit} onChange={_.partial(this.props.onChange, "fourBit")} /> - {this.props.viewMode === Constants.MODE_PLANE_TRACING ? ( - - ) : null} + Date.parse(b.merged_at) - Date.parse(a.merged_at)); - const releaseNotes = parsedJSON // Filter PRs that were merged into master and have a PR description .filter(pr => pr.merged_at != null && pr.base.ref === "master" && pr.body.length > 0) + // Sort PRs by merge date + .sort((a, b) => Date.parse(b.merged_at) - Date.parse(a.merged_at)) // Extract the Mailable description .map(pr => { const sections = pr.body.split("###"); @@ -45,8 +46,8 @@ const RELEASE_NOTES_REGEX = /Mailable description[^:]*:\r?\n([^]*)/; .reduce((result, pr) => `${result}${pr.description}\n(${pr.url})\n\n`, ""); // Write the release notes to a file - fs.writeFile("./release_notes.txt", releaseNotes, (err) => { - if(err) { + fs.writeFile("./release_notes.txt", releaseNotes, err => { + if (err) { console.log(`Error while saving the release notes: ${err}`); } console.log("Release notes were saved to release_notes.txt");