Code Monkey home page Code Monkey logo

Comments (7)

Turbo87 avatar Turbo87 commented on June 15, 2024 1

How do you debug the server ?

depends on what exactly you mean by that

What are the steps to install the python deps an run the tests ?

# Install Python dependencies
- run: pip install pipenv==v2020.4.1b2
- run: pipenv install --dev
# Run the test suite
- run: pipenv run py.test -vv --color=yes --cov=skylines --cov-report term-missing:skip-covered
should give a few hints.

from skylines.

vicb avatar vicb commented on June 15, 2024

Hey @Turbo87 do you think this is a good idea ?

Would you merge this if I create a PR ?

The query parameter could be called from_time and take a UNIX timestamp.
It could be added to the endpoints:

  • /tracking/latest.json
  • /live/<user_ids>
  • /live/<user_id>/json in complement of the already existing last_update.

The advantage would be that I don't have to pull 12h of track every time I retrieve positions from Skylines. It would save bandwidth and CPU.

What do you think ?

from skylines.

Turbo87 avatar Turbo87 commented on June 15, 2024

seems like a reasonable request. I'm a little worried about breaking the existing code though, so it would be great if you could ensure that we have decent test coverage for these endpoints before modifying them. 🙏

from skylines.

vicb avatar vicb commented on June 15, 2024

Thanks @Turbo87 I'll give it a try.

I am having troubles installing the Vagrant env.

On the first vagrant up I get the error default: Failed to fetch http://ppa.launchpad.net/jonathonf/python-2.7/ubuntu/dists/trusty/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.95.83 80]. A second vagrant up goes through but I suspect I have missing dependencies.

Do you have updated instructions on how to setup the development environment and run the tests ?

Thanks,
Vic

from skylines.

Turbo87 avatar Turbo87 commented on June 15, 2024

I haven't run if for a while. It's possible that some dependency update broke it... 😞

welcome to the rabbit hole 🎉

from skylines.

vicb avatar vicb commented on June 15, 2024

I can try to investigate this.

How do you debug the server ?

What are the steps to install the python deps an run the tests ?

I guess
pipenv install --dev and then ?

from skylines.

vicb avatar vicb commented on June 15, 2024

I have hacked a working config using https://github.com/nektos/act

Using the comand:

$ act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -j backend

I should be able to make some progress with that.

Thanks for your help.

from skylines.

Related Issues (20)

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.