question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Great job so far! Here’s the things I stumbled upon:

Documentation

  • Be consistent: timestep vs timestamp
  • I don’t think we need to explain the layout of the option files; an example is sufficient.
  • I think it is tremendously helpful to see example responses of the API calls early on.

Configuration

  • Why split path and regex? Just have path_regex.
  • Not sure about the yes/no syntax for boolean settings. How does e.g. Apache or Nginx handle that?

CLI

  • Config path could be a positional argument
  • Please wrap the config path in os.expanduser for us poor windows souls
  • 💡: Accept rasters from the command line to quickly serve up anything: terracotta *.tif (then open a leaflet map in the browser, with the data already added as a layer, for the ultimate wow effect 😄)

API

  • I don’t think the API queries should include terracotta. You would either run this as a Flask app on its own port, or configure the proxy in your webserver.
  • Using a non-timestep API endpoint for a timestepped dataset causes an uncaught exception (500 server error; should give “Bad Request” or so)

I’ll have a look at the actual code and do some profiling later. I’ll update this issue with my findings.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18

github_iconTop GitHub Comments

1reaction
dionhaefnercommented, Mar 21, 2018

For future reference: the correct way to create COG

1reaction
mrpgraaecommented, Mar 21, 2018

It doesn’t, but in this case, mutating the metadata would keep the internal state intact. I actually meant something like

We will still have to be careful not to put any mutable types into the dict, but I guess that would be the same for frozendict.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is Code Review? - SmartBear
Code Review, also known as Peer Code Review, is the act of consciously and systematically convening with one's fellow programmers to check each...
Read more >
Code review - Wikipedia
Code review is a software quality assurance activity in which one or several people check a program mainly by viewing and reading parts...
Read more >
What is a Code Review & How It Can Save Time | Atlassian
Code review helps developers learn the code base, as well as help them learn new technologies and techniques that grow their skill sets....
Read more >
Code Review Developer Guide | eng-practices - Google
A code review is a process where someone other than the author(s) of a piece of code examines that code. At Google, we...
Read more >
12 Best Code Review Tools for Developers (2022 Edition)
Code review is a part of the software development process which involves testing the source code to identify bugs at an early stage....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found