Mustafa Sencer Özcan and Rafael Paulovic
088bab8b38
feat: enable auto migration based on resource count ( #115619 )
...
* feat(unified): migration at startup based on resource count
-- draft
* feat: introduce auto migration enablement for dashboards & folders
* feat: enable auto migration based on threshold
* fix: improve
* fix: pass in the auto migrate per migration definition
* fix: minor
* fix: only use one options
* fix: test
* fix: test
* fix: tests
* fix: simplify configs
* chore: rename
* fix: add integration test
* fix: add integration test
* fix: integration tests
* chore: add comments
* fix: address comment
* fix: address comments
* fix: test and auto migration flow
* fix: test
---------
Co-authored-by: Rafael Paulovic <rafael.paulovic@grafana.com >
2026-01-08 13:30:40 +01:00
Rafael Bortolon Paulovic
aa3b9dc4da
Unified: Run resource data migrations at startup ( #114857 )
...
* chore: uncomment unified migration
* chore: adapt and fix tests
* chore: dynamically bump max conns if needed during migration
* chore: copilot suggestions
* chore: pass ctx in RegisterMigration
* chore: make playlists opt-out and dashboards opt-in
* chore: adjust dashboard test
* chore: disable enable log in test
* chore: address review comments
- do not use pointer config
- add migration registry
* chore: more consistent naming
* chore: fix playlist discovery test
2025-12-17 10:09:57 +01:00
Mustafa Sencer Özcan
2d6c1c4e9e
docs: add readme for unified storage on-prem migrations ( #114397 )
...
* docs: add documentation for unified storage migrations
* docs: move
* docs: rename title
* docs: add docs
* fix: update table
* fix: lint
* docs: add migration table explanation
2025-12-16 08:00:22 +00:00
Mustafa Sencer Özcan
4c5d9cb95f
feat: add unified storage data migration step for playlists ( #114582 )
...
* fix: add type
* feat: register step
* feat: add playlist support
* test: add test case
* fix: gen mock
* fix: go gen
* fix: lint
* fix: lint
* fix: tests
* fix: add resource
* fix: readd
* fix: address comments
* fix: independent playlist query for migrations
* fix: remove lock logic for sqlite
* fix: handle creation and update datetimes
* fix: query templating
* fix: simply resources and address comments
2025-12-04 15:15:00 +00:00
Rafael Bortolon Paulovic
31eaf1e898
chore: add log and metric before unified migration enforcement ( #114598 )
2025-12-01 17:56:59 +01:00
Rafael Bortolon Paulovic
12c6d7e83f
fix(unified): in-proc SQLite data migration ( #114537 )
...
* feat: unified storage migrations integration tests
* chore: add comment and adjust db path name
* chore: refactor test cases into interface
* fix: unified SQLite migration with SQLStore migrator
* revert changes to newResourceDBProvider
2025-11-28 13:13:35 +01:00
Rafael Bortolon Paulovic
4c869a21a4
feat(unified): data migration integration tests ( #114418 )
...
* feat: unified storage migrations integration tests
* chore: add comment and adjust db path name
* chore: refactor test cases into interface
2025-11-27 13:35:49 +01:00
Mustafa Sencer Özcan
bca58f5626
feat: add folder tree validation for unified data migration ( #114342 )
...
* fix: add validator
* fix: revert startup index
2025-11-24 11:02:14 +01:00
Mustafa Sencer Özcan
af684248b5
feat: add reindex trigger as a migration validation ( #114283 )
...
* feat: add search validation
* chore: remove comment
* fix: remove local test
* fix: revert rebuild index portion
* chore: remove unnecessary comments
* refactor: validator
* fix: revert setting
2025-11-21 12:21:19 +01:00
Mustafa Sencer Özcan and Rafael Paulovic
30c04ab3fc
feat: inject unified data migrations in dual writer ( #114138 )
...
* feat: draft changes for on-prem unified migration
* feat: further draft changes for on-prem unified migration
* fix: remove some tbis
* refactor: rename
* fix: another approach
* fix: background service related issues
* fix: address comments
* fix: make gen-go
* fix: background service related issues
* feat: refactor dual writer and legacy migrator
* fix: minor issues
* feat: working version in oss
* fix: wire
* fix: revert test data override
* fix: enterprise related issues
* chore: add todo
* fix: revert dual writer method
* fix: lint
* chore: logger format
* fix: reduce log level
* fix: log change
* fix: disable
* fix: address comments
* fix: return error on dual writer service
* fix: merge conflict
---------
Co-authored-by: Rafael Paulovic <rafael.paulovic@grafana.com >
2025-11-20 16:40:20 +01:00
Rafael Bortolon Paulovic
65fd15bbf9
feat: define unified disable migrations flag ( #114120 )
...
chore: add US data migrations config
2025-11-20 15:47:44 +01:00
Mustafa Sencer Özcan
0d4ad01b65
feat: add unified data migrations for dashboard and folders ( #113853 )
2025-11-19 09:09:08 +01:00