Yak-server

Latest version: v0.44.0

Safety actively analyzes 638437 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 8

0.8.0

* Reorganize tests data
* Implement POST and DELETE calls for score_bet and binary_bet
* Create utils folder in tests
* Update dependencies
* Remove some useless code
* Add test for invalid token error in v2 api
* Test intense PATCH bets spamming by sending 60 request asynchronously
* Refactor group rank computation
* Correct few issues in release workflow

0.7.0

* Add tests for yak cli
* Refactor config creation
* Compute automatically database uri
* Modify user call for v2 (need admin auth)
* Remove all matches calls from v1 api
* Refactor binary bet by using the previous logic
* Make bet creation driven using a enum column in match table
* Change JWT token encoding/decoding algorithm
* Update poetry.lock
* Refactor auth utils in api v1
* Change PUT bets by phase to binary_bets and add schema validation
* Remove users calls in both v1 and v2
* Refactor pytest using fixture
* Add additional check for group rank and separate v1 and v2 tests
* Add blueprint for phase to v1 api
* Add test for invalid group code in v1 group rank retrieval
* Add test for phase in api v2
* Remove locked column from binary bet and score bet, fully rely on lock datetime
* Add few tests for score bet modification in v2 api
* Test for binary bet api v2
* Redirect flag fetching to external url and use custom server url

0.6.0

* Add test for backup command
* Add protocol and port in backup script
* Correct backup location
* Check unexcepted error for v2 api
* Check unexcepted error for v1 api
* Remove played column from group_position table
* Wrong location of the migrations folder
* Add json schema request validation
* Test for patch score bet without any updates and some refactoring
* Add test for binary bet retrieve and update
* Add tests for invalid inputs in signup and login call
* Remove lock by phase mechanism
* Add populate_existing to select for update group position in patch bets functions
* Correct create score model in signup only from GROUP phase
* Remove PATCH with a list of bets
* Separate bets into score_bets and binary_bets
* PATCH migration
* Removal config blueprint and the associated call
* Add test for scoreBet query v2
* Introduce token expiration time as application parameter
* Refactor exception handling for jwt token
* Add tests for GET bets by id and GET bets by phase
* Add test for login v2
* Add tests for group query v2
* Refactor authentification utils for api v2
* Add tests for teams v2 api
* Remove pkg_resources and replace it by importlib.resources
* Upgrade the dependencies
* [pre-commit.ci] pre-commit autoupdate
* Few refactoring in tests
* Check response for GET /groups/{groupCode} with invalid code
* Add test GET /results call and POST /compute_points (Unauthorized access to admin api)
* Use relative import for pkg_resource
* Replace relative import by relative one
* Add test for GET /bets/groups/{groupCode} call
* Add test for commands : yak db admin, yak db delete and yak db drop
* Improve code coverage by testing PATCH /bets/{betId} for score bet
* Small refactoring in v1 errors handling
* Disable graphiql in production
* Move coverage config from .coveragerc to pyproject.toml
* Remove include option in .coveragerc

0.5.0

* Add codecov support
* Add .coveragerc file
* Change group rank v1 to align with v2
* Group rank implementation
* Replace typing.Union by strawberry.union to make the graphql schema more readable
* Add test for GET /bets/groups/results/{groupCode}
* Add test for POST compute_points endpoint
* Add QueryDepthLimiter to strawberry schema
* Add MaskErrors extension to strawberry schema
* Upgrade python-dotenv and strawberry to the latest version
* Reorganize dependencies, separating pre commit and test dependencies
* Add pypi link in README file
* Add test workflow

0.4.0

* Add few commit hooks, check for yaml, json and merge conflicts
* Add pre commit run when alembic create a revision file
* Add alembic integration
* Implement custom cli
* Use python logging in backup script
* Implementing logger for yak server
* Use HttpStatus from standard library instead of hardcoded values
* Load init data from json instead of csv files
* Few refactoring in db scripts
* Implement script to remove all database records
* Refactore script implementation
* few refactoring in auth utils
* Correct bug in PUT bets phase
* Correct bug with new score negative exception
* Use POST signup call in create admin script
* Make script python files non executable
* Stop dropping all tables at the end of every test. Instead just delete the records.
* Test for invalid token error in api v1
* Implement test for GET /matches/phases/{phaseCode} and correct typo in this call
* Refactore config_file.py
* Make headers as dict and not a list of tuple
* Few refactoring for authentification function and adding few python typing
* Raise PhaseNotFound error if phase id is not existing in the database
* Check group existence in GET /matches/groups/{groupCode} and send back if group does not exist
* Add test for GET /matches, GET /matches/{matchId} and GET /matches/groups/{groupCode}
* Remove POST /teams call
* Add utf-8 encoding to write string and not bytes in sql backup files
* Remove backup_files folder from repo and create if it does not exist in backup script
* Refactor test_match. Do not mock uuid4 and assume uuid are random.
* Testing for GET /api/v1/users and GET /api/v1/users/{userId} admin API
* Add test for GET /api/v1/groups/phases/{phaseCode}, GET /api/v1/groups and GET /api/v1/groups/{groupCode}

0.3.2

* Add ruff as poetry dev dependencies and update lock file
* Do not store flag image, instead introduce url to a public website to add it in body response

Page 7 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.