Skip to content

Final Demo - Backend Stats#199

Open
Skylude wants to merge 19 commits intojak103:mainfrom
tannerwheeler:main
Open

Final Demo - Backend Stats#199
Skylude wants to merge 19 commits intojak103:mainfrom
tannerwheeler:main

Conversation

@Skylude
Copy link
Collaborator

@Skylude Skylude commented Jun 18, 2024

No description provided.

Skylude and others added 19 commits June 13, 2024 20:29
Update README.md and add local.env.example

**Why**
We want to have a nice example of environment variables that can be used when developing locally.

**How**
Update README.md to call out the importance of having a local.env as well as add an example env file.
…User Emails, and Create tests for the Roster model POST and GET. (#28)

* Begin changing Roster tracking of Users by ID instead of Email.

* Begin adding Roster tests.

* Roster testing copying goals test

* Added Users to the test to build a Roster

* Added Users to the test to build a Roster(2)

* Fixed test for /backend/internal/db/roster.go
- Split PenaltyType into its own file
- Created endpoints for:
  - Get Penalties by ID
  - Update Penalty
  - Delete Penalty
  - Get Penalties by Game
  - Get Penalties by Team
  - Get Penalties by Player
  - Create Penalty Type
  - Update Penalty Type
  - Delete Penalty Type
- Fixed `DeletedAt` in base `DbModel` to allow for soft delete

jak103#18
jak103#178

Note: Splitting unit tests into a separate PR, this is getting too big
* Added docs for auth in README

* Added password hashing and saving into DB for users

* Add seeder for users 

* Updated users docs endpoint

* Add more commands in makefile for backend
* Working on possible solutions to the bug. Found three possibilities i should discuss with team.(pointers rather than actual values, using sql.NullDataType, and
gopkg.in/guregu/null.v3 package which seems promising as it can be unmarshalled easily.)

* Have a working go.validate solution as well as a working gorm not null solution working. I need feedback on which to move forward with, as both are significant changes.

* got go validate working for penalties, and changed all penalty fields to be required.

* Added "required" validation for goals

* Working on venues validation, but now docs aren't working for it.

* Working on bug in the games endpoint.

* added validation for leagues and games.

* Added validation to rosters.

* got validation working for seasons

* added validation to teams. Also changed the team field in game to use a pointer so that it didn't auto fail the recursive validation.

---------

Co-authored-by: tannerwheeler <tannerleonwheeler@gmail.com>
* added bare bones season database test

* added files for seasons api endpoint testing

* added seasons api tests

* removing to see if it will pass

---------

Co-authored-by: Dingleberryipod <a02330716@usu.edu>
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.

6 participants