Skip to content

Commit b314be5

Browse files
authored
[PLT-2769] remove project setup complete restriction (#2002)
1 parent a508d19 commit b314be5

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

libs/labelbox/src/labelbox/schema/project.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -564,15 +564,8 @@ def upsert_instructions(self, instructions_file: str) -> None:
564564
565565
Raises:
566566
ValueError:
567-
* project must be setup
568567
* instructions file must have a ".pdf" or ".html" extension
569568
"""
570-
571-
if self.setup_complete is None:
572-
raise ValueError(
573-
"Cannot attach instructions to a project that has not been set up."
574-
)
575-
576569
frontend = self.labeling_frontend()
577570

578571
if frontend.name != "Editor":
@@ -705,7 +698,6 @@ def connect_ontology(self, ontology) -> None:
705698
query_str, {"ontologyId": ontology.uid, "projectId": self.uid}
706699
)
707700
timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
708-
self.update(setup_complete=timestamp)
709701

710702
def _connect_default_labeling_front_end(self, ontology_as_dict: dict):
711703
labeling_frontend = self.labeling_frontend()

libs/labelbox/tests/integration/test_project.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,6 @@ def test_extend_reservations(project):
140140

141141

142142
def test_attach_instructions(client, project):
143-
with pytest.raises(ValueError) as execinfo:
144-
project.upsert_instructions("tests/integration/media/sample_pdf.pdf")
145-
assert (
146-
str(execinfo.value)
147-
== "Cannot attach instructions to a project that has not been set up."
148-
)
149143
ontology_builder = OntologyBuilder(
150144
tools=[
151145
Tool(tool=Tool.Type.BBOX, name="test-bbox-class"),

0 commit comments

Comments
 (0)