Giter Site home page Giter Site logo

tesla-ce / core Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 3.0 15.99 MB

TeSLA CE Core System

Home Page: https://tesla-ce.github.io

License: GNU Affero General Public License v3.0

Python 99.13% Dockerfile 0.23% Shell 0.01% HTML 0.12% JavaScript 0.31% Makefile 0.21%
tesla-ce agpl e-assessment python

core's Introduction

PyPi Version codecov Vulnerability scan CodeQL AGPL License FOSSA Status Quality gate

TeSLA CE Core System

⚠️ This repository is under construction. Final release of TeSLA Community Edition source code is expected by the end of 2021

Description

Description: A description of your project follows. A good description is clear, short, and to the point. Describe the importance of your project, and what it does.

Installation

Installation: Installation is the next section in an effective README. Tell other users how to install your project locally. Optionally, include a gif to make the process even more clear for other people.

Usage

Usage: The next section is usage, in which you instruct other people on how to use your project after they’ve installed it. This would also be a good place to include screenshots of your project in action.

Contributing

Contributing: Larger projects often have sections on contributing to their project, in which contribution instructions are outlined. Sometimes, this is a separate file. If you have specific contribution preferences, explain them so that other developers know how to best contribute to your work. To learn more about how to help others contribute, check out the guide for setting guidelines for repository contributors.

Credits

Credits: Include a section for credits in order to highlight and link to the authors of your project.

License

This project is licensed under AGPL v3 licence.

FOSSA Status

core's People

Contributors

brothapps avatar mireiki avatar rogergithub3 avatar xbaro avatar zemm avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

core's Issues

tesla_ce deploy_core

Describe the bug
When tesla_ce deploy_core is executed, the tesla_services.yml is rewroted.

To Reproduce
Steps to reproduce the behavior:
tesla_ce deploy_core

Use appropiatedweb-plugin release version when docker image is created.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Vault in file backend

Change database backend to file backend.

Inside config/vault_config.json this is the content of this file:
{
"ui": true,
"backend": {
"file": {
"path": "/vault_data",
}
},
"listener": {
"tcp": {
"address": "0.0.0.0:8200",
"tls_disable": true
}
},
"disable_mlock": true
}

In tesla_services.yml is needed to add:
vault:
volumes:
- vault_volume:/vault_data

volumes:
....
vault_volume:
driver_opts:
type: none
device: /var/tesla/vault
o: bind

Use latest version of rabbitmq

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Error 500 when get activities of user is not leaner

Describe the bug
API returns error code 500 when get activites of user is not leaner

To Reproduce
Steps to reproduce the behavior:

  1. Login to dashboard with global admin.
  2. Check console.log

Expected behavior
Returns code 200 response with empty activities.

Screenshots
Screenshot_2021-12-27_11-44-27

activate filter gte in report list endpoint

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

add filters in endpoint api/v2/institution/1/send

Describe the bug
It is necessary to activate filters in this endpoint:
api/v2/institution/1/send/?description=miop&offset=0&limit=10

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

/api/v2/insititution/1/user/2/profile 500 error

Error when try to change locale and password: response error 500

In tesla_core logs:

https://dev.tesla-ce.eu/api/v2/institution/1/user/2/profile/

AssertionError('.validate() should return the validated data')

  File "/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/venv/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/venv/lib/python3.10/site-packages/rest_framework/viewsets.py", line 125, in view
    return self.dispatch(request, *args, **kwargs)
  File "/venv/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/venv/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/venv/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/venv/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "/venv/lib/python3.10/site-packages/tesla_ce/apps/api/v2/views/institution/user.py", line 168, in profile
    if data.is_valid():
  File "/venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 227, in is_valid
    self._validated_data = self.run_validation(self.initial_data)
  File "/venv/lib/python3.10/site-packages/rest_framework/serializers.py", line 430, in run_validation
    assert value is not None, '.validate() should return the validated data'
AssertionError: .validate() should return the validated data

On exception or close revoke leases in vault

Is your feature request related to a problem? Please describe.
On exception or close revoke leases in vault

Describe the solution you'd like
On exception or close revoke leases in vault

Delete duplicity of profile fields

Is your feature request related to a problem? Please describe.
/profile returns too much data outside institution subobject.

Describe the solution you'd like
Delete these data.

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.