Giter Club home page Giter Club logo

bothub-engine's Issues

Ping route

Create ping route to use as Health Checker

Duplicated nicknames

Duplicated nicknames are enabled but it's not supposed to be, it's a security issue.

Improve actions that needs login

Improve the action of request login when doing an action that requires it. For example, the voting action or the training of a bot. I'll provide the layout for that soon.

Problems with error handling

AttributeError at /repository/douglas/ptbr/analyze/
'NoneType' object has no attribute 'get'

Request Method: POST
Request URL: https://api.staging.bothub.it/repository/douglas/ptbr/analyze/
Django Version: 2.1.3
Python Executable: /usr/local/bin/python
Python Version: 3.6.7
Python Path: ['/home/app', '/usr/local/bin', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages']
Server time: Mon, 10 Dec 2018 11:14:40 +0000
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'rest_framework',
 'rest_framework.authtoken',
 'django_filters',
 'corsheaders',
 'bothub.authentication',
 'bothub.common',
 'bothub.api']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'whitenoise.middleware.WhiteNoiseMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'corsheaders.middleware.CorsMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']


Traceback:

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  126.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  124.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  54.         return view_func(*args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/rest_framework/viewsets.py" in view
  116.             return self.dispatch(request, *args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  495.             response = self.handle_exception(exc)

File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  455.             self.raise_uncaught_exception(exc)

File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  492.             response = handler(request, *args, **kwargs)

File "/home/app/bothub/api/v1/views.py" in analyze
  523.         message = error.get('message')  # pragma: no cover

Exception Type: AttributeError at /repository/douglas/ptbr/analyze/
Exception Value: 'NoneType' object has no attribute 'get'
Request information:
USER: [email protected]

GET: No GET data

POST: No POST data

FILES: No FILES data

COOKIES: No cookie data

Spacing in repository cards

There is an extra vertical spacing in the bots listing that needs be improved. I'll provide the layout for the right spacing soon.

NLP raises exception "'NoneType' object has no attribute 'value'"

NLP service causes this exception:

Traceback (most recent call last):
  File "/home/app/bothub_nlp/server/handlers/train.py", line 35, in post
    train_update(current_update, repository_authorization.user)
  File "/home/app/bothub_nlp/core/train.py", line 80, in train_update
    for example in label_examples_query]
  File "/home/app/bothub_nlp/core/train.py", line 80, in <listcomp>
    for example in label_examples_query]
  File "/home/app/bothub_nlp/core/train.py", line 79, in <listcomp>
    for entity in example.get_entities(update.language)])
  File "/home/app/src/bothub/bothub/common/models.py", line 718, in get_rasa_nlu_data
    if label_as_entity else self.entity.value,
AttributeError: 'NoneType' object has no attribute 'value'

Update user profile page

Update the user profile page, especially the top of it. This is the same page for the current user and to visit other's user profile:

screen shot 2018-06-04 at 10 16 35 am

The new layout for this, I'll provide soon.

Edit sample translation

Editing sample translation by removing the current sentence and by adding a new one just when the edition is submitted.

Create alias to languages in parse endpoint

Create alias to languages and your dialects.
E.g:
pt -> "pt_br"

Create alias to verbose languages:
E.g:
english -> "en"
portuguese -> "pt" or "pt_br"

Create alias like shortcuts:
E.g:
br -> "pt_br"

Improve search layout

On the search layout, the text typed it's at the same color as the placeholder, which is not common in this kind of action

screen shot 2018-06-04 at 11 50 00 am

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.