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

games button removed; game signals disabled #555

Merged
merged 5 commits into from
Oct 7, 2024

Conversation

webn1nja
Copy link
Contributor

@webn1nja webn1nja commented Oct 1, 2024

Description

Если нужно что-то дополнить по внесённым изменениям.

Type of change

Пожалуйста, удалите варианты, которые не относятся к ПР-у.

  • [+] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Опишите, пожалуйста, тесты, которые вы провели для проверки ваших изменений. Предоставьте инструкции, чтобы мы могли воспроизвести их. Также укажите все необходимые детали конфигурации тестов.

Checklist:

  • Мой код соответствует code-style данного проекта
  • [+] Я провел самоанализ собственного кода
  • Я внес соответствующие изменения в документацию

{% url 'unloads:unloads' as url_name %}{% include "base/button.html" with name="Выгрузки" %}
</li>
{% endif %}
{% comment %} {% if not request.user.is_agent %}
Copy link
Member

Choose a reason for hiding this comment

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

Наверно можно сейчас и удалить все что касается игр. а в остальном мержим

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Все сделал, давайте мерджить

@webn1nja
Copy link
Contributor Author

webn1nja commented Oct 3, 2024

Все сделал, давайте смерджим

Copy link
Member

@KonstantinRaikhert KonstantinRaikhert left a comment

Choose a reason for hiding this comment

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

Еще есть конфликты с веткой. Проблема видимо в файле signals

@KonstantinRaikhert
Copy link
Member

@webn1nja удалось с конфликтами разобраться?

