-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
back-endThis issue is part of the back-end (Python part) of the application.This issue is part of the back-end (Python part) of the application.nice to haveLower priority, nice to have featuresLower priority, nice to have features
Description
In pydash_app.dashboard.services.fetching:
- Check if result of
/get_json_monitor_rulesis formatted correctly:- The top level structure is an array
- The array contains objects that adhere to the right structure:
endpoint: stringlast_accessed: date string, formatted as%Y-%m-%d %H:%M:%S.%f(yyyy-mm-dd hh:mm:ss.micro) OR the string'None'monitor: booleantime_added: date string, formatted as%Y-%m-%d %H:%M:%S.%f(yyyy-mm-dd hh:mm:ss.micro)version_added: string
- Check if result of
/get_json_datais formatted correctly:- The top level structure is an array
- The array contains objects that adhere to the right structure:
endpoint: stringexecution_time: floattime: date string, formatted as%Y-%m-%d %H:%M:%S.%f(yyyy-mm-dd hh:mm:ss.micro)version: stringgroup_by: stringip: string
In order to test this, we can try serving the following data from a remote dashboard:
- Malformed structure from
/get_json_monitor_rules:- Top level structure not an array
- Endpoint objects with missing elements
- Endpoint objects with wrongly formatted elements (for example: int instead of string, wrongly formatted date/time)
- Malformed structure from
/get_json_data:- Top level structure not an array
- Endpoint call objects with missing elements
- Endpoint call objects with wrongly formatted elements
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
back-endThis issue is part of the back-end (Python part) of the application.This issue is part of the back-end (Python part) of the application.nice to haveLower priority, nice to have featuresLower priority, nice to have features