Jason Kulatunga
99af2b8b16
WIP settings system.
...
- updated dbdiagrams schema
- [BREAKING] force failure if `notify.filter_attributes` or `notify.level` is set
- added Settings table (and default values during migration)
- Added Save Settings and Get Settings functions.
- Added web API endpoints for getting and saving settings.
- Deprecated old Notify* constants. Created new MetricsStatus* and MetricsNotifyLevel constants.
2022-07-17 10:32:28 -07:00
Jason Kulatunga
dd0c3e6fba
rename the migration model package name.
2022-07-16 22:07:50 -07:00
Jason Kulatunga
5b2746f389
initial settings table.
2022-07-16 21:50:48 -07:00
Jason Kulatunga
5ea149d878
upgrading to go 1.18 for generics (and lodash-like library).
...
devices with an empty wwn should be filtered out (not uploaded during device registration, skipped when attempting to upload metrics).
added a migration to delete existing device entries with an empty `wwn`
fixes #314
2022-07-09 18:28:49 -07:00
Jason Kulatunga
4419f7f429
remove zig. remove cgo dependency for sqlite (using pkg.go.dev/modernc.org/sqlite)
2022-07-06 21:39:28 -07:00
Jason Kulatunga
3a970e7a27
Merge pull request #262 from AnalogJ/beta
...
pre-v0.4.7 release
2022-05-25 07:50:21 -07:00
Jason Kulatunga
307c2bcdef
fix error message.
...
Simpler GormMigrateOptions.
2022-05-25 07:39:56 -07:00
Jason Kulatunga
d08a1e3ef6
ignore retention policy errors during migration.
...
- fixes #256
2022-05-24 14:26:40 -07:00
Jason Kulatunga
2292041f9f
never drop tables.
2022-05-24 10:00:41 -07:00
Jason Kulatunga
75e4bf1d6e
added a helpful comment that the database migration might take a looong time.
2022-05-24 09:47:09 -07:00
Jason Kulatunga
97add04276
make sure the migration step runs with transactions, so that we can debug easier.
...
- related #256
2022-05-24 09:07:38 -07:00
Jason Kulatunga
999c12748c
added a way to retrieve raw udev data. Can be used to retrieve disk label, UUID and "disk/by-id/*" device info.
...
Storing it in the database during device registration.
2022-05-20 20:59:29 -07:00
Jason Kulatunga
145996055a
use locked versions of database models when doing migrations.
2022-05-09 17:06:02 -07:00
Jason Kulatunga
5f12fbb510
enable final migration cleanup.
2022-05-04 20:50:17 -07:00
Jason Kulatunga
fc5a9ba15e
fixed device processing in details page. Summary query is still broken.
2022-05-04 20:13:11 -07:00
Jason Kulatunga
8fe0dbed6b
partially working. Some datapoints are failing with panic and are silently ignored.
...
TODO must fix.
2022-05-03 22:40:31 -07:00
Jason Kulatunga
7d963c96a6
writing pseudocode algorithm for data migration.
2022-05-03 12:03:08 -07:00
Jason Kulatunga
9d85920f49
started working on migration code.
2022-05-03 11:50:22 -07:00