Skip to content

blissdata: Simplify the Beacon Files API

Valentin Valls requested to merge clean-up-beacon-api into master

This PR simplify the BeaconFiles API

  • get_config_file was renamed into get_file.
  • get_config_db_tree was renamed into get_tree
  • get_file now always return bytes (no need twice the method).

Rational

BeaconFiles is a file provider, there is no need to call the method to get file content get_config_file, nor have different API for binary/text files.

read_config handle that stuff, even better, the yaml parser already handle binary files. No need to decode it in between.

Edited by Valentin Valls

Merge request reports