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

500 when adding an existing movie #11

Closed
EliasSchaut opened this issue Nov 21, 2022 · 0 comments
Closed

500 when adding an existing movie #11

EliasSchaut opened this issue Nov 21, 2022 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@EliasSchaut
Copy link
Owner

No description provided.

@EliasSchaut EliasSchaut added the bug Something isn't working label Nov 21, 2022
@EliasSchaut EliasSchaut self-assigned this Nov 21, 2022
@EliasSchaut EliasSchaut added this to the Beta Release milestone Dec 9, 2022
EliasSchaut added a commit that referenced this issue Dec 11, 2022
EliasSchaut added a commit that referenced this issue Dec 12, 2022
* update package

* update gitignore

* add prisma

* add user service

* add auth service

* add password encryption

* implement login route

* add auth guard

* remove test files

* add dotenv package

* add jwt generation

* add jwt guard with profile controller

* add profile site

* improve code style with prettier

* remove hello worlds

* add helmet

* add vue framework

* connect vue to nest

* add css

* add login route

* add logger middleware + loggin route

* update package

* add catch for duplicate user registration

* implement submit method

* make login and registerView more dynamic

* hotfix

* update prisma schema

* update structure

* generate Movie db service

* add env tmp

* update movie relation and service

* create movie route and add imdb package

* hotfix

* implement GET movie:id

* fix auth bugs

* add info

* implement POST movie

* add try catch

* implement GET movie/all

* implement movie table

* add client profile

* client: add movie add button

* prisma: add vote table

* backend: edit structure

* backend: add vote boilerplate

* edit structure

* backend: implement POST vote

* db: improve naming

* backend: add DELETE Vote

* backend: add GET vote

* update vote output

* update proposer output

* update package

* Client: implement client-side state management to react on loading and logged_in

* client: add history view

* client: improve movie component table

* backend: update route GET movie/all

* client: display movie votes

* client: implement vote

* client: implement router logout

* BD: add "name" attribute to userDB

* backend: remove middleware from auth

* backend: implement email confirm

* common: update env tmp

* client: add privacy

* client: hot fix

* client: hot fix

* client: add AlertComponent.vue

* backend: update movie information

* backend: implement movie delete

* client: implement delete own movie

* client: implement form validation

* common: add port configuration

* client: add vertical scrolling in movie table

* client: rename page title

* client: add regex to imdb upload

* client: outsource api call

* client: hotfix

* backend: fix initial interest (now server handled instead of client handled)

* backend: restrict unvoting for own proposed movie

* client: implement triggerable alert components

* common: implemented client warnings on auth

* common: implemented better version of client warnings on auth

* client: style hotfix

* common: update README.md

* client: add GitHub Link

* client: update login regex + add password confirm

* client: create e-mail verified page

* client: edit plugin structure

* client: hot fix

* client: hot fix

* client: implement profile page style

* client: divide form inputs into separate components

* client: text improve

* client: hotfix

* client: hotfix

* client: change route api/profile to api/user

* backend: update auth (outsource password service + reduce payload to user_id)

* backend: implemented user routes for self-management of own account

* client: add profile options + implement get all user data

* backend: add gravatar generation

* client: add api logic to profile

* backend: allow gravatar in helmet

* backend: implement md5 hash algorithm

* client: add logic to delete account

* backend: outsource gravatar in a service + update gravatar url on email change

* update README.md

* prisma: Update database model to support history and watchlist

* backend: add event service

* backend: add job schedule structure

* backend: add db infrastructure for history and watchlist model

* backend: implement get_most_voted in vote db

* backend: add event module

* backend: implement watchlist job

* backend: implement history job

* backend: add routes GET movie/watchlist & movie/history

* client: movie ts folder in components folder to util folder in src + add CardComponent

* backend: add start_time to watchlist

* backend: restrict deleting watchlist movies

* client: hotfix

* client: update favicon

* backend: hotfix

* backend: update GET watchlist information

* common: improve packages

* client: create TableComponent to outsource tables

* client: add watchlist

* client: implement history view

* backend: implement GET public user information

* backend: hotfix

* client: implement watchlist interested feature

* client: replace bad emojis with cool svg

* client: add trash icon

* backend: replace node-schedule with @nest/schedule

* client: hotfix

* backend: restrict user deletion, when proposed video is in watchlist + restrict already watched movies

* client: alerts now shown when adding a movie

* client: alerts now shown when deleting a movie

* client: make tables responsive

* client: hotfix

* backend: hotfix password reset

* backend: email send now html instead of text

* backend: add route GET auth/reset/:username to send a pw reset request + add pw reset flag in db

* backend: add route POST auth/reset/:username to reset password via challenge

* backend: change challenge url for pw reset

* client: edit structure (replace some components with views)

* client: add ResetRequestView

* backend: hotfix

* client: create FormComponent and outsource Form from ResetViews

* client: Outsource form from Login and Register

* client: edit component structure

* client: add router link to reset page in login view

* client: remove bootstrap-table in plugins folder for now

* backend: implement discord.service for sending messages to a webhook + create announce job to sende invites to endpoints like discord

* backend: add notify opt in value for users + logic to notify every opt-in user

* backend: add route POST email_opt_in

* client: add profile option email_opt_in

* backend: emails now only send via text instead of html

* client: import cookie library and create cookie util

* client: replace localstorage with cookie

* Bump qs and formidable

Bumps [qs](https://github.com/ljharb/qs) and [formidable](https://github.com/node-formidable/formidable). These dependencies needed to be updated together.

Updates `qs` from 6.9.3 to 6.10.3
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](ljharb/qs@v6.9.3...v6.10.3)

Updates `formidable` from 2.0.1 to 2.1.1
- [Release notes](https://github.com/node-formidable/formidable/releases)
- [Changelog](https://github.com/node-formidable/formidable/blob/master/CHANGELOG.md)
- [Commits](https://github.com/node-formidable/formidable/commits)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
- dependency-name: formidable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* backend: add compodoc package + run doc script + ignore docs folder

* backend: implemented some params

* types: implemented types for user controller

* backend: edit structure

* backend: add PUBLIC/PRIVATE desc in docs

* docs: add docs to movie controller

* types: add MovieAll type

* types: add types for movie controller

* types: improve names

* types: add types and docs for vote controller

* backend: hotfix

* build: add build:all script to fully build all project components

* build: hotfix

* build: add lots of build scripts

* common: update README.md

* common: update README.md

* client: add docs link in navbar

* types: add types and doc to auth controller

* common: add start:doc run script

* common: update README.md

* common: update README.md

* common: edit .env.tmp file

* common: replace dotenv package with @nestjs/config

* common: serve docs in route /docs

* client: add docs to navbar

* common: rename doc scripts to docs script

* backend: fix role ping bug

* common: edit env file

* common: add config schema validation

* common: add description to config.validation.ts

* common: update README.md

* common: hotfix package

* backend: add patterns and use them for various input validation

* client: improve client patterns

* backend: close issue #11

* common: add env value MAX_PROPOSED_MOVIES with its functionality to restrict the maximum proposeable movies per user + improve MAX_VOTES feedback

* common: rename env var

* backend: add api documentation with swagger + update dtos to classes

* backend: add route descriptions for swagger

* client: add doc view for the different documentations

* backend: small improvements for swagger

* update README.md

* common: update version

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
EliasSchaut added a commit that referenced this issue Dec 19, 2022
* update package

* update gitignore

* add prisma

* add user service

* add auth service

* add password encryption

* implement login route

* add auth guard

* remove test files

* add dotenv package

* add jwt generation

* add jwt guard with profile controller

* add profile site

* improve code style with prettier

* remove hello worlds

* add helmet

* add vue framework

* connect vue to nest

* add css

* add login route

* add logger middleware + loggin route

* update package

* add catch for duplicate user registration

* implement submit method

* make login and registerView more dynamic

* hotfix

* update prisma schema

* update structure

* generate Movie db service

* add env tmp

* update movie relation and service

* create movie route and add imdb package

* hotfix

* implement GET movie:id

* fix auth bugs

* add info

* implement POST movie

* add try catch

* implement GET movie/all

* implement movie table

* add client profile

* client: add movie add button

* prisma: add vote table

* backend: edit structure

* backend: add vote boilerplate

* edit structure

* backend: implement POST vote

* db: improve naming

* backend: add DELETE Vote

* backend: add GET vote

* update vote output

* update proposer output

* update package

* Client: implement client-side state management to react on loading and logged_in

* client: add history view

* client: improve movie component table

* backend: update route GET movie/all

* client: display movie votes

* client: implement vote

* client: implement router logout

* BD: add "name" attribute to userDB

* backend: remove middleware from auth

* backend: implement email confirm

* common: update env tmp

* client: add privacy

* client: hot fix

* client: hot fix

* client: add AlertComponent.vue

* backend: update movie information

* backend: implement movie delete

* client: implement delete own movie

* client: implement form validation

* common: add port configuration

* client: add vertical scrolling in movie table

* client: rename page title

* client: add regex to imdb upload

* client: outsource api call

* client: hotfix

* backend: fix initial interest (now server handled instead of client handled)

* backend: restrict unvoting for own proposed movie

* client: implement triggerable alert components

* common: implemented client warnings on auth

* common: implemented better version of client warnings on auth

* client: style hotfix

* common: update README.md

* client: add GitHub Link

* client: update login regex + add password confirm

* client: create e-mail verified page

* client: edit plugin structure

* client: hot fix

* client: hot fix

* client: implement profile page style

* client: divide form inputs into separate components

* client: text improve

* client: hotfix

* client: hotfix

* client: change route api/profile to api/user

* backend: update auth (outsource password service + reduce payload to user_id)

* backend: implemented user routes for self-management of own account

* client: add profile options + implement get all user data

* backend: add gravatar generation

* client: add api logic to profile

* backend: allow gravatar in helmet

* backend: implement md5 hash algorithm

* client: add logic to delete account

* backend: outsource gravatar in a service + update gravatar url on email change

* update README.md

* prisma: Update database model to support history and watchlist

* backend: add event service

* backend: add job schedule structure

* backend: add db infrastructure for history and watchlist model

* backend: implement get_most_voted in vote db

* backend: add event module

* backend: implement watchlist job

* backend: implement history job

* backend: add routes GET movie/watchlist & movie/history

* client: movie ts folder in components folder to util folder in src + add CardComponent

* backend: add start_time to watchlist

* backend: restrict deleting watchlist movies

* client: hotfix

* client: update favicon

* backend: hotfix

* backend: update GET watchlist information

* common: improve packages

* client: create TableComponent to outsource tables

* client: add watchlist

* client: implement history view

* backend: implement GET public user information

* backend: hotfix

* client: implement watchlist interested feature

* client: replace bad emojis with cool svg

* client: add trash icon

* backend: replace node-schedule with @nest/schedule

* client: hotfix

* backend: restrict user deletion, when proposed video is in watchlist + restrict already watched movies

* client: alerts now shown when adding a movie

* client: alerts now shown when deleting a movie

* client: make tables responsive

* client: hotfix

* backend: hotfix password reset

* backend: email send now html instead of text

* backend: add route GET auth/reset/:username to send a pw reset request + add pw reset flag in db

* backend: add route POST auth/reset/:username to reset password via challenge

* backend: change challenge url for pw reset

* client: edit structure (replace some components with views)

* client: add ResetRequestView

* backend: hotfix

* client: create FormComponent and outsource Form from ResetViews

* client: Outsource form from Login and Register

* client: edit component structure

* client: add router link to reset page in login view

* client: remove bootstrap-table in plugins folder for now

* backend: implement discord.service for sending messages to a webhook + create announce job to sende invites to endpoints like discord

* backend: add notify opt in value for users + logic to notify every opt-in user

* backend: add route POST email_opt_in

* client: add profile option email_opt_in

* backend: emails now only send via text instead of html

* client: import cookie library and create cookie util

* client: replace localstorage with cookie

* Bump qs and formidable

Bumps [qs](https://github.com/ljharb/qs) and [formidable](https://github.com/node-formidable/formidable). These dependencies needed to be updated together.

Updates `qs` from 6.9.3 to 6.10.3
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](ljharb/qs@v6.9.3...v6.10.3)

Updates `formidable` from 2.0.1 to 2.1.1
- [Release notes](https://github.com/node-formidable/formidable/releases)
- [Changelog](https://github.com/node-formidable/formidable/blob/master/CHANGELOG.md)
- [Commits](https://github.com/node-formidable/formidable/commits)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
- dependency-name: formidable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* backend: add compodoc package + run doc script + ignore docs folder

* backend: implemented some params

* types: implemented types for user controller

* backend: edit structure

* backend: add PUBLIC/PRIVATE desc in docs

* docs: add docs to movie controller

* types: add MovieAll type

* types: add types for movie controller

* types: improve names

* types: add types and docs for vote controller

* backend: hotfix

* build: add build:all script to fully build all project components

* build: hotfix

* build: add lots of build scripts

* common: update README.md

* common: update README.md

* client: add docs link in navbar

* types: add types and doc to auth controller

* common: add start:doc run script

* common: update README.md

* common: update README.md

* common: edit .env.tmp file

* common: replace dotenv package with @nestjs/config

* common: serve docs in route /docs

* client: add docs to navbar

* common: rename doc scripts to docs script

* backend: fix role ping bug

* common: edit env file

* common: add config schema validation

* common: add description to config.validation.ts

* common: update README.md

* common: hotfix package

* backend: add patterns and use them for various input validation

* client: improve client patterns

* backend: close issue #11

* common: add env value MAX_PROPOSED_MOVIES with its functionality to restrict the maximum proposeable movies per user + improve MAX_VOTES feedback

* common: rename env var

* client: add lang select to navbar

* client: add update global lang logic + create empty local files

* client: import locale files and use i18next library to access locale files everywhere + add text for navbar

* client: outsource language for home view

* client: outsource language for history view

* client: outsource language for login & register view

* client: outsource language for profile view + alert components + form components

* client: outsource language for reset request & reset view

* client: outsource language for privacy view

* client: hotfix

* client: fill german lang file

* client: hotfix

* backend: add api documentation with swagger + update dtos to classes

* backend: add route descriptions for swagger

* client: add doc view for the different documentations

* backend: small improvements for swagger

* update README.md

* common: update version

* client: make navbar change language + lang fixes

* client: save language settings via cookie

* client: lang fixes

* backend: import nestjs-i18n for multilang and create first boilerplate

* edit locale structure + hotfix + add user lang

* client: add Accept-Language Header

* backend: add movie lang + add lang types

* backend: add vote lang + hotfix

* backend: add auth lang

* common: update README.md

* common: update README.md

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant