Skip to content

added create_ts and update_ts to create_comment#50

Merged
Temmmmmo merged 25 commits intomainfrom
timestamp
Nov 24, 2024
Merged

added create_ts and update_ts to create_comment#50
Temmmmmo merged 25 commits intomainfrom
timestamp

Conversation

@zipperman1
Copy link
Copy Markdown
Contributor

@zipperman1 zipperman1 commented Nov 15, 2024

Изменения

добавлена возможность указать время создания и изменения комментария для админов

Детали реализации

проверка на скоуп rating.comment.review
заменяем None на utcnow если дата на указана
скипаем проверку времени если у автора есть скоуп

Check-List

  • Вы проверили свой код перед отправкой запроса?
  • Вы написали тесты к реализованным функциям?
  • Вы не забыли применить форматирование black и isort для Back-End или Prettier для Front-End?

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 15, 2024

Code Coverage

Coverage Report
FileStmtsMissCoverMissing
rating_api
   __main__.py440%1–7
   exceptions.py26292%35–36
rating_api/models
   base.py55198%76
   db.py73297%61, 74
rating_api/routes
   comment.py731284%31, 42–45, 108, 118–123, 130, 153, 169
   exc_handlers.py20195%26
   lecturer.py841483%132–153, 169, 177, 195, 201
rating_api/schemas
   base.py12467%6–9
TOTAL4544091% 

Summary

Tests Skipped Failures Errors Time
44 0 💤 3 ❌ 0 🔥 3.048s ⏱️

Copy link
Copy Markdown
Member

@Zimovchik Zimovchik left a comment

Choose a reason for hiding this comment

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

надо потестить локально + дописать тесты

Comment thread rating_api/routes/comment.py Outdated
Comment thread rating_api/routes/comment.py Outdated
Comment thread rating_api/routes/comment.py Outdated
Comment thread rating_api/routes/comment.py Outdated
@zipperman1 zipperman1 linked an issue Nov 16, 2024 that may be closed by this pull request
@zipperman1 zipperman1 self-assigned this Nov 16, 2024
Comment thread rating_api/routes/comment.py Outdated
@github-actions
Copy link
Copy Markdown

💩 Code linting failed, use black and isort to fix it.

@github-actions
Copy link
Copy Markdown

💩 Code linting failed, use black and isort to fix it.

@zipperman1 zipperman1 requested a review from Zimovchik November 16, 2024 19:58
Comment thread rating_api/routes/comment.py Outdated
Comment thread rating_api/routes/comment.py Outdated
@zipperman1 zipperman1 requested a review from Zimovchik November 17, 2024 15:25
@github-actions
Copy link
Copy Markdown

💩 Code linting failed, use black and isort to fix it.

Comment thread rating_api/routes/comment.py Outdated
Comment thread tests/test_routes/test_comment.py
Comment thread rating_api/routes/comment.py Outdated
Comment thread rating_api/routes/comment.py Outdated
Comment thread rating_api/routes/comment.py Outdated
Comment thread rating_api/routes/comment.py Outdated
Comment thread rating_api/routes/comment.py Outdated
@zipperman1 zipperman1 requested a review from Temmmmmo November 24, 2024 14:42
@Zimovchik
Copy link
Copy Markdown
Member

резолвни конфликты

@github-actions
Copy link
Copy Markdown

💩 Code linting failed, use black and isort to fix it.

Comment thread rating_api/routes/comment.py Outdated
@github-actions
Copy link
Copy Markdown

💩 Code linting failed, use black and isort to fix it.

@Temmmmmo Temmmmmo merged commit a82a2bb into main Nov 24, 2024
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.

Выгрузка данных из дубинушки

3 participants