dataforgoodfr / dataforgoodfr/Coordonnees

Add a way to query raw data directly from coordo

Open
#53 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

We need to be able able to query specific data from a datapackage, especially for the dashboard.

I think that defining a "sources" dictionary in the config, with params moved from to the "datapackage" layer, and then adding a route in handle_request which serve that source data would do the job.

Then we should reference that source from the datapackage layer, and move the code around so it all works as before.

That way frontend can freely request "raw" data directly from a source, and maplibre can also use that same endpoint.

This will also prepare the code so we will be able to have different kind of "renderers" (we can think of the map module as a "map renderer" but in the future we could need a "graph" renderer, etc.)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the config, datapackage layer, and handle_request entry point mentioned in the issue. Define how a sources dictionary and source-data route should connect to datapackages, then verify that existing behavior remains unchanged and that raw data can be requested by the dashboard and map renderer.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.