Alexander A. Klimov
2d2cad1677
cmd/ido2icingadb: sliceIdoHistory(): reduce onRows call complexity
2022-10-11 12:46:18 +02:00
Alexander A. Klimov
086b3d3f07
cmd/ido2icingadb: sliceIdoHistory(): re-use memory
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
163c8629e9
cmd/ido2icingadb: env: "Environment" config constant value -> hex ID
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
4e58631f8e
cmd/ido2icingadb: make IDs UUID -> SHA1
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
34b3ee1767
cmd/ido2icingadb: merge countIdoHistory() and computeProgress()
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
b78b15e32c
cmd/ido2icingadb: ensure migration progress bar finishes
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
2c23b145b7
cmd/ido2icingadb: resume migration progress bar where interrupted
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
bc5ad21a6d
cmd/ido2icingadb: simplify computeProgress() a lot
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
6e7e217b3c
cmd/ido2icingadb: sliceIdoHistory(): take named args
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
068052f75b
cmd/ido2icingadb: migrate(): don't REPLACE, but upsert (one by one)
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
77fa207eb5
cmd/ido2icingadb: simplify unnecessarily complex datatype
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
4fe3134bdd
cmd/ido2icingadb: document misc.go
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
662744ee48
cmd/ido2icingadb: migrate(): UPDATE after REPLACE
...
... not to loose data.
2022-10-11 12:45:36 +02:00
Alexander A. Klimov
7e0d3d59a5
cmd/ido2icingadb: document cache.go
2022-10-11 12:45:33 +02:00
Alexander A. Klimov
3ca0b493af
cmd/ido2icingadb: document main.go
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
f63892ea01
Revert "Outsource cmd/icingadb.Exit* to cmd/internal"
...
This reverts commit fb02ea67ad17af35e72434e97b3e611434405392.
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
f4a2741f00
cmd/ido2icingadb: remove redundant function
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
7d2ea6c8b5
cmd/ido2icingadb: don't re-invent sqlx.In()
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
31e7c38404
cmd/ido2icingadb: types: add keys and delete zero values
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
21115334c4
cmd/ido2icingadb: document sliceIdoHistory()
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
87a6f8ede7
cmd/ido2icingadb: shorten SugaredLogger#With().Info() to #Infow()
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
d9e2c7daf4
cmd/ido2icingadb: reason not actually used INNER JOINs
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
ae57d4fe6f
cmd/ido2icingadb: reduce IDE warnings
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
517fdcb475
cmd/ido2icingadb: correct log levels
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
5396afe32a
cmd/ido2icingadb: actually migrate
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
6b583242eb
cmd/ido2icingadb: chunk all large queries
2022-10-11 12:44:24 +02:00
Alexander A. Klimov
6ae22d5fec
cmd/ido2icingadb: fill cache
2022-10-11 12:44:20 +02:00
Alexander A. Klimov
0704750f85
cmd/ido2icingadb: generalize cache schemata
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
63ab8d938e
cmd/ido2icingadb: support SELECT xh.foo_bar->FooBar int
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
423c948d30
cmd/ido2icingadb: introduce barIncrementer
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
d9d8fb7576
cmd/ido2icingadb: make bulk a const
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
4de76da239
cmd/ido2icingadb: introduce historyType#setupBar()
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
d9381ec2fa
cmd/ido2icingadb: separate cache schema
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
b005b4c08b
cmd/ido2icingadb: make log a global var
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
1d111b7dd3
cmd/ido2icingadb: prepare cache
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
1141058b9c
cmd/ido2icingadb: split main()
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
495e0afe32
cmd/ido2icingadb: deduplicate parallelism
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
2f5d5ea931
cmd/ido2icingadb: compute previous progress
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
05c736aa8f
.../compliance/check-licenses.sh: also check UNLICENSE
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
4eb2ba1ea4
cmd/ido2icingadb: count total IDO events
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
890b66ddb9
cmd/ido2icingadb: connect to databases
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
dce3889645
cmd/ido2icingadb: parse config file
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
700f88a2ff
cmd/ido2icingadb: parse CLI flags
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
3c1a83e222
Outsource cmd/icingadb.Exit* to cmd/internal
2022-10-11 10:17:47 +02:00
Alexander A. Klimov
6209b5b376
Save memory during config sync via SyncSubject#FactoryForDelta()
...
Code comment TL;DR: Allocate the same amount of smaller data structures
2022-09-13 17:57:23 +02:00
Julian Brost
a93da02eba
Merge pull request #520 from Icinga/feature/go-vendor-diff
...
Show diff of dependencies in GitHub Actions
2022-08-22 16:46:42 +02:00
Julian Brost
5d2c8fc10b
Show diff of dependencies in GitHub Actions
...
dependabot adds a link showing the diff of the dependency but when there are
changes in indirect dependencies, these have to be diffed manually. This commit
vendors the dependencies before and after a PR and outputs the diff.
2022-08-19 16:03:55 +02:00
Alexander Aleksandrovič Klimov
305800fdb0
Merge pull request #503 from Icinga/parseString-DRY
...
parseString(): Don't Repeat Yourself
2022-08-19 11:46:34 +02:00
Julian Brost
cee8fbd9d6
Merge pull request #512 from Icinga/dependabot/go_modules/github.com/stretchr/testify-1.8.0
...
Bump github.com/stretchr/testify from 1.7.2 to 1.8.0
2022-08-12 14:43:44 +02:00
dependabot[bot]
dc36e7619a
Bump github.com/stretchr/testify from 1.7.2 to 1.8.0
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.2 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 10:01:01 +00:00