Skip to content

Latest commit

 

History

History
184 lines (125 loc) · 7.65 KB

changelog.md

File metadata and controls

184 lines (125 loc) · 7.65 KB

Changelog - "Shot DataBase" Decent DE1app plugin

Format based on Keep a Changelog.

[1.26] - 2024-02-21

Changed

  • Remove forgotten debugging messages in save_espresso_to_history_hook that could produce a runtime error if running SDB without DYE. Reported by Alan Leung.

[1.25] - 2024-02-18

Changed

  • Better handling of target_drink_weight.
  • Read flush settings variables flush_seconds and flush_flow from shots in proc load_shot. Needed for DYE v2.42.

[1.24] - 2024-01-22

New

  • Insert, update and load the new shot field target_drink_weight.

Changed

  • Update "sync" symbol name that has changed in Font Awesome 6 (in SDB settings button)

[1.23] - 2024-01-17

Changed

  • Add espresso_resistance to the vars read by ::plugins::SDB::load_shot. Needed for DYE v2.33.

[1.22] - 2024-01-13

Changed

  • Reverse bug introduced in last version in proc shots that was no longer correctly creating each array item as a list.

[1.21] - 2024-01-12

New

  • DSx2 workflow variable is now stored in the database, as column workflow in the shot table, so it can be retrieved from past shots. Only filled if the shot is done while using the DSx2 skin.
  • New column target_drink_weight added to the shot table to store the shot target yield/SAW in addition to the final actual drink weight that is in column drink_weight. Not filled at the moment, in preparetion to changes in DYE.
  • New proc shots_by, needed in the forthcoming DYE favorites.

Changed

  • Initialize $columns in proc update_shot_description as otherwise it could trigger a runtime error under some scenarios.
  • Fix proc shots to accept "*" in return_columns and to not cast column values as lists.

[1.20] - 2022-02-01

Changed

  • Change the default for sync_on_startup to 0 (disabled) for new users, in preparation for DE1 app v1.39, as it's producing long startups for some users.

[1.20] - 2022-03-01

Changed

  • Change the default for sync_on_startup to 0 (disabled) for new users, in preparation for DE1 app v1.39, as it's producing long startups for some users.

[1.19] - 2022-02-01

Changed

  • Ensure that the advanced_shot and other parameters of profiles are correct and consistent by invoking ::profile::read_legacy on load_shot when read_profile=1, instead of just reading the profile variables.
  • Bug fix: command load_shot was wrongly setting the global settings_profile_type instead of the loaded shot variable in some cases.

[1.18] - 2021-12-06

Changed

  • Make all text columns searching case-insensitive (COLLATE NOCASE). This is done on table creation, so only affects if the database is rebuilt. Note that this does NOT work on Androwish 2019 on tablet for doing case-insensitive searches on V_shot.shot_desc.
  • Treat grinder_setting as a numeric value (even if defined as a "category" in app_metadata.tcl) in load_shot, so that zero is turned into an empty string. Do this to prevent empty values (normally when "Clear shot data" was used) in the grinder setting field in DYE.

[1.17] - 2021-11-30

Changed

  • load_shot now prefixes chart series variables with graph_, otherwise espresso_pressure chart seriew was being overwritten by the profile espresso_presure variable when both read_series=1 and read_profile=1.
  • shots gets a new argument order_by.

[1.16] - 2021-11-?

Changed

  • Ensure in proc plugins::SDB::modify_shot_file that chart series in modified shot files are saved in exactly the same order as in the original shot by shot::create_legacy. This may be related to the duplicated Visualizer shots reported by Ricco Rosini.

[1.15] - 2021-11-08

New

  • Add filelist.txt.

Changed

  • Avoid errors when shots log longer espresso_elapsed charts than other series (reported by Jimmy Leow1). Now only stores in the DB to the shortest length between espresso_elapsed, espresso_pressure and espresso_flow in proc persist_shot, and ensures any empty value is set to NULL.

[1.14] - 2021-11-01

Changed

  • Add chart series espresso_resistance and espresso_resistance_weight in proc modify_shot_series, so they can be uploaded to Visualizer, preventing duplicated shot files (as regular Visualizer auto-upload includes them).

[1.13] - 2021-10-26

New

  • Proc load_shot now can load profiles

Changed

  • Proc load_shot has 3 new optional arguments for what to load (chart series, description and/on profile)

[1.11] - 2021-10-05

Changed

  • Fix saving of drink_weight under MimojaCafe in save_espresso_to_history_hook

[1.10] - 2021-10-04

Changed

  • If there is no bluetooth scale connected, so that settings(drink_weight) is zero at the end of a shot, save the target drink_weight in the shot, as defined in the skin (DSx & MimojaCafe) or in the DYE extension (next_drink_weight). Also updates $::DSx_settings(live_graph_weight) on DSx.

[1.09] - 2021-10-03

Changed

  • Ensure empty numeric values are set to 0 in modify_shot_file.

[1.08] - 2021-09-18

Changed

  • get_shot_file_path now searches the database first to match a clock value to a filename, as different systems (e.g. Android vs Windows 10) may format clock values differently.
  • The SDB_settings page now has type "fpdialog".

[1.07] - 2021-07-28 (Bundled with DE1app 1.37)

Changed

  • Increase TDS maximum value to 25%.
  • load_shot now uses new metadata package.
  • Ensure NULL values on all series in case they're shorter than elapsed.

[1.06] - 2021-05-08

Changed

  • Don't raise a runtime error if parsing a shot file fails while synchronizing. Only log an error and show the total number of errors in a new line in the settings page
  • Sort categories in FSH page by most recently used first
  • Move package dependencies to preload to avoid problems when downgrading versions
  • Set DYE_settings page through 'dui page add' instead of inside setup

[1.05] - 2021-04-30

Changed

  • Change the Fontawesome symbol names to standard names.

[1.04] - 2021-04-29

Changed

  • Ensure the required minimum version of the DE1app is used (v1.36 for this plugin version)
  • Use DUI instead of DGUI to setup the settings page.
  • Copy shots.db from the DSx plugin on first install.
  • Data dictionary functions are back, now that the DGUI plugin is obsolete.

[1.03] - 2021-03-29

Changed

  • Patch bug when $::settings(repository_links) was not initialized.
  • Use Jeff K's new events system to hook when a shot is finished.

[1.02] - 2021-03-01 (Bundled with DE1app 1.34.?)

Changed

  • Adapt to new plugins and logging systems in 1.34.14
  • Define symbols used in the plugin on preload (new DGUI proc set_symbols)

[1.01] - 2021-02-21 (Bundled with DE1app 1.34.14)

Changed

  • Data dictionary functions moved to DGUI plugin, to avoid circular dependencies.
  • init proc moved to main.
  • Handle dependencies using the proposed changes to the extensions system.
  • New proc db_path returns the path to the database (previously hardcoded).

[1.00] - 2021-02-17 (Bundled with DE1app 1.34.11)

Changed

  • Initial code split off the DB namespace from the DSx DYE plugin.
  • Added structure to work as a DE1app plugin instead of a DSx plugin.
  • Remade db_close to prevent runtime errors if called more than once.
  • Define which procs are namespace-exported.
  • New settings sync_on_startup and log_sql_statements.
  • Added settings page.