Giter Club home page Giter Club logo

fc-catalogo-de-videos's Introduction

fc-catalogo-de-videos's People

Contributors

lucassimon avatar

Watchers

 avatar

fc-catalogo-de-videos's Issues

Ao criar uma categoria poder enviar multiplas categorias e generos

Através do insomnia não consigo cadastrar multiplas categorias ou generos.

insomnia_multipart_categories_and_genres

Verificar o MultiiParseForm e ou tratar no VideoCreateSerializers

Possiveis efeitos colaterais

  • Refatorar os testes
  • Refatorar a função create_video
  • Reatorar check_genres_are_in_categories

Verificar as migrations ao levantar o docker-compose

Quando fui fazer um POST em castmember ocorreu o erro:

catalog-svc_1  |     return executor(sql, params, many, context)
catalog-svc_1  |   File "/home/api/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
catalog-svc_1  |     with self.db.wrap_database_errors:
catalog-svc_1  |   File "/home/api/.venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
catalog-svc_1  |     raise dj_exc_value.with_traceback(traceback) from exc_value
catalog-svc_1  |   File "/home/api/.venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
catalog-svc_1  |     return self.cursor.execute(sql, params)
catalog-svc_1  | django.db.utils.ProgrammingError: column "id" is of type bigint but expression is of type uuid
catalog-svc_1  | LINE 1: ...", "created", "modified", "name", "kind") VALUES ('3d917743-...
catalog-svc_1  |                                                              ^
catalog-svc_1  | HINT:  You will need to rewrite or cast the expression.
catalog-svc_1  | 
catalog-svc_1  | [03/May/2022 00:22:29] "POST /api/v1/castmembers/ HTTP/1.1" 500 194851

Verifiquei no banco de dados e a tabela estava criada como id sequencial

Procedimento que executei:

# api @ e01238520603 in ~/app on git:main x [0:25:30] 
$ python manage.py migrate castmembers zero
Operations to perform:
  Unapply all migrations: castmembers
Running migrations:
  Rendering model states... DONE
  Unapplying castmembers.0001_initial... OK

# api @ e01238520603 in ~/app on git:main x [0:25:47] 
$ python manage.py migrate castmembers     
Operations to perform:
  Apply all migrations: castmembers
Running migrations:
  Applying castmembers.0001_initial... OK

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.