cs-models 0.0.685__py3-none-any.whl → 0.0.687__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cs-models might be problematic. Click here for more details.

@@ -42,6 +42,7 @@ class AssistantCommandModel(Base):
42
42
  label = Column(Text, nullable=False)
43
43
  result = Column(Text)
44
44
  llm_result = Column(Text)
45
+ error = Column(Text, nullable=True)
45
46
  internal_doc = Column(Boolean, nullable=True)
46
47
  created_at = Column(DateTime, nullable=False, default=lambda: datetime.utcnow())
47
48
  updated_at = Column(
@@ -103,6 +103,7 @@ class AssistantCommandResourceSchema(Schema):
103
103
  lower_neighbour_ids = fields.Method(serialize="serialize_lower_neighbours")
104
104
  result = AssistantCommandResultField(required=True, allow_none=True)
105
105
  llm_result = AssistantCommandLLMResultField(allow_none=True)
106
+ error = fields.String(allow_none=True)
106
107
  internal_doc = fields.Boolean(allow_none=True)
107
108
  created_at = fields.DateTime(dump_only=True)
108
109
  updated_at = fields.DateTime(dump_only=True)
@@ -10,11 +10,6 @@ class SmartGridCellModel(Base):
10
10
  __tablename__ = "smart_grid_cells"
11
11
 
12
12
  id = Column(Integer, primary_key=True)
13
- block_id = Column(
14
- Integer,
15
- ForeignKey("workbook_blocks.id"),
16
- nullable=False,
17
- )
18
13
  row = Column(Integer, nullable=False)
19
14
  col = Column(Integer, nullable=False)
20
15
  type = Column(String(20), nullable=False)
@@ -33,13 +28,6 @@ class SmartGridCellModel(Base):
33
28
  onupdate=lambda: datetime.utcnow(),
34
29
  )
35
30
 
36
- # These are ORM fields. Don't need to be added in the corresponding migration.
37
- # https://docs.sqlalchemy.org/en/14/orm/tutorial.html#building-a-relationship
38
- workbook_block = relationship(
39
- "WorkbookBlockModel",
40
- back_populates="grid",
41
- )
42
-
43
31
  user_query = relationship(
44
32
  "AssistantUserQueryModel",
45
33
  )
@@ -7,7 +7,6 @@ class SmartGridCellResourceSchema(Schema):
7
7
  """Class for AssistantCommandResource schema"""
8
8
 
9
9
  id = fields.Integer(dump_only=True)
10
- block_id = fields.Integer(required=True)
11
10
  row = fields.Integer(required=True)
12
11
  col = fields.Integer(required=True)
13
12
  type = fields.String(required=True)
@@ -5,7 +5,6 @@ from sqlalchemy.orm import relationship
5
5
 
6
6
  from ...database import Base
7
7
  from ..WorkbookBlockComment.models import WorkbookBlockCommentModel
8
- from ..SmartGridCell.models import SmartGridCellModel
9
8
 
10
9
 
11
10
  class WorkbookBlockModel(Base):
@@ -44,10 +43,3 @@ class WorkbookBlockModel(Base):
44
43
  order_by=WorkbookBlockCommentModel.sequence_number,
45
44
  back_populates="workbook_block",
46
45
  )
47
-
48
- grid = relationship(
49
- "SmartGridCellModel",
50
- primaryjoin="and_(WorkbookBlockModel.id==SmartGridCellModel.block_id, "
51
- "or_(SmartGridCellModel.is_deleted==False, SmartGridCellModel.is_deleted==None))",
52
- back_populates="workbook_block",
53
- )
@@ -4,9 +4,6 @@ from marshmallow import Schema, fields
4
4
  from ..WorkbookBlockComment.schemas import (
5
5
  WorkbookBlockCommentResourceSchema,
6
6
  )
7
- from ..SmartGridCell.schemas import (
8
- SmartGridCellResourceSchema
9
- )
10
7
 
11
8
 
12
9
  class WorkbookBlockDataField(fields.Field):
@@ -60,11 +57,6 @@ class WorkbookBlockResourceSchema(Schema):
60
57
  many=True,
61
58
  dump_only=True,
62
59
  )
63
- grid = fields.Nested(
64
- SmartGridCellResourceSchema(exclude=("block_id",)),
65
- many=True,
66
- dump_only=True,
67
- )
68
60
  is_deleted = fields.Boolean(allow_none=True)
69
61
  created_at = fields.DateTime(dump_only=True)
70
62
  updated_at = fields.DateTime(dump_only=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cs-models
3
- Version: 0.0.685
3
+ Version: 0.0.687
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -27,8 +27,8 @@ cs_models/resources/Assignee/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
27
27
  cs_models/resources/Assignee/models.py,sha256=_f0_UwzF1gbOlU0t0l-9UIi0E4vaIS5VsHeOxc698SE,617
28
28
  cs_models/resources/Assignee/schemas.py,sha256=N4_upICR1Cd_B45LHpOly7FEwWhAB1fXUP4y60OiezE,269
29
29
  cs_models/resources/AssistantCommand/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- cs_models/resources/AssistantCommand/models.py,sha256=_23uhE2O5XeaTiLgHdfnswqv1-lkLJ_qi6mTxsfrmGE,2115
31
- cs_models/resources/AssistantCommand/schemas.py,sha256=HxJQHLD8WolXkS4r-VBymxWs9QuYaFBX1c2NIF2CobQ,3746
30
+ cs_models/resources/AssistantCommand/models.py,sha256=qZ5yGM-BCIIT-Kh5cFcbNVMNtunV7BLwfRsgGzyaSdg,2155
31
+ cs_models/resources/AssistantCommand/schemas.py,sha256=miJ9NXIKYK4p0Oke5N3kEVuFI8uUZwGLVKb0UWcNlEw,3789
32
32
  cs_models/resources/AssistantCommandArtifact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  cs_models/resources/AssistantCommandArtifact/models.py,sha256=SxSjZA_y2SGzXv7YW-19-rCTzRBcUiPf5JzMK1B-xRg,808
34
34
  cs_models/resources/AssistantCommandArtifact/schemas.py,sha256=fNOCH2oS0gUsGZtgpKeYPc4-xJhODw2HidHV3C12tGo,414
@@ -870,8 +870,8 @@ cs_models/resources/SearchLink/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
870
870
  cs_models/resources/SearchLink/models.py,sha256=l1tPCSKHK7Wq1OUWFH72NYncEt6Q3bR0P6ii7YKoxCM,729
871
871
  cs_models/resources/SearchLink/schemas.py,sha256=A8Y6LRgw7MHs9bihf0gZPfqp6KDm0Z8k6PJSL9WVxsc,448
872
872
  cs_models/resources/SmartGridCell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
873
- cs_models/resources/SmartGridCell/models.py,sha256=uFugY1RrzA7xl96YW_5DX3e6OH2s4A8UUd0AkSeI7oY,1367
874
- cs_models/resources/SmartGridCell/schemas.py,sha256=o7h-dzp2447Vxq_ioxz75Up6W84kZxbxo2oSoXfkOGQ,761
873
+ cs_models/resources/SmartGridCell/models.py,sha256=qolCmQ7C2BUetYADV3Ju6V5EK-byFK3RWAwU1mtYOqk,987
874
+ cs_models/resources/SmartGridCell/schemas.py,sha256=JVPfua3I14z8h79G5kRMjZYqsyyuyHM2rELSH3cc-Zc,716
875
875
  cs_models/resources/Stream/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
876
876
  cs_models/resources/Stream/models.py,sha256=wXb7yOjW82ZqmLhRcDhjLPk6_WJ5FGmvKpOcSvDMuBM,1884
877
877
  cs_models/resources/Stream/schemas.py,sha256=ZFsdEKINFGaSBUAcQQvilq5MKpYGliZseguQoc_opxk,3111
@@ -1090,8 +1090,8 @@ cs_models/resources/Workbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
1090
1090
  cs_models/resources/Workbook/models.py,sha256=4p2R8WCYYX0FOSXG0b2YhmuzKHTxYY4WZVi9X7e9GKQ,1003
1091
1091
  cs_models/resources/Workbook/schemas.py,sha256=xcNoPzHK6ER06XA3fAvX3x7VtX47aBP0vrIqiJvUVKw,688
1092
1092
  cs_models/resources/WorkbookBlock/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1093
- cs_models/resources/WorkbookBlock/models.py,sha256=VIC-_DVC4VQICdPZCMl_jfWwvLpgVfdb6go-TPdmakU,1999
1094
- cs_models/resources/WorkbookBlock/schemas.py,sha256=yAcYHaQXD8KPV-cfKfv15ZqJwku8ANRj1INtve5KGSk,2054
1093
+ cs_models/resources/WorkbookBlock/models.py,sha256=hYZkSFR5p6nVMUbb6ZQxvXvB6XMPlgEDliBx_k0HZ40,1659
1094
+ cs_models/resources/WorkbookBlock/schemas.py,sha256=lRon0US-VHMOGypaiUSZsskgFpjNEtmFEk9nFU7DLnI,1847
1095
1095
  cs_models/resources/WorkbookBlockComment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1096
1096
  cs_models/resources/WorkbookBlockComment/models.py,sha256=t1dLdweoPOzld1uBqrGJ3rrr66UkMwdiplNZEA1WtPU,1251
1097
1097
  cs_models/resources/WorkbookBlockComment/schemas.py,sha256=9UI_mTuPBYBk5qKUC2u0oR_clHA9XZ-bh5hhr24E-vs,563
@@ -1141,7 +1141,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1141
1141
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1142
1142
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1143
1143
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1144
- cs_models-0.0.685.dist-info/METADATA,sha256=-QaOaXV7G1wbUxt08LzGZLPaZHTjBVOZE9yw-rH2soA,792
1145
- cs_models-0.0.685.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1146
- cs_models-0.0.685.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1147
- cs_models-0.0.685.dist-info/RECORD,,
1144
+ cs_models-0.0.687.dist-info/METADATA,sha256=PXS-r915dnRugLdc3Lb52hLTT_Bu5lpkkdiXoIGOfD0,792
1145
+ cs_models-0.0.687.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1146
+ cs_models-0.0.687.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1147
+ cs_models-0.0.687.dist-info/RECORD,,