Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Conversation

@MalinAhlberg
Copy link
Collaborator

Description

Allow a sample_queries.json file in beacon_api/conf with sample queries to show in the info call, instead of the ones in beacon_api/api/info.py.

Makes it easier to have your own sample queries, since you will not need to edit the beacon_api/api/info.py to change this.

Type of change

  • New feature (non-breaking change which adds functionality)

Changes Made

Add another optional config-file, the content of this will be stored in __sample_queries__.

Copy link
Contributor

@blankdots blankdots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice in the long term if we could generate these example somehow, or start an issue and think about it.

@teemukataja
Copy link
Contributor

It would be nice in the long term if we could generate these example somehow, or start an issue and think about it.

One solution could be, that we extract a few rows from the DB as example queries (only PUBLIC datasets).

Co-Authored-By: Teemu Kataja <kataja.teemu@gmail.com>
@teemukataja teemukataja merged commit 626e0a0 into CSCfi:master May 13, 2019
@teemukataja teemukataja deleted the feature/configurable_samples branch May 13, 2019 10:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants