weni-ai / bothub-engine Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Disallow samples creation without an intent or one entity at least.
RepositoryViewSet raised this exception:
'RepositoryViewSet' object has no attribute 'metadata'
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"
Editing sample translation by removing the current sentence and by adding a new one just when the edition is submitted.
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'
Using webapp and engine API.
Reported by @IlhasoftPeter in bothub-it/bothub#26
Reported by @johncordeiro in bothub-it/bothub#43
There is an extra vertical spacing in the bots listing that needs be improved. I'll provide the layout for the right spacing soon.
collectstatic is not documented in Readme and make help
When EMAIL_HOST is setted and DEBUG is True email continue on console
In production this generate url conflict
The links starts with https://bothub/
, correct is https://bothub.it/
next links (List Views) and absolute urls are generated to HTTP protocol because the all requests are make in port 80.
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
AnonUser can't retireve example infos.
Replace the Invalid Entities
text to Entities need to match from the original content
when translating a sample with entities.
We can improve this code like that:
def check_database_connection(**kwargs):
for conn in connections.all():
try:
conn.cursor()
return True
except OperationalError:
return False
return False
reported by @eltonplima in #158
use "You must be logged in to perform this action." message in unauthorized
reported by @tainarte in bothub-it/bothub#7
Replace "reduce" for "for" in this line.
Repository update has the same language:
https://github.com/Ilhasoft/bothub-engine/blob/master/bothub/common/models.py#L478
https://github.com/Ilhasoft/bothub-engine/blob/master/bothub/common/models.py#L489
Reported by @johncordeiro in bothub-it/bothub#36
Create ping route to use as Health Checker
Reported by @johncordeiro in bothub-it/bothub#44
In the creation of a new bot, replace the Register
label to Create bot
.
In the Repository page, update the analyze text order by putting it at the end.
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.
Duplicated nicknames are enabled but it's not supposed to be, it's a security issue.
Check if language has examples to enable trainings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.