Skip to content
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

Endpoint summary #12

Merged
merged 6 commits into from
Jul 21, 2021
Merged

Endpoint summary #12

merged 6 commits into from
Jul 21, 2021

Conversation

vvrubel
Copy link
Owner

@vvrubel vvrubel commented Jul 19, 2021

ручка /v1/compound/summary

@vvrubel vvrubel requested a review from churnikov July 19, 2021 12:14
@churnikov churnikov changed the base branch from master to endpoints July 19, 2021 15:51
@vvrubel vvrubel marked this pull request as ready for review July 20, 2021 11:44
тоже удаляем такие документы.
создать на коллекции уникальный индекс, который привязан к уникальному полю документа. В нашем
случае им является поле `CID`.
*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Comment on lines 9 to 10
# TODO
# settings = Settings(_env_file="prod.env", _env_file_encoding="utf-8")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

хмм

return list(cursor)


def summary_search(smiles) -> List[Summary]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def summary_search(smiles) -> List[Summary]:
def summary_search(smiles: str) -> List[Summary]:

from enum import Enum
from typing import TypeVar
import enum
import typing as t
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему?
Это может запутать в будущем, лучше не делай так

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ок, просто увидела где-то, решила попробовать, но мне не понравилось

@@ -19,7 +19,7 @@ class Settings(BaseSettings):
split_dir = Field("./data/split", env="SPLIT_DIR")

component_name = "molecad"
api_version: str = "/v0"
api_version: str = "/v1"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мы, вроде, всё ещё api v0 делаем

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ну у тебя так на конфлюэнсе написано в названии ручки

@vvrubel vvrubel merged commit 2f36d01 into endpoints Jul 21, 2021
@vvrubel vvrubel deleted the endpoint-summary branch August 8, 2021 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants