Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 780ba195 authored by GotthardG's avatar GotthardG
Browse files

Add `SetTellPositionRequest` schema and minor cleanup.

Added a new `SetTellPositionRequest` schema in `schemas.py` to support bulk updates of TELL positions. Commented out redundant metadata operations in `main.py` and cleaned up unused content in the test notebook for better readability.
parent fef9b1c6
No related branches found
No related tags found
No related merge requests found
Pipeline #48486 failed
......@@ -208,6 +208,7 @@ class PuckEvent(Base):
id = Column(Integer, primary_key=True, index=True)
puck_id = Column(Integer, ForeignKey("pucks.id"))
tell = Column(String(255), nullable=True)
tell_position = Column(String(255), nullable=True)
event_type = Column(String(255), index=True)
timestamp = Column(DateTime, default=datetime.now)
......
This diff is collapsed.
from typing import List, Optional
from typing import List, Optional, ClassVar
from datetime import datetime
from pydantic import BaseModel, EmailStr, constr, Field, field_validator
from datetime import date
......@@ -668,6 +668,13 @@ class SetTellPosition(BaseModel):
return None
class SetTellPositionRequest(BaseModel):
tell: str
pucks: List[SetTellPosition]
from_attributes: ClassVar[bool] = True
class PuckWithTellPosition(BaseModel):
id: int
puck_name: str
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment