Releases: IndicoDataSolutions/indico-client-python
5.3.0-alpha1
What's Changed
- ADD id for sub file in doc report by @meghanhickey in #185
Full Changelog: 5.3.0-alpha0...5.3.0-alpha1
5.3.0-alpha0
What's Changed
- [CAT-243] DeleteWorkflow mutation, test, & doc update by @meghanhickey in #176
- [CAT-232] FIX: Update Document Report Filter behavior by @meghanhickey in #178
- Added error messaging for Dataset basetype methods by @andrew8bit in #177
- [CAT-250] FIX update model type enum to include all types that exist in the platform by @meghanhickey in #181
- [CAT-108] Enable autoprocessing by default for AddData by @meghanhickey in #180
- ADD: created_by and deleted fields to document report by @meghanhickey in #184
New Contributors
- @meghanhickey made their first contribution in #175
- @andrew8bit made their first contribution in #177
Full Changelog: 5.1.4...5.3.0-alpha0
5.1.4
Adds remove file mutation, downgrades msgpack, and fixes an error in OCR config pass through.
What's Changed
- updating submission examples to be more realistic by @Scott771 in #164
- ADD: remove file mutation by @madisonmay in #156
- DEV-9247 ADD: new queries related to example list, partial labels by @madisonmay in #170
- [DEV-9223]: downgrade msgpack by @jacobmanderson in #171
- [CAT-240] pin requests-mock since newer version is causing error by @goatrocks in #174
- DEV-9352 FIX: issue with ocr config pass through by @madisonmay in #173
New Contributors
- @jacobmanderson made their first contribution in #171
Full Changelog: 5.1.3...5.1.4
5.1.3
What's Changed
Added reviews filter for submissions as SubmissionReviewsFilter which can be used with a SubmissionsFilter to fetch Submissions. Updated CreateExport to match 5.x
Old query:
mutation CreateExport(
$datasetId: Int!,
$columnIds: [Int],
$subsetIds: [Int],
$labelsetIds: [Int],
$fileInfo: Boolean,
$combineLabels: Boolean,
$anonymous: Boolean
) {
createExport(
datasetId: $datasetId,
columnIds: $columnIds,
subsetIds: $subsetIds,
fileInfo: $fileInfo,
labelsetIds: $labelsetIds,
combineLabels: $combineLabels
anonymous: $anonymous
) {
id,
datasetId,
name,
status,
downloadUrl,
columnIds,
labelsetIds,
subsetIds,
anonymous
}
}
New query:
mutation CreateExport(
$datasetId: Int!,
$labelsetId: Int!,
$columnIds: [Int],
$modelIds: [Int],
$frozenLabelsetIds: [Int],
$combineLabels: LabelResolutionStrategy,
$fileInfo: Boolean,
$anonymous: Boolean
) {
createExport(
datasetId: $datasetId,
labelsetId: $labelsetId,
columnIds: $columnIds,
modelIds: $modelIds,
frozenLabelsetIds: $frozenLabelsetIds,
combineLabels: $combineLabels,
fileInfo: $fileInfo,
anonymous: $anonymous
) {
id,
datasetId,
labelsetId,
name,
status,
columnIds,
modelIds,
frozenLabelsetIds,
anonymous
downloadUrl,
}
}
Old export call:
export = client.call(CreateExport(dataset_id=dataset.id, wait=True))
New export call:
export = client.call(CreateExport(dataset_id=airlines_dataset.id, labelset_id=dataset.labelsets[0].id wait=True))
- [CAT-130] - Add reviews filter by @fitzworkhub in #161
- Update CreateExport query by @nateshim-indico in #162
New Contributors
- @fitzworkhub made their first contribution in #161
Full Changelog: 5.1.2...5.1.3
5.1.2
5.1
What's Changed
This release adds support for some changes in version 5.1, including an updated query for adding labels, the ability to select v3 results file versions, and some new workflow audit information.
- [CAT-203] Add v3 results file by @goatrocks in #157
- [CAT-196] Add Labels v2 for 5.1 by @goatrocks in #158
- [CAT-207][CAT-197] Add workflow audit information to workflow object in client by @nkassis in #151
Full Changelog: 5.0.1...5.1.0
5.0.1 - minor bugfix
Fixes a bug with RetrieveStorageObject that might make fetching certain images fail.
5.0.0 - Workflow Components
5.0 deprecates the existing method of creating models and questionnaires and unifies them under the AddModelGroupComponent call. This release requires a minimum platform version of 5.0. It will not work with lower platform versions. Find out more about these new changes by checking the documentation on workflows and components here
In 5.0, a component is akin to a step in the workflow process that can be linked with other components in sequence. Now, CreateModelGroup and CreateQuestionnaire redirect to the new AddModelGroupComponent call and are marked deprecated, however both now require the additional parameter of workflow_id and after_component_id. These define the workflow to create the component in, and the workflow component that the new Model Group or Questionnaire should follow. Previously, the creation of a workflow was implicit with CreateModelGroup, but now it has to be explicitly created prior to creating a model group, either through the UI or by using CreateWorkflow(self, dataset_id: int, name: str). Users should migrate as soon as feasible to the new pattern as both CreateModelGroup and CreateQuestionnaire will be removed in a future release.
You can find the id of a component by querying for the Workflow and either iterating through the components list or by using component_by_type()or model_group_by_name() on the Workflow object.
Calling CreateModelGroup now looks something like this:
after_component = airlines_workflow.component_by_type("INPUT_OCR_EXTRACTION")
mg: ModelGroup = client.call(
CreateModelGroup(
name=name,
workflow_id=airlines_workflow.id,
dataset_id=airlines_dataset.id,
after_component_id=after_component.id,
source_column_id=airlines_dataset.datacolumn_by_name("Text").id,
labelset_id=airlines_dataset.labelset_by_name("Target_1").id,
)
)Calling AddModelGroup looks like this:
after_component_id = new_workflow.component_by_type("INPUT_OCR_EXTRACTION").id
modelgroupreq = AddModelGroupComponent(
name=workflow_name,
dataset_id=dataset.id,
after_component_id=after_component_id,
source_column_id=dataset.datacolumn_by_name(datacolumn).id,
labelset_column_id=dataset.labelset_by_name(labelset_name).id,
workflow_id=new_workflow.id
)
workflow: Workflow = client.call(modelgroupreq)
# workflow has the model_group in a component.AddModelGroupComponent does not have a wait parameter currently, users can define now they want to wait by doing something like:
model_group = updated_workflow.model_group_by_name("my_classification_model")
status = client.call(GetModelGroupSelectedModelStatus(id=model_group.id))
while status not in ["FAILED", "COMPLETE", "NOT_ENOUGH_DATA"]:
status = client.call(GetModelGroupSelectedModelStatus(id=model_group.id))5.0 RC1
Release candidate 1 of the new 5.0 client
Adds get_ipa_version() to client
Adds the ability to get IPA version in the client to check what version of the platform