@KonstantinRaikhert KonstantinRaikhert merged commit a26618b into dev Oct 7, 2024
2 checks passed
KonstantinRaikhert added a commit that referenced this pull request Oct 7, 2024
* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* Create/endpoint game (#442)

* create endpoint_game

* create endpoint_game

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* fix: remove games button for team agents (#445)

* Bugfix/game creation form fixes (#441)

* feat: add basic admin pages for new models

* refactor: remove wrong constraint

* bugfix: fix edit game form, now working but not completely

* bugfix: fix edit game form, now working properly

* perf: add more precise team filtering

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* test cd

* Add docker scripts in Makefile and add ds_server in gitignore (#447)

* Add docker scripts in Makefile and add ds_server in gitignore

* Add new make commands in help

* Update README.md

* Решен баг с заполением БД реальными данными (#451)

* fix player_video_games views (#452)

Co-authored-by: zaritskiyaa <[email protected]>

* fix stage

* Feature/models id sync (#454)

* refactor: merge migrations and create fresh initial

* feat: create new PK field for models, sync objects' ids

* fix: fix docstring error

* change ER diagram

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Bugfix/template fixes (#458)

* fix: remove unload for unloads

* fix: fix player's teams display

* Fix search display, implement searching games and add icons for edit/delete games (#461)

* Fix search display, implement seatching games and add icons for edit/delete games

* delete print

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* fix: fix game creation via admin panel, also add basic form validation (#460)

Co-authored-by: Konstantin Raikhert <[email protected]>

* Edit players_number (#453)

* Edit players_number

* Edit players_number

* Ruff fix

* Fix ruff v2

* Ruff fix v3

* Fix templates

* delete unsupport file

* ruff check

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Create/video recognition (#455)

* Save changes in poetry.lock

* code according to PEP8

* create endpoint video_recognition

* fix video api

* code according to PEP8

* code according to PEP8

* code according to PEP8

* code according to PEP8

* code according to PEP8

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* refactoring video_api views and swagger doc (#464)

* refactoring video_api views and swagger doc

* expand service/a_hockey_requests.py/send_request_to_video_processing_service. Assigned try name for env param

* fix env

* fix bug with init environ object

---------

Co-authored-by: zaritskiyaa <[email protected]>

* add requirement

* fix name mistake in env param (#465)

Co-authored-by: zaritskiyaa <[email protected]>

* Bugfix/player number edit form (#470)

* fix: fix template for player number edit, also fix errors display

* fix: add view name

* Feature/factories and bugfix in player (#472)

* fix player

* add factory game

* rebild factory

* fix factory gamecreate

* fix factory gamecreate

* fix ruff

* fix warning timedata

---------

Co-authored-by: Максим Портнов <[email protected]>
Co-authored-by: Алексей Сосов~ <[email protected]>

* fix game_team query (#477)

Co-authored-by: zaritskiyaa <[email protected]>

* Add GameDataPlayer model for storing game JSON data (#481)

* Add GameDataPlayer model for storing game JSON data

* add jpg in ER docs

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* connect celery with redis back/broker. create mock tasks (#484)

Co-authored-by: zaritskiyaa <[email protected]>
Co-authored-by: Konstantin Raikhert <[email protected]>

* Add JSON player data factory (#483)

* add mock functional for processing video (#486)

* add mock functional for processing video

* fix readme

---------

Co-authored-by: zaritskiyaa <[email protected]>

* Bugfix/fix analytic table in uploads (#493)

* fix_analytic_table_in_uploads

* fix_analytics_table_uploads

---------

Co-authored-by: Tom Bulmer <[email protected]>

* rework GameDataPlayer model, refactoring mock celery tasks/serializer (#489)

Co-authored-by: zaritskiyaa <[email protected]>

* Add celery instruction

* add celery instruction

* fix migrations conflict

* Add feature dynamic video button in player_views and templates player_id and video_games_button. And fixed the filter in the PlayerGamesVideo view by id instead of pk (#496)

* Feature/readme fix (#500)

* fix .gitignore and README

* mv pytest.ini in root folder

* Revert .python-version change

* Bugfix/template fix game detail (#499)

* Fix button game_detail button visual bug

* Add .python-version into gitignore

* move into the right center

* Added the feature of an additional column name of the competition on the games page. Added data to the context in the view of the GamesListView (#497)

* add make command for kson factory (#498)

* test_status_service (#501)

Co-authored-by: Tom Bulmer <[email protected]>

* Added diagram video workers in docs. (#508)

Deleted commands for DS server from Makefile (image_video, start_video).
Deleted obsoleted units about parsing files and API DS from README.md.

* Update the game player model - update a player number unique constraint (#505) (#510)

* Update game player number unique constraint (#505)

* Fix code-style ruff issues

* Fix code-style ruff issues (#505)

* Update unique game player number constraint fields; update fields in create game player signal (#505)

* Refactor requests to DS API, add YandexDist token to settings and .env.example (#511)

* Tests remarks (#514)

* Add show message for unload_player_game_video (#509) (#512)

* feat: Add show message for unload_player_game_video.
fix: Change ' to " in base_settings.py.

* fix: Revert " to ' in base_settings.py.

* fix: Add game name to message.

* Add validation to check unique player number field in player update form, edit players numbers in game form. (#517)

* Feature/download player video (#520) (#521)

* feat: Add download player video if video link exists.
feat: Add yadisk in poetry.

* fix: Refactor code.

* fix: Move player video dir to constants.
fix: Change path video dir to path video file.

* fix: Add type hinting.
fix: Refactor code.

* fix: Change varialble name from error to error_message.

* add TODO

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Bugfix/visible form adding player in team (#518) (#523)

* fix: Correct misprints in template.
fix: Fix visible form for adding teams.
fix: Save added or updated player's teams.

* fix: Change PlayerForm for visible team form.

* fix: Move mixin in mixins.py and ajax view in ajax.py.

* Bugfix/change footer buttons color (#525) (#526)

* fix: Add return button to pages:
    staff_id_team_edit,
    staff_id_team_create,
    edit_team_players_numbers,
    game_edit.

* fix: Change pagination border to border-2.
fix: Correct position of footer buttons.

* fix: Change color of footer buttons.

* Integrate Celery worker and flower run into Make run (Issue #515) (#527)

* Integrate Celery worker and flower run into Make run

* add celery connction in config django

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Feature/django message in game card (#519) (#522)

* Add django messages to game detail page.

* Add django messages to game detail page.

* Fix issue #507 - fix stage (#530)

* Fix issue #507 - fix dependencies

* Fix issue #507 - optimze  dependencies fix

* Fix stage deployment error (#535)

* Add celery tasks to download videos from Y.disk, to slice video with player moments. (#532)

* Feature/Add DS mock server (#533)

* feat: Add fastapi[standard] in development requirements.

* feat: Add FastAPI ds mock server.

* feat: Add ds-mock command to Makefile.

* fix: Delete queues from Celery.

* fix: Change directory service to Django app.

* feat: Add DS mock server.

* fix: Delete redundant logging.

* fix: Add logging to a_hockey_requests.
fix: Change raise error to message.

* fix: Delete redundant files.

* fix: Change print to logging.
fix: Correct import sort.

* fix: Correct docstring in apps.py.

* fix: Update README.md.

* fix: Add file with test response json.

* add some TODO

* fix: Move mock_ds_server in separate directory.

* fix: Update Makefile.

* feat: Add mock_ds_server in Celery autodiscovery tasks.

* fix: Add logging and return error messages in send_game_video_to_process.

* fix: Add logging and change exception catch in send_request_to_process_video.

* fix: Move mock_ds_server in separate directory.

* fix: Change GameFeatureSerializer to structure of DS answer.

* fix: Add logging and small refactoring.

* fix: Add type hints in GameFeatureSerializer.

* fix: Update Makefile

* feat: Return Celery queues

* fix: Correct task arguments

* fix: Change response of mock DS server

Small refactor code.

* fix: Change logging level

* fix: Change bulk_create_gamedataplayer_objects

To structure response mock DS server

* Revert "Merge branch 'dev' into feature/ds-mock-server"

This reverts commit 879a5ad, reversing
changes made to 2cd6125.

* fix: Delete unnecessary code.

* fix: Add try..catch exceptions.

* fix: Change game name to game id.

* fix: Old data of players rewrite, if exist.

* feat: Unlink mock DS server from the Django server.

* fix: Revert RequestException.

* feat: Add TODO for send mail.

* fix: Delete unused import.

* feat: Add send mail of end video process.

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* fix bug (#538)

Co-authored-by: Khasanov Alexander <[email protected]>

* Bugfix/random teams in created game (#539)

* fix: Close div and change h7 to h6.

* feat: Add back button to game_info page.

* fix: Correct adding team to GameTeam.

Delete mock-code for request to DS server.

* fix: Refactor view-function send_game_video_to_process.

* fix: Change url to send_game_video_to_process_view.

* fix: Delete unusale import.

* add spec of analytics in docs

* add spec of analytics in docs

* Feature/removing celery (#545)

* game views in process

* remove celery of game views

* remove celery of player_views

* remove celery

* fix core.config.base

* fix players-view

* fix README

* test prod workflow

* fix /infra/prod/

* fix docker compose prod

* test prod.dockerfile

* test prod.dockerfile2

* test prod.dockerfile3

* test prod.dockerfile4

* test prod.dockerfile5

* test prod.dockerfile6

* test deploy to production

* test deploy to production2

* test deploy to production3

* test deploy to production4

* test deploy to production6

* Relocated openpyxl config file to configs folder (#549)

* Add commands export-db and import-db. (#548)

* test deploy to production7

* test deploy to production8

* test deploy to production9

* test deploy to production10

* test deploy to production10

* test deploy to production11

* test deploy to production12

* test deploy to production13

* test deploy to production14

* test deploy to production15

* test deploy to production16

* test deploy to production17

* test deploy to production18

* test deploy to production19

* test deploy to production20

* test deploy to production21

* test deploy to production22

* test deploy to production23

* test deploy to production24

* test deploy to production25

* test deploy to production26

* test deploy to production27

* test secrets

* test secrets1

* test secrets2

* test secrets3

* test secrets4

* test secrets5

* test secrets6

* test secrets7

* test copy infra to vps

* test copy infra to vps - 1

* test copy infra to vps - 2

* test copy infra to vps - 3

* test copy infra to vps - 4

* test copy infra to vps - 5

* test copy infra to vps - 6

* test copy infra to vps - 7

* test copy infra to vps - 8

* test copy infra to vps - 9

* test copy infra to vps - 10

* test copy infra to vps - 11

* test copy infra to vps - 12

* Removed the video_api module and everything related to it

* test deploy

* test deploy1

* test deploy2

* test deploy3

* test deploy4

* test deploy5

* test deploy6

* test deploy7

* test deploy8

* test deploy8

* test deploy9

* test deploy10

* test deploy11

* test deploy12

* test deploy13

* test deploy14

* test deploy15

* test deploy16

* test deploy17

* test deploy18

* test deploy19

* test deploy20

* test deploy21

* pre-realease

* pre-realease1

* pre-realease2

* pre-realease3

* pre-realease4

* pre-realease5

* pre-realease6

* pre-realease7

* pre-realease8

* pre-realease9

* pre-realease10

* pre-realease11

* on review

* test build

* test build1

* test build2

* test build3

* test watchtower

* test watchtower1

* on review3

* on review4

* test build

* test build1

* on review 4

* test build-1

* test build-2

* test build 5

* test build 6

* test build 6

* test build 7

* test build 8

* test build 8

* test build 9

* test build 10

* test build 11

* test build 12

* test build 14

* on_review

* on_review final

* on_review final

* on_review final1

* Remove parser and rewrite command fill-db (#554)

* fix by review

* Feature/modify import commands (#564)

* update import import-db.py, export-db.py, docker-compose.prod.yaml

* fix deploy

* on review

* games button removed; game signals disabled (#555)

* games button removed; game signals disabled

* games signals and button deleted

* returned the signals file so that there would be no conflict during the merge

* fix ruff

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Remove games app. Rewrite ER Diagram. (#566)

Co-authored-by: Konstantin Raikhert <[email protected]>

---------

Co-authored-by: zaritskiyaa <[email protected]>
Co-authored-by: Rodion a vrode ne on <[email protected]>
Co-authored-by: Nikita Smykov <[email protected]>
Co-authored-by: Игорь Митяшин <[email protected]>
Co-authored-by: Salikov Nikita <[email protected]>
Co-authored-by: zaritskiiAA <[email protected]>
Co-authored-by: Milkyaway13 <[email protected]>
Co-authored-by: Maxim Portnov <[email protected]>
Co-authored-by: Максим Портнов <[email protected]>
Co-authored-by: Алексей Сосов~ <[email protected]>
Co-authored-by: posredn1k <[email protected]>
Co-authored-by: trippiez <[email protected]>
Co-authored-by: Tom Bulmer <[email protected]>
Co-authored-by: PavelNep1996 <[email protected]>
Co-authored-by: Borovkov Ilya <[email protected]>
Co-authored-by: AleksandrPU <[email protected]>
Co-authored-by: ramil-khan <[email protected]>
Co-authored-by: RuselK <[email protected]>
Co-authored-by: AlexanderKhasanov <[email protected]>
Co-authored-by: Khasanov Alexander <[email protected]>
Co-authored-by: OlegGsk <[email protected]>
Co-authored-by: Олег Говоровский <[email protected]>
Co-authored-by: Konstantin Shperling (Toksi) <[email protected]>
Co-authored-by: Иван <[email protected]>
Co-authored-by: Toksi86 <[email protected]>
Co-authored-by: Konstantin <[email protected]>
KonstantinRaikhert added a commit that referenced this pull request Oct 9, 2024
* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* Create/endpoint game (#442)

* create endpoint_game

* create endpoint_game

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* fix: remove games button for team agents (#445)

* Bugfix/game creation form fixes (#441)

* feat: add basic admin pages for new models

* refactor: remove wrong constraint

* bugfix: fix edit game form, now working but not completely

* bugfix: fix edit game form, now working properly

* perf: add more precise team filtering

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* test cd

* Add docker scripts in Makefile and add ds_server in gitignore (#447)

* Add docker scripts in Makefile and add ds_server in gitignore

* Add new make commands in help

* Update README.md

* Решен баг с заполением БД реальными данными (#451)

* fix player_video_games views (#452)

Co-authored-by: zaritskiyaa <[email protected]>

* fix stage

* Feature/models id sync (#454)

* refactor: merge migrations and create fresh initial

* feat: create new PK field for models, sync objects' ids

* fix: fix docstring error

* change ER diagram

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Bugfix/template fixes (#458)

* fix: remove unload for unloads

* fix: fix player's teams display

* Fix search display, implement searching games and add icons for edit/delete games (#461)

* Fix search display, implement seatching games and add icons for edit/delete games

* delete print

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* fix: fix game creation via admin panel, also add basic form validation (#460)

Co-authored-by: Konstantin Raikhert <[email protected]>

* Edit players_number (#453)

* Edit players_number

* Edit players_number

* Ruff fix

* Fix ruff v2

* Ruff fix v3

* Fix templates

* delete unsupport file

* ruff check

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Create/video recognition (#455)

* Save changes in poetry.lock

* code according to PEP8

* create endpoint video_recognition

* fix video api

* code according to PEP8

* code according to PEP8

* code according to PEP8

* code according to PEP8

* code according to PEP8

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* refactoring video_api views and swagger doc (#464)

* refactoring video_api views and swagger doc

* expand service/a_hockey_requests.py/send_request_to_video_processing_service. Assigned try name for env param

* fix env

* fix bug with init environ object

---------

Co-authored-by: zaritskiyaa <[email protected]>

* add requirement

* fix name mistake in env param (#465)

Co-authored-by: zaritskiyaa <[email protected]>

* Bugfix/player number edit form (#470)

* fix: fix template for player number edit, also fix errors display

* fix: add view name

* Feature/factories and bugfix in player (#472)

* fix player

* add factory game

* rebild factory

* fix factory gamecreate

* fix factory gamecreate

* fix ruff

* fix warning timedata

---------

Co-authored-by: Максим Портнов <[email protected]>
Co-authored-by: Алексей Сосов~ <[email protected]>

* fix game_team query (#477)

Co-authored-by: zaritskiyaa <[email protected]>

* Add GameDataPlayer model for storing game JSON data (#481)

* Add GameDataPlayer model for storing game JSON data

* add jpg in ER docs

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* connect celery with redis back/broker. create mock tasks (#484)

Co-authored-by: zaritskiyaa <[email protected]>
Co-authored-by: Konstantin Raikhert <[email protected]>

* Add JSON player data factory (#483)

* add mock functional for processing video (#486)

* add mock functional for processing video

* fix readme

---------

Co-authored-by: zaritskiyaa <[email protected]>

* Bugfix/fix analytic table in uploads (#493)

* fix_analytic_table_in_uploads

* fix_analytics_table_uploads

---------

Co-authored-by: Tom Bulmer <[email protected]>

* rework GameDataPlayer model, refactoring mock celery tasks/serializer (#489)

Co-authored-by: zaritskiyaa <[email protected]>

* Add celery instruction

* add celery instruction

* fix migrations conflict

* Add feature dynamic video button in player_views and templates player_id and video_games_button. And fixed the filter in the PlayerGamesVideo view by id instead of pk (#496)

* Feature/readme fix (#500)

* fix .gitignore and README

* mv pytest.ini in root folder

* Revert .python-version change

* Bugfix/template fix game detail (#499)

* Fix button game_detail button visual bug

* Add .python-version into gitignore

* move into the right center

* Added the feature of an additional column name of the competition on the games page. Added data to the context in the view of the GamesListView (#497)

* add make command for kson factory (#498)

* test_status_service (#501)

Co-authored-by: Tom Bulmer <[email protected]>

* Added diagram video workers in docs. (#508)

Deleted commands for DS server from Makefile (image_video, start_video).
Deleted obsoleted units about parsing files and API DS from README.md.

* Update the game player model - update a player number unique constraint (#505) (#510)

* Update game player number unique constraint (#505)

* Fix code-style ruff issues

* Fix code-style ruff issues (#505)

* Update unique game player number constraint fields; update fields in create game player signal (#505)

* Refactor requests to DS API, add YandexDist token to settings and .env.example (#511)

* Tests remarks (#514)

* Add show message for unload_player_game_video (#509) (#512)

* feat: Add show message for unload_player_game_video.
fix: Change ' to " in base_settings.py.

* fix: Revert " to ' in base_settings.py.

* fix: Add game name to message.

* Add validation to check unique player number field in player update form, edit players numbers in game form. (#517)

* Feature/download player video (#520) (#521)

* feat: Add download player video if video link exists.
feat: Add yadisk in poetry.

* fix: Refactor code.

* fix: Move player video dir to constants.
fix: Change path video dir to path video file.

* fix: Add type hinting.
fix: Refactor code.

* fix: Change varialble name from error to error_message.

* add TODO

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Bugfix/visible form adding player in team (#518) (#523)

* fix: Correct misprints in template.
fix: Fix visible form for adding teams.
fix: Save added or updated player's teams.

* fix: Change PlayerForm for visible team form.

* fix: Move mixin in mixins.py and ajax view in ajax.py.

* Bugfix/change footer buttons color (#525) (#526)

* fix: Add return button to pages:
    staff_id_team_edit,
    staff_id_team_create,
    edit_team_players_numbers,
    game_edit.

* fix: Change pagination border to border-2.
fix: Correct position of footer buttons.

* fix: Change color of footer buttons.

* Integrate Celery worker and flower run into Make run (Issue #515) (#527)

* Integrate Celery worker and flower run into Make run

* add celery connction in config django

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Feature/django message in game card (#519) (#522)

* Add django messages to game detail page.

* Add django messages to game detail page.

* Fix issue #507 - fix stage (#530)

* Fix issue #507 - fix dependencies

* Fix issue #507 - optimze  dependencies fix

* Fix stage deployment error (#535)

* Add celery tasks to download videos from Y.disk, to slice video with player moments. (#532)

* Feature/Add DS mock server (#533)

* feat: Add fastapi[standard] in development requirements.

* feat: Add FastAPI ds mock server.

* feat: Add ds-mock command to Makefile.

* fix: Delete queues from Celery.

* fix: Change directory service to Django app.

* feat: Add DS mock server.

* fix: Delete redundant logging.

* fix: Add logging to a_hockey_requests.
fix: Change raise error to message.

* fix: Delete redundant files.

* fix: Change print to logging.
fix: Correct import sort.

* fix: Correct docstring in apps.py.

* fix: Update README.md.

* fix: Add file with test response json.

* add some TODO

* fix: Move mock_ds_server in separate directory.

* fix: Update Makefile.

* feat: Add mock_ds_server in Celery autodiscovery tasks.

* fix: Add logging and return error messages in send_game_video_to_process.

* fix: Add logging and change exception catch in send_request_to_process_video.

* fix: Move mock_ds_server in separate directory.

* fix: Change GameFeatureSerializer to structure of DS answer.

* fix: Add logging and small refactoring.

* fix: Add type hints in GameFeatureSerializer.

* fix: Update Makefile

* feat: Return Celery queues

* fix: Correct task arguments

* fix: Change response of mock DS server

Small refactor code.

* fix: Change logging level

* fix: Change bulk_create_gamedataplayer_objects

To structure response mock DS server

* Revert "Merge branch 'dev' into feature/ds-mock-server"

This reverts commit 879a5ad, reversing
changes made to 2cd6125.

* fix: Delete unnecessary code.

* fix: Add try..catch exceptions.

* fix: Change game name to game id.

* fix: Old data of players rewrite, if exist.

* feat: Unlink mock DS server from the Django server.

* fix: Revert RequestException.

* feat: Add TODO for send mail.

* fix: Delete unused import.

* feat: Add send mail of end video process.

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* fix bug (#538)

Co-authored-by: Khasanov Alexander <[email protected]>

* Bugfix/random teams in created game (#539)

* fix: Close div and change h7 to h6.

* feat: Add back button to game_info page.

* fix: Correct adding team to GameTeam.

Delete mock-code for request to DS server.

* fix: Refactor view-function send_game_video_to_process.

* fix: Change url to send_game_video_to_process_view.

* fix: Delete unusale import.

* add spec of analytics in docs

* add spec of analytics in docs

* Feature/removing celery (#545)

* game views in process

* remove celery of game views

* remove celery of player_views

* remove celery

* fix core.config.base

* fix players-view

* fix README

* test prod workflow

* fix /infra/prod/

* fix docker compose prod

* test prod.dockerfile

* test prod.dockerfile2

* test prod.dockerfile3

* test prod.dockerfile4

* test prod.dockerfile5

* test prod.dockerfile6

* test deploy to production

* test deploy to production2

* test deploy to production3

* test deploy to production4

* test deploy to production6

* Relocated openpyxl config file to configs folder (#549)

* Add commands export-db and import-db. (#548)

* test deploy to production7

* test deploy to production8

* test deploy to production9

* test deploy to production10

* test deploy to production10

* test deploy to production11

* test deploy to production12

* test deploy to production13

* test deploy to production14

* test deploy to production15

* test deploy to production16

* test deploy to production17

* test deploy to production18

* test deploy to production19

* test deploy to production20

* test deploy to production21

* test deploy to production22

* test deploy to production23

* test deploy to production24

* test deploy to production25

* test deploy to production26

* test deploy to production27

* test secrets

* test secrets1

* test secrets2

* test secrets3

* test secrets4

* test secrets5

* test secrets6

* test secrets7

* test copy infra to vps

* test copy infra to vps - 1

* test copy infra to vps - 2

* test copy infra to vps - 3

* test copy infra to vps - 4

* test copy infra to vps - 5

* test copy infra to vps - 6

* test copy infra to vps - 7

* test copy infra to vps - 8

* test copy infra to vps - 9

* test copy infra to vps - 10

* test copy infra to vps - 11

* test copy infra to vps - 12

* Removed the video_api module and everything related to it

* test deploy

* test deploy1

* test deploy2

* test deploy3

* test deploy4

* test deploy5

* test deploy6

* test deploy7

* test deploy8

* test deploy8

* test deploy9

* test deploy10

* test deploy11

* test deploy12

* test deploy13

* test deploy14

* test deploy15

* test deploy16

* test deploy17

* test deploy18

* test deploy19

* test deploy20

* test deploy21

* pre-realease

* pre-realease1

* pre-realease2

* pre-realease3

* pre-realease4

* pre-realease5

* pre-realease6

* pre-realease7

* pre-realease8

* pre-realease9

* pre-realease10

* pre-realease11

* on review

* test build

* test build1

* test build2

* test build3

* test watchtower

* test watchtower1

* on review3

* on review4

* test build

* test build1

* on review 4

* test build-1

* test build-2

* test build 5

* test build 6

* test build 6

* test build 7

* test build 8

* test build 8

* test build 9

* test build 10

* test build 11

* test build 12

* test build 14

* on_review

* on_review final

* on_review final

* on_review final1

* Remove parser and rewrite command fill-db (#554)

* fix by review

* Feature/modify import commands (#564)

* update import import-db.py, export-db.py, docker-compose.prod.yaml

* fix deploy

* on review

* games button removed; game signals disabled (#555)

* games button removed; game signals disabled

* games signals and button deleted

* returned the signals file so that there would be no conflict during the merge

* fix ruff

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Remove games app. Rewrite ER Diagram. (#566)

Co-authored-by: Konstantin Raikhert <[email protected]>

* Bugfix/fix the player bday validator (#571)

* games button removed; game signals disabled

* games signals and button deleted

* fix age limits

---------

Co-authored-by: webn1nja <[email protected]>

* Fix team assignment bug where other players were removed from the team when assigned (#569)

Co-authored-by: Konstantin Raikhert <[email protected]>

* Bugfix/diagnosis register validator (#570)

* add validator registr

* on review

---------

Co-authored-by: zaritskiyaa <[email protected]>
Co-authored-by: Rodion a vrode ne on <[email protected]>
Co-authored-by: Nikita Smykov <[email protected]>
Co-authored-by: Игорь Митяшин <[email protected]>
Co-authored-by: Salikov Nikita <[email protected]>
Co-authored-by: zaritskiiAA <[email protected]>
Co-authored-by: Milkyaway13 <[email protected]>
Co-authored-by: Maxim Portnov <[email protected]>
Co-authored-by: Максим Портнов <[email protected]>
Co-authored-by: Алексей Сосов~ <[email protected]>
Co-authored-by: posredn1k <[email protected]>
Co-authored-by: trippiez <[email protected]>
Co-authored-by: Tom Bulmer <[email protected]>
Co-authored-by: PavelNep1996 <[email protected]>
Co-authored-by: Borovkov Ilya <[email protected]>
Co-authored-by: AleksandrPU <[email protected]>
Co-authored-by: ramil-khan <[email protected]>
Co-authored-by: RuselK <[email protected]>
Co-authored-by: AlexanderKhasanov <[email protected]>
Co-authored-by: Khasanov Alexander <[email protected]>
Co-authored-by: OlegGsk <[email protected]>
Co-authored-by: Олег Говоровский <[email protected]>
Co-authored-by: Konstantin Shperling (Toksi) <[email protected]>
Co-authored-by: Иван <[email protected]>
Co-authored-by: Toksi86 <[email protected]>
Co-authored-by: Konstantin <[email protected]>
Co-authored-by: webn1nja <[email protected]>
@KonstantinRaikhert KonstantinRaikhert deleted the bugfix/remove_games_button_and_signals branch October 11, 2024 07:25
KonstantinRaikhert added a commit that referenced this pull request Oct 11, 2024
* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* Create/endpoint game (#442)

* create endpoint_game

* create endpoint_game

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* fix: remove games button for team agents (#445)

* Bugfix/game creation form fixes (#441)

* feat: add basic admin pages for new models

* refactor: remove wrong constraint

* bugfix: fix edit game form, now working but not completely

* bugfix: fix edit game form, now working properly

* perf: add more precise team filtering

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* test cd

* Add docker scripts in Makefile and add ds_server in gitignore (#447)

* Add docker scripts in Makefile and add ds_server in gitignore

* Add new make commands in help

* Update README.md

* Решен баг с заполением БД реальными данными (#451)

* fix player_video_games views (#452)

Co-authored-by: zaritskiyaa <[email protected]>

* fix stage

* Feature/models id sync (#454)

* refactor: merge migrations and create fresh initial

* feat: create new PK field for models, sync objects' ids

* fix: fix docstring error

* change ER diagram

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Bugfix/template fixes (#458)

* fix: remove unload for unloads

* fix: fix player's teams display

* Fix search display, implement searching games and add icons for edit/delete games (#461)

* Fix search display, implement seatching games and add icons for edit/delete games

* delete print

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* fix: fix game creation via admin panel, also add basic form validation (#460)

Co-authored-by: Konstantin Raikhert <[email protected]>

* Edit players_number (#453)

* Edit players_number

* Edit players_number

* Ruff fix

* Fix ruff v2

* Ruff fix v3

* Fix templates

* delete unsupport file

* ruff check

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Create/video recognition (#455)

* Save changes in poetry.lock

* code according to PEP8

* create endpoint video_recognition

* fix video api

* code according to PEP8

* code according to PEP8

* code according to PEP8

* code according to PEP8

* code according to PEP8

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* refactoring video_api views and swagger doc (#464)

* refactoring video_api views and swagger doc

* expand service/a_hockey_requests.py/send_request_to_video_processing_service. Assigned try name for env param

* fix env

* fix bug with init environ object

---------

Co-authored-by: zaritskiyaa <[email protected]>

* add requirement

* fix name mistake in env param (#465)

Co-authored-by: zaritskiyaa <[email protected]>

* Bugfix/player number edit form (#470)

* fix: fix template for player number edit, also fix errors display

* fix: add view name

* Feature/factories and bugfix in player (#472)

* fix player

* add factory game

* rebild factory

* fix factory gamecreate

* fix factory gamecreate

* fix ruff

* fix warning timedata

---------

Co-authored-by: Максим Портнов <[email protected]>
Co-authored-by: Алексей Сосов~ <[email protected]>

* fix game_team query (#477)

Co-authored-by: zaritskiyaa <[email protected]>

* Add GameDataPlayer model for storing game JSON data (#481)

* Add GameDataPlayer model for storing game JSON data

* add jpg in ER docs

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* connect celery with redis back/broker. create mock tasks (#484)

Co-authored-by: zaritskiyaa <[email protected]>
Co-authored-by: Konstantin Raikhert <[email protected]>

* Add JSON player data factory (#483)

* add mock functional for processing video (#486)

* add mock functional for processing video

* fix readme

---------

Co-authored-by: zaritskiyaa <[email protected]>

* Bugfix/fix analytic table in uploads (#493)

* fix_analytic_table_in_uploads

* fix_analytics_table_uploads

---------

Co-authored-by: Tom Bulmer <[email protected]>

* rework GameDataPlayer model, refactoring mock celery tasks/serializer (#489)

Co-authored-by: zaritskiyaa <[email protected]>

* Add celery instruction

* add celery instruction

* fix migrations conflict

* Add feature dynamic video button in player_views and templates player_id and video_games_button. And fixed the filter in the PlayerGamesVideo view by id instead of pk (#496)

* Feature/readme fix (#500)

* fix .gitignore and README

* mv pytest.ini in root folder

* Revert .python-version change

* Bugfix/template fix game detail (#499)

* Fix button game_detail button visual bug

* Add .python-version into gitignore

* move into the right center

* Added the feature of an additional column name of the competition on the games page. Added data to the context in the view of the GamesListView (#497)

* add make command for kson factory (#498)

* test_status_service (#501)

Co-authored-by: Tom Bulmer <[email protected]>

* Added diagram video workers in docs. (#508)

Deleted commands for DS server from Makefile (image_video, start_video).
Deleted obsoleted units about parsing files and API DS from README.md.

* Update the game player model - update a player number unique constraint (#505) (#510)

* Update game player number unique constraint (#505)

* Fix code-style ruff issues

* Fix code-style ruff issues (#505)

* Update unique game player number constraint fields; update fields in create game player signal (#505)

* Refactor requests to DS API, add YandexDist token to settings and .env.example (#511)

* Tests remarks (#514)

* Add show message for unload_player_game_video (#509) (#512)

* feat: Add show message for unload_player_game_video.
fix: Change ' to " in base_settings.py.

* fix: Revert " to ' in base_settings.py.

* fix: Add game name to message.

* Add validation to check unique player number field in player update form, edit players numbers in game form. (#517)

* Feature/download player video (#520) (#521)

* feat: Add download player video if video link exists.
feat: Add yadisk in poetry.

* fix: Refactor code.

* fix: Move player video dir to constants.
fix: Change path video dir to path video file.

* fix: Add type hinting.
fix: Refactor code.

* fix: Change varialble name from error to error_message.

* add TODO

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Bugfix/visible form adding player in team (#518) (#523)

* fix: Correct misprints in template.
fix: Fix visible form for adding teams.
fix: Save added or updated player's teams.

* fix: Change PlayerForm for visible team form.

* fix: Move mixin in mixins.py and ajax view in ajax.py.

* Bugfix/change footer buttons color (#525) (#526)

* fix: Add return button to pages:
    staff_id_team_edit,
    staff_id_team_create,
    edit_team_players_numbers,
    game_edit.

* fix: Change pagination border to border-2.
fix: Correct position of footer buttons.

* fix: Change color of footer buttons.

* Integrate Celery worker and flower run into Make run (Issue #515) (#527)

* Integrate Celery worker and flower run into Make run

* add celery connction in config django

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Feature/django message in game card (#519) (#522)

* Add django messages to game detail page.

* Add django messages to game detail page.

* Fix issue #507 - fix stage (#530)

* Fix issue #507 - fix dependencies

* Fix issue #507 - optimze  dependencies fix

* Fix stage deployment error (#535)

* Add celery tasks to download videos from Y.disk, to slice video with player moments. (#532)

* Feature/Add DS mock server (#533)

* feat: Add fastapi[standard] in development requirements.

* feat: Add FastAPI ds mock server.

* feat: Add ds-mock command to Makefile.

* fix: Delete queues from Celery.

* fix: Change directory service to Django app.

* feat: Add DS mock server.

* fix: Delete redundant logging.

* fix: Add logging to a_hockey_requests.
fix: Change raise error to message.

* fix: Delete redundant files.

* fix: Change print to logging.
fix: Correct import sort.

* fix: Correct docstring in apps.py.

* fix: Update README.md.

* fix: Add file with test response json.

* add some TODO

* fix: Move mock_ds_server in separate directory.

* fix: Update Makefile.

* feat: Add mock_ds_server in Celery autodiscovery tasks.

* fix: Add logging and return error messages in send_game_video_to_process.

* fix: Add logging and change exception catch in send_request_to_process_video.

* fix: Move mock_ds_server in separate directory.

* fix: Change GameFeatureSerializer to structure of DS answer.

* fix: Add logging and small refactoring.

* fix: Add type hints in GameFeatureSerializer.

* fix: Update Makefile

* feat: Return Celery queues

* fix: Correct task arguments

* fix: Change response of mock DS server

Small refactor code.

* fix: Change logging level

* fix: Change bulk_create_gamedataplayer_objects

To structure response mock DS server

* Revert "Merge branch 'dev' into feature/ds-mock-server"

This reverts commit 879a5ad, reversing
changes made to 2cd6125.

* fix: Delete unnecessary code.

* fix: Add try..catch exceptions.

* fix: Change game name to game id.

* fix: Old data of players rewrite, if exist.

* feat: Unlink mock DS server from the Django server.

* fix: Revert RequestException.

* feat: Add TODO for send mail.

* fix: Delete unused import.

* feat: Add send mail of end video process.

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* fix bug (#538)

Co-authored-by: Khasanov Alexander <[email protected]>

* Bugfix/random teams in created game (#539)

* fix: Close div and change h7 to h6.

* feat: Add back button to game_info page.

* fix: Correct adding team to GameTeam.

Delete mock-code for request to DS server.

* fix: Refactor view-function send_game_video_to_process.

* fix: Change url to send_game_video_to_process_view.

* fix: Delete unusale import.

* add spec of analytics in docs

* add spec of analytics in docs

* Feature/removing celery (#545)

* game views in process

* remove celery of game views

* remove celery of player_views

* remove celery

* fix core.config.base

* fix players-view

* fix README

* test prod workflow

* fix /infra/prod/

* fix docker compose prod

* test prod.dockerfile

* test prod.dockerfile2

* test prod.dockerfile3

* test prod.dockerfile4

* test prod.dockerfile5

* test prod.dockerfile6

* test deploy to production

* test deploy to production2

* test deploy to production3

* test deploy to production4

* test deploy to production6

* Relocated openpyxl config file to configs folder (#549)

* Add commands export-db and import-db. (#548)

* test deploy to production7

* test deploy to production8

* test deploy to production9

* test deploy to production10

* test deploy to production10

* test deploy to production11

* test deploy to production12

* test deploy to production13

* test deploy to production14

* test deploy to production15

* test deploy to production16

* test deploy to production17

* test deploy to production18

* test deploy to production19

* test deploy to production20

* test deploy to production21

* test deploy to production22

* test deploy to production23

* test deploy to production24

* test deploy to production25

* test deploy to production26

* test deploy to production27

* test secrets

* test secrets1

* test secrets2

* test secrets3

* test secrets4

* test secrets5

* test secrets6

* test secrets7

* test copy infra to vps

* test copy infra to vps - 1

* test copy infra to vps - 2

* test copy infra to vps - 3

* test copy infra to vps - 4

* test copy infra to vps - 5

* test copy infra to vps - 6

* test copy infra to vps - 7

* test copy infra to vps - 8

* test copy infra to vps - 9

* test copy infra to vps - 10

* test copy infra to vps - 11

* test copy infra to vps - 12

* Removed the video_api module and everything related to it

* test deploy

* test deploy1

* test deploy2

* test deploy3

* test deploy4

* test deploy5

* test deploy6

* test deploy7

* test deploy8

* test deploy8

* test deploy9

* test deploy10

* test deploy11

* test deploy12

* test deploy13

* test deploy14

* test deploy15

* test deploy16

* test deploy17

* test deploy18

* test deploy19

* test deploy20

* test deploy21

* pre-realease

* pre-realease1

* pre-realease2

* pre-realease3

* pre-realease4

* pre-realease5

* pre-realease6

* pre-realease7

* pre-realease8

* pre-realease9

* pre-realease10

* pre-realease11

* on review

* test build

* test build1

* test build2

* test build3

* test watchtower

* test watchtower1

* on review3

* on review4

* test build

* test build1

* on review 4

* test build-1

* test build-2

* test build 5

* test build 6

* test build 6

* test build 7

* test build 8

* test build 8

* test build 9

* test build 10

* test build 11

* test build 12

* test build 14

* on_review

* on_review final

* on_review final

* on_review final1

* Remove parser and rewrite command fill-db (#554)

* fix by review

* Feature/modify import commands (#564)

* update import import-db.py, export-db.py, docker-compose.prod.yaml

* fix deploy

* on review

* games button removed; game signals disabled (#555)

* games button removed; game signals disabled

* games signals and button deleted

* returned the signals file so that there would be no conflict during the merge

* fix ruff

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

* Remove games app. Rewrite ER Diagram. (#566)

Co-authored-by: Konstantin Raikhert <[email protected]>

* Bugfix/fix the player bday validator (#571)

* games button removed; game signals disabled

* games signals and button deleted

* fix age limits

---------

Co-authored-by: webn1nja <[email protected]>

* Fix team assignment bug where other players were removed from the team when assigned (#569)

Co-authored-by: Konstantin Raikhert <[email protected]>

* Bugfix/diagnosis register validator (#570)

* add validator registr

* on review

* remove yadisk

* The default value of the team supervisor is set to None (#577)

* The default value of the team supervisor is set to None

* delete artefact

---------

Co-authored-by: Konstantin Raikhert <[email protected]>

---------

Co-authored-by: zaritskiyaa <[email protected]>
Co-authored-by: Rodion a vrode ne on <[email protected]>
Co-authored-by: Nikita Smykov <[email protected]>
Co-authored-by: Игорь Митяшин <[email protected]>
Co-authored-by: Salikov Nikita <[email protected]>
Co-authored-by: zaritskiiAA <[email protected]>
Co-authored-by: Milkyaway13 <[email protected]>
Co-authored-by: Maxim Portnov <[email protected]>
Co-authored-by: Максим Портнов <[email protected]>
Co-authored-by: Алексей Сосов~ <[email protected]>
Co-authored-by: posredn1k <[email protected]>
Co-authored-by: trippiez <[email protected]>
Co-authored-by: Tom Bulmer <[email protected]>
Co-authored-by: PavelNep1996 <[email protected]>
Co-authored-by: Borovkov Ilya <[email protected]>
Co-authored-by: AleksandrPU <[email protected]>
Co-authored-by: ramil-khan <[email protected]>
Co-authored-by: RuselK <[email protected]>
Co-authored-by: AlexanderKhasanov <[email protected]>
Co-authored-by: Khasanov Alexander <[email protected]>
Co-authored-by: OlegGsk <[email protected]>
Co-authored-by: Олег Говоровский <[email protected]>
Co-authored-by: Konstantin Shperling (Toksi) <[email protected]>
Co-authored-by: Иван <[email protected]>
Co-authored-by: Toksi86 <[email protected]>
Co-authored-by: Konstantin <[email protected]>
Co-authored-by: webn1nja <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants