-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'chore_release-8.0.0' into feat_components-labwarestackr…
…ender
- Loading branch information
Showing
302 changed files
with
5,392 additions
and
2,092 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { GET, request } from '../request' | ||
|
||
import type { DownloadedCsvFileResponse } from './types' | ||
import type { ResponsePromise } from '../request' | ||
import type { HostConfig } from '../types' | ||
|
||
export function getCsvFileRaw( | ||
config: HostConfig, | ||
fileId: string | ||
): ResponsePromise<DownloadedCsvFileResponse> { | ||
return request<DownloadedCsvFileResponse>( | ||
GET, | ||
`/dataFiles/${fileId}/download`, | ||
null, | ||
config | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { getCsvFileRaw } from './getCsvFileRaw' | ||
export { uploadCsvFile } from './uploadCsvFile' | ||
|
||
export * from './types' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { PUT, request } from '../request' | ||
|
||
import type { HostConfig } from '../types' | ||
import type { ResponsePromise } from '../request' | ||
import type { | ||
ErrorRecoveryPolicy, | ||
IfMatchType, | ||
UpdateErrorRecoveryPolicyRequest, | ||
UpdateErrorRecoveryPolicyResponse, | ||
} from './types' | ||
import type { RunCommandError, RunTimeCommand } from '@opentrons/shared-data' | ||
|
||
export type RecoveryPolicyRulesParams = Array<{ | ||
commandType: RunTimeCommand['commandType'] | ||
errorType: RunCommandError['errorType'] | ||
ifMatch: IfMatchType | ||
}> | ||
|
||
export function updateErrorRecoveryPolicy( | ||
config: HostConfig, | ||
runId: string, | ||
policyRules: RecoveryPolicyRulesParams | ||
): ResponsePromise<UpdateErrorRecoveryPolicyResponse> { | ||
const policy = buildErrorRecoveryPolicyBody(policyRules) | ||
|
||
return request< | ||
UpdateErrorRecoveryPolicyResponse, | ||
UpdateErrorRecoveryPolicyRequest | ||
>(PUT, `/runs/${runId}/errorRecoveryPolicy`, { data: policy }, config) | ||
} | ||
|
||
function buildErrorRecoveryPolicyBody( | ||
policyRules: RecoveryPolicyRulesParams | ||
): ErrorRecoveryPolicy { | ||
return { | ||
policyRules: policyRules.map(rule => ({ | ||
matchCriteria: { | ||
command: { | ||
commandType: rule.commandType, | ||
error: { | ||
errorType: rule.errorType, | ||
}, | ||
}, | ||
}, | ||
ifMatch: rule.ifMatch, | ||
})), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,16 @@ For more details about this release, please see the full [technical change log][ | |
|
||
[technical change log]: https://github.com/Opentrons/opentrons/releases | ||
|
||
## Internal Release 2.0.0-alpha.4 | ||
|
||
This internal release, pulled from the `edge` branch, contains features being developed for 8.0.0. It's for internal testing only. There are no changes to `buildroot`, `ot3-firmware`, or `oe-core` since the last internal release. | ||
|
||
- [Opentrons changes since the latest stable release](https://github.com/Opentrons/opentrons/compare/[email protected]) | ||
- [Opentrons changes since the last internal release](https://github.com/Opentrons/opentrons/compare/[email protected]@2.0.0-alpha.4) | ||
- [Flex changes since last stable release](https://github.com/Opentrons/oe-core/compare/[email protected]) | ||
- [Flex firmware changes since last stable release](https://github.com/Opentrons/ot3-firmware/compare/v52...internal@v10) | ||
- [OT2 changes since last stable release](https://github.com/Opentrons/buildroot/compare/[email protected]) | ||
|
||
## Internal Release 2.0.0-alpha.3 | ||
|
||
This internal release, pulled from the `edge` branch, contains features being developed for 8.0.0. It's for internal testing only. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.