-
Notifications
You must be signed in to change notification settings - Fork 0
Add entity core bookmark #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
0a999c3
to
c52b6a5
Compare
@@ -215,8 +215,11 @@ class Bookmark(Base): | |||
|
|||
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4) | |||
resource_id = Column(String, nullable=False, index=True) | |||
|
|||
entity_id: Mapped[uuid.UUID | None] = mapped_column( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should changed after the migration to not allow Null
values
|
||
if category is not None: | ||
query = query.where(Bookmark.category == category) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add the option to filter by category
in the getAll
endpoint
@router.post( | ||
"/{virtual_lab_id}/projects/{project_id}/bookmarks/delete", | ||
summary="Delete bookmark by category and resource id", | ||
response_model=LabResponse[None], | ||
) | ||
@verify_vlab_or_project_read |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this endpoint specific for entity core migration,
c52b6a5
to
41c29f7
Compare
entity-id
to the db model and pydantic schemas.