Skip to content

Releases: IndicoDataSolutions/indico-client-python

5.3.0-alpha1

27 Jul 14:57
4177f22

Choose a tag to compare

5.3.0-alpha1 Pre-release
Pre-release

What's Changed

Full Changelog: 5.3.0-alpha0...5.3.0-alpha1

5.3.0-alpha0

25 Jul 15:41
c7657cc

Choose a tag to compare

5.3.0-alpha0 Pre-release
Pre-release

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

Full Changelog: 5.1.4...5.3.0-alpha0

5.1.4

29 Jun 16:10
b35174f

Choose a tag to compare

Adds remove file mutation, downgrades msgpack, and fixes an error in OCR config pass through.

What's Changed

New Contributors

Full Changelog: 5.1.3...5.1.4

5.1.3

12 May 15:32
a09d4c1

Choose a tag to compare

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))

New Contributors

Full Changelog: 5.1.2...5.1.3

5.1.2

29 Apr 19:54
ab79609

Choose a tag to compare

Fixes an issue with recordSubmission still being present on workflows, fix tox test issue.

5.1

27 Apr 19:59
97d2965

Choose a tag to compare

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

30 Mar 15:02
09c66ca

Choose a tag to compare

Fixes a bug with RetrieveStorageObject that might make fetching certain images fail.

5.0.0 - Workflow Components

21 Mar 17:59
d221fce

Choose a tag to compare

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

16 Mar 14:37
7294665

Choose a tag to compare

5.0 RC1 Pre-release
Pre-release

Release candidate 1 of the new 5.0 client

Adds get_ipa_version() to client

14 Mar 15:33
e4deb11

Choose a tag to compare

Adds the ability to get IPA version in the client to check what version of the platform