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

Fix/author #63

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Open

Fix/author #63

wants to merge 10 commits into from

Conversation

NeoIsALie
Copy link

Make author field Optional

@NeoIsALie NeoIsALie requested a review from ilyazat September 11, 2023 08:55
@@ -959,7 +959,7 @@ def clone(
self,
name: str,
display_name: str,
author: str,
author: Optional[str],
Copy link
Contributor

Choose a reason for hiding this comment

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

you should use alias for type
smth like

AUTHOR_T = Optional[str]

and use it

@ilyazat
Copy link
Contributor

ilyazat commented Sep 15, 2023

Если поле author = Optional, то нужна отдельная валидация на это поле, что добавляет много геморроя. Есть варик в distrubutions есть функция get_current_user , в которую можно запихнуть валидацию.

В общем нужно определить, насколько это поле нужно сервису и насколько разработчику -- то что нужно еще определить

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.

2 participants