labelbox-python icon indicating copy to clipboard operation
labelbox-python copied to clipboard

Enable create_ontology to upsert

Open thair116 opened this issue 11 months ago • 0 comments

Description

For my project, I have created a large number of Ontologies using the labelbox python client. I'd like to be able to make small changes to the Ontologies in-place, without having to create new Ontologies and then connect them to the projects.

A simple change to create_ontology to take an optional ontology id and thus enable it to upsert was the easiest way to do this. Is this something we could get merged in? If so I can flesh this out more and add tests.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Document change (fix typo or modifying any markdown files, code comments or anything in the examples folder only)

All Submissions

  • [ ] Have you followed the guidelines in our Contributing document?
  • [x] Have you provided a description?
  • [ ] Are your changes properly formatted?

New Feature Submissions

  • [ ] Does your submission pass tests?
  • [ ] Have you added thorough tests for your new feature?
  • [ ] Have you commented your code, particularly in hard-to-understand areas?
  • [ ] Have you added a Docstring?

Changes to Core Features

  • [ ] Have you written new tests for your core changes, as applicable?
  • [ ] Have you successfully run tests with your changes locally?
  • [ ] Have you updated any code comments, as applicable?

thair116 avatar Nov 25 '24 20:11 thair116