Giter VIP home page Giter VIP logo

cryptic-device's People

Contributors

chaozz2go avatar defelo avatar devmimas avatar jannikemmerich avatar korkmatik avatar kurzdev avatar maxihuhe04 avatar robrow avatar sunti27 avatar t2brozz avatar tanneberger avatar thecataliastnt2k avatar themorpheus407 avatar use-to avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cryptic-device's Issues

hardware and resources

Describe the feature you would like
Creating new devices with special hardware resulting in better performance for running services.

Is your feature request related to a problem? Please describe.
depending on Inventory

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

Shorten endpoint error messages

Describe the feature you would like
The error messages of the endpoints should be as short as possible and in snake_case (lowercase with underscores).

Is your feature request related to a problem? Please describe.
New convetions.

add directories to filesystem

Describe the feature you would like
To improve the filesystem we need directories. The root path is / (inspired by unix).

GitHub Actions

Describe the feature you would like
Use GitHub Actions instead of Travis

Add an endpoint which returns all available hardware parts

Describe the feature you would like
An endpoint which lists all hardware parts that are available should be added. Essentially, it should return the hardware variable from vars.py. For example /hardware/list, /hardware/parts or /hardware/available.

Is your feature request related to a problem? Please describe.
The frontend or user currently does not have access to the available parts and the properties of them.

split file update endpoint

Describe the feature you would like
Split the file/update endpoint into file/move for renaming or moving a file and file/update for updating the content of a file.

Is your feature request related to a problem? Please describe.
The file/update endpoint seems to be broken.

Add validation of filenames

Describe the feature you would like
The file/create endpoint should not allow empty filenames and filenames with special characters.

Is your feature request related to a problem? Please describe.
In the official frontend, files with empty filenames cannot be deleted and mostly not interacted with because only spaces aren't own arguments for commands in the terminal. Furthermore, when we have folder structures with paths etc., files with slashes for example, would most likely not be treated correctly.

stop miner when associated wallet is deleted

Describe the bug
When a wallet is deleted, which is connected to a miner, the miner keeps running.

Expected behaviour
When a wallet is deleted, which is connected to a miner, the miner should be stopped, and should not save the mined Morphcoin.

part owner can delete devices

Describe the bug
The /device/delete endpoint allows part owners to delete devices remotely

Expected behavior
The endpoint should only allow the real owner to delete the device. Otherwise it should return a permission_denied error.

insufficient restrictions for special file names

If you create a file called "..", you cannot delete it, read it, rename it, move it, etc.
If you create a folder called "..", you cannot use it, enter it, delete it, read it, rename it, move it, etc.

Reproduce

  1. Create a file/folder named ".."
  2. Observe it

Logs
grafik

add microservice endpoint owner

Describe the feature you would like
Returns the User uuid from the owner of an given device.

Is your feature request related to a problem? Please describe.
The Service micro-service has to know who is the owner when you create an service

Additional context
skip

No limit to character amount during re-naming and signing-up

Describe the bug
While naming something, e.g. a device using the "hostname" command, no limit regarding the amount of possible characters is set. This leads to the device microservice ending up in a irrecoverable state due to a SQL error, leading it to not respond.

Expected behavior
The maximum amount of characters for e.g. a device or a username should be limited to e.g. 15 characters.

Reproduce
It is recommended to not attempt to reproduce this error on the public infrastructre.

Solution
The easiest solution would be to check for the size of the given string and reject it if it exceeds a set size (e.g. 15 characters)

It could be possible that this issue is also applicable to other things, e.g. file names etc.

device create does not work for large user inventories

Describe the bug
When a user has a very large inventory and tries to build a new device by using the device/create endpoint the check_exists function fails to receive the entire inventory because this json object would be too long.

Solution
Use the inventory/summary endpoint to receive the user's inventory instead.

starter device

Describe the feature you would like
Second Endpoint for creating a device for new players.

Is your feature request related to a problem? Please describe.
.

Additional context
.

offline devices

Describe the bug
It is possible to turn a remote (hacked) device on if it was turned off before, even if the user is not the owner of the device. Also switched off devices can show up in spot, which should not be possible.

Higher Maximum of devices

I think there should be an option to buy more "space" for devices, so you can higher the maximum and build more devices
Its hard for players who are already maxed out ;D

a few Bugs

  1. Bug: the Terminal dont show the Username@Host
  2. Bug: the Terminal dont show the "answer" from the commands: [spot, ls, hostname]

tested browser:[Firefox(with uMatrix),Chrome]
yesterday was it normal/ y hadnt had this bug Yesterday.

an example terminal session

touch test XXXXXX23-XeXc-XXXX-XXXX-XXXXXXXf00db XXXXXXXXXX
morphcoin look test
ls
help

Add Pipfile.lock

Describe the feature you would like
Add the Pipfile.lock file generated by pipenv.

Is your feature request related to a problem? Please describe.

  1. Generating the Pipfile.lock takes some time when running the automated tests or building the Docker image.
  2. New versions of our dependencies could break something.

do not allow interaction with powered off devices

Describe the feature you would like
When a device is powered off it should not be possible to interact with it. This affects the /device/change_name endpoint and the file endpoints. Also add a ms endpoint other microservices can use to check if a device is turned on.

process information

Describe the feature you would like
Endpoint which return information about a process how many resource points it consumes. So that the frontend can show the right increase of currency points.

Is your feature request related to a problem? Please describe.
Front end needs information about processes.

Additional context
.

add device limit

Describe the feature you would like
Add a limit of 3 devices per user

Merge device and inventory game design parameters

Describe the feature you would like
Please merge the game design parameters of microservice device and inventory in the rewrite of the backend.

Is your feature request related to a problem? Please describe.
Currently, hardware components, prices, index and categories are in two different files. This is error-prone and confusing.

Additional context
For now, the parameters can be managed in a file. However, editing them in a single file would be more convenient.
As more and more parameters are added, we will probably have to think of another way to edit them in the future.

For questions please contact @DevMimas

improve endpoints_available unit test

Describe the feature you would like
For every user and microservice endpoint check the associated function.

Is your feature request related to a problem? Please describe.
When checking for availability of the endpoints they may still be connected to a wrong function

Add Unit Tests

Describe the feature you would like
Add unit tests for Test-driven Development

Is your feature request related to a problem? Please describe.
Tests are needed for TDD

hardware/process does not check for service existence

Describe the bug
When calling the /hardware/process user endpoint with an invalid service_uuid the endpoint does not check whether the service exists.

Expected behavior
The /hardware/process endpoint should check whether the service exists and if not return a service_not_found error.

Identifier for resource usage

Describe the feature you would like
The message that notifies about a change in the computer resource usage ({"cpu": x, "ram": y, "gpu": z, "disk": a, "network": b}) should get an identifier and a key for the microservice that change comes from. For example:

{
    "notify-id": "resource-usage",
    "origin": "service",
    "cpu": 0.2,
    "ram": 0.526,
    "gpu": 0.4,
    "disk": 0.6,
    "network": 0.762
}

or something like that. It should be clearly distinguishable as a notification apart from a request and it should be relatable to the resource usage. The notify-id part should be in all notifications like this in the future.

Is your feature request related to a problem? Please describe.
The current message cannot be easily related to the resource usage. You would first need to check if the message has the keys cpu, ram, gpu, disk and network to relate it to the resource usage.

use func count

Describe the bug
sqlalchemy statement error while .count() alternatively use func.count() or workaround
len(query().all())

To Reproduce
see sentry

Expected behavior
-.

Screenshots
.

Solution
.

Additional context
.

Add index in each hardware component for vars.py

Describe the feature you would like
Add an index as attribute in each hardware component.
Change in vars.py - the same in ms inventory.
The index must be identical in device and inventory.

Additional context
Frontend need an index for the hardwareshop. In the hardware shop the characteristics of each individual hardware should be displayed.

changing error response

Describe the bug
Errors are fucking weird.

Expected behavior
Something like: {"error":"error message"} instead of {"ok":False, "error":"error messages"}

Solution
change it

Additional context
For consistency

Add "delete_user" endpoint

Description

We need to add a delete_user endpoint which is called by the server when a user is going to be deleted.
The endpoint has to delete all to the given user related information.

Start device cannot be deleted

Is your feature request related to a problem? Please describe.
The start device cannot be deleted.

Describe the solution you'd like
The start device cannot be deleted

Additional Comments
All other computers can be deleted.
Info: Start device is created with click in the frontend.

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.