Alexander A. Klimov
365f97d092
Flatten(): type-check input only once
2024-03-25 14:52:54 +01:00
Alexander A. Klimov
10afc562ce
Use types.MakeString() instead of manual initialization (refactor)
2024-03-25 14:52:54 +01:00
Alexander A. Klimov
d36ade1f14
Test Flatten()
2024-03-25 14:52:54 +01:00
Alexander A. Klimov
e2fc7695e0
Introduce types.MakeString()
2024-03-25 14:52:54 +01:00
Julian Brost
194028a35a
Merge pull request #715 from Icinga/go-redis-v9
...
Upgrade `go-redis` to `v9`
2024-03-25 11:02:02 +01:00
Julian Brost
16333b114d
Merge pull request #700 from Icinga/icingadb_schema-timestamp
...
MySQL/MariaDB: Fix `icingadb_schema.timestamp` not being UNX time
2024-03-25 09:55:28 +01:00
Julian Brost
f0b9c59ce8
Merge pull request #710 from Icinga/pgsql-get_sla_ok_percent-decimal-i648
...
PostgreSQL: get_sla_ok_percent to return decimal
2024-03-25 09:54:30 +01:00
Yonas Habteab
a27a743c27
Merge pull request #684 from Icinga/Al2Klimov-patch-2
...
Remove redundant closure
2024-03-25 09:26:38 +01:00
Eric Lippmann
e31b101f4f
Upgrade go-redis to v9
...
Co-Authored-By: Alvar Penning <alvar.penning@icinga.com>
2024-03-22 15:32:15 +01:00
Julian Brost
112f6d7966
Merge pull request #699 from Icinga/mysql-strict-mode
...
MySQL/MariaDB: Use strict SQL mode
2024-03-21 15:49:47 +01:00
Julian Brost
16f4ac6d3e
Merge pull request #712 from Icinga/dependabot/go_modules/tests/github.com/docker/docker-24.0.9incompatible
...
build(deps): bump github.com/docker/docker from 24.0.7+incompatible to 24.0.9+incompatible in /tests
2024-03-21 12:51:05 +01:00
dependabot[bot]
50f56eb130
build(deps): bump github.com/docker/docker in /tests
...
Bumps [github.com/docker/docker](https://github.com/docker/docker ) from 24.0.7+incompatible to 24.0.9+incompatible.
- [Release notes](https://github.com/docker/docker/releases )
- [Commits](https://github.com/docker/docker/compare/v24.0.7...v24.0.9 )
---
updated-dependencies:
- dependency-name: github.com/docker/docker
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-20 17:30:25 +00:00
Alvar Penning
34ac3867a9
PostgreSQL: get_sla_ok_percent to return decimal
...
The final division within the get_sla_ok_percent SQL function in its
PostgreSQL implementation silently truncated decimal places. An explicit
decimal cast resulted for this equation resulted in a decimal value.
To both verify and catch this in the future, a test with odd numbers was
added. This already succeeded for MySQL, but needed the modified schema
for PostgreSQL.
Closes #648 .
2024-03-20 13:16:24 +01:00
Julian Brost
c19795a2dd
Merge pull request #702 from Icinga/dependabot/go_modules/tests/github.com/goccy/go-yaml-1.11.3
...
build(deps): bump github.com/goccy/go-yaml from 1.9.5 to 1.11.3 in /tests
2024-03-19 14:52:39 +01:00
Julian Brost
547777cd52
Merge pull request #675 from Icinga/dependabot/go_modules/github.com/goccy/go-yaml-1.11.3
...
build(deps): bump github.com/goccy/go-yaml from 1.11.2 to 1.11.3
2024-03-19 14:52:18 +01:00
Julian Brost
6dfabb3399
Merge pull request #701 from Icinga/dependabot/go_modules/tests/go.uber.org/zap-1.27.0
...
build(deps): bump go.uber.org/zap from 1.26.0 to 1.27.0 in /tests
2024-03-19 14:41:09 +01:00
Julian Brost
cda7bbab3c
Merge pull request #693 from Icinga/retry-epipe
...
Retry broken pipe errors (`EPIPE`)
2024-03-19 14:40:34 +01:00
dependabot[bot]
96d48a8973
build(deps): bump go.uber.org/zap from 1.26.0 to 1.27.0 in /tests
...
Bumps [go.uber.org/zap](https://github.com/uber-go/zap ) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/uber-go/zap/releases )
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/zap/compare/v1.26.0...v1.27.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/zap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 11:11:33 +00:00
dependabot[bot]
a7ac1cb93d
build(deps): bump github.com/goccy/go-yaml in /tests
...
Bumps [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml ) from 1.9.5 to 1.11.3.
- [Release notes](https://github.com/goccy/go-yaml/releases )
- [Changelog](https://github.com/goccy/go-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/goccy/go-yaml/compare/v1.9.5...v1.11.3 )
---
updated-dependencies:
- dependency-name: github.com/goccy/go-yaml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 11:11:27 +00:00
Julian Brost
f405279bc9
Merge pull request #705 from Icinga/dependabot/go_modules/tests/github.com/jmoiron/sqlx-1.3.5
...
build(deps): bump github.com/jmoiron/sqlx from 1.3.4 to 1.3.5 in /tests
2024-03-19 12:10:37 +01:00
dependabot[bot]
f28da7e1b0
build(deps): bump github.com/jmoiron/sqlx from 1.3.4 to 1.3.5 in /tests
...
Bumps [github.com/jmoiron/sqlx](https://github.com/jmoiron/sqlx ) from 1.3.4 to 1.3.5.
- [Commits](https://github.com/jmoiron/sqlx/compare/v1.3.4...v1.3.5 )
---
updated-dependencies:
- dependency-name: github.com/jmoiron/sqlx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 10:53:39 +00:00
Julian Brost
627f541652
Merge pull request #703 from Icinga/dependabot/go_modules/tests/github.com/google/uuid-1.6.0
...
build(deps): bump github.com/google/uuid from 1.3.0 to 1.6.0 in /tests
2024-03-19 11:52:32 +01:00
dependabot[bot]
7fe4346f4c
build(deps): bump github.com/google/uuid from 1.3.0 to 1.6.0 in /tests
...
Bumps [github.com/google/uuid](https://github.com/google/uuid ) from 1.3.0 to 1.6.0.
- [Release notes](https://github.com/google/uuid/releases )
- [Changelog](https://github.com/google/uuid/blob/master/CHANGELOG.md )
- [Commits](https://github.com/google/uuid/compare/v1.3.0...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/google/uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 10:36:36 +00:00
Julian Brost
646c14a13b
Merge pull request #704 from Icinga/dependabot/go_modules/tests/github.com/stretchr/testify-1.9.0
...
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /tests
2024-03-19 11:36:14 +01:00
Julian Brost
236da983a9
Merge pull request #706 from Icinga/dependabot/go_modules/tests/github.com/go-sql-driver/mysql-1.8.0
...
build(deps): bump github.com/go-sql-driver/mysql from 1.7.1 to 1.8.0 in /tests
2024-03-19 11:35:45 +01:00
Eric Lippmann
16d43cb10a
MySQL/MariaDB: Use strict SQL mode
...
For MySQL (and MariaDB, etc.), in addition to `ANSI_QUOTES` SQL mode,
we now also set `TRADITIONAL`, which enables strict mode.
2024-03-19 09:53:20 +01:00
Eric Lippmann
6876f57c54
Merge pull request #709 from Icinga/integration-tests-hard-coded-mysql
...
Integration tests: don't hard-code MySQL in some tests
2024-03-19 09:53:06 +01:00
Julian Brost
c1be108d6c
Integration tests: don't hard-code MySQL in some tests
...
Some test cases always used a MySQL database as they didn't use the proper
function which would respect the ICINGADB_TESTS_DATABASE_TYPE=pgsql environment
variable. This commit fixes this and updates a similarly left-over error
message as well.
2024-03-18 16:29:14 +01:00
Eric Lippmann
9b213d528b
schmema/mysql/1.1.2: Fix timestamp is not UNIX time
...
We previously incorrectly used `CURRENT_TIMESTAMP()` instead of
`UNIX_TIMESTAMP()` so the timestamps need to be corrected.
2024-03-18 11:18:45 +01:00
dependabot[bot]
9f55be6c3b
build(deps): bump github.com/go-sql-driver/mysql in /tests
...
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql ) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases )
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.7.1...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 09:51:42 +00:00
dependabot[bot]
a4467f4714
build(deps): bump github.com/stretchr/testify in /tests
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.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>
2024-03-18 09:51:36 +00:00
Julian Brost
6c7e94e324
Merge pull request #695 from Icinga/dependabot-config
...
Update dependabot config
2024-03-18 10:50:55 +01:00
Julian Brost
f44c47e473
Merge pull request #696 from Icinga/icinga-testing-503
...
tests/go.mod: bump github.com/icinga/icinga-testing "version"
2024-03-18 10:33:04 +01:00
Eric Lippmann
dd75a5edbc
schema/mysql: Use UNIX_TIMESTAMP() instead of CURRENT_TIMESTMAP()
...
`CURRENT_TIMESTAMP()` an alias for `NOW()` returns the current date and
time in the format `YYYY-MM-DD hh:mm:ss` using the session time zone.
Since we are using numeric context, the value is stored in the format
`YYYYMMDDhhmmss`. But actually we want to set a (millisecond) UNIX
timestamp here, so we need to use `UNIX_TIMESTAMP()` instead.
2024-03-18 10:22:35 +01:00
Alexander A. Klimov
5606ee1785
tests/go.mod: bump github.com/icinga/icinga-testing "version"
2024-03-14 12:26:54 +01:00
Julian Brost
5928326f4e
dependabot: enable go mod updates for /tests
...
The tests have their own tests/go.mod file for which we should receive
dependency update PRs as well.
2024-03-14 12:13:34 +01:00
Julian Brost
877eb6602a
dependabot: run daily
...
Running only weekly just adds latency until PRs are created with no apparent
benefit. Multiple releases within a week for the same module happen rarely, so
it doesn't reduce the number of PRs.
2024-03-14 12:10:35 +01:00
Julian Brost
5988288261
dependabot: remove reviewers
...
For me personally, I receive notifications for the creation of the PRs anyways,
so the extra review request provides no benefit to me. I also asked the others
and they don't see a need either. Therefore, there's really no reason to
maintain this list here.
2024-03-14 12:08:08 +01:00
Julian Brost
41ff8deb26
Merge pull request #694 from Icinga/fix-link-to-icinga-db-web
...
docs: Fix link to `Icinga DB Web`
2024-03-14 12:04:32 +01:00
dependabot[bot]
3a04caf156
build(deps): bump github.com/goccy/go-yaml from 1.11.2 to 1.11.3
...
Bumps [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml ) from 1.11.2 to 1.11.3.
- [Release notes](https://github.com/goccy/go-yaml/releases )
- [Changelog](https://github.com/goccy/go-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/goccy/go-yaml/compare/v1.11.2...v1.11.3 )
---
updated-dependencies:
- dependency-name: github.com/goccy/go-yaml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-14 09:32:14 +00:00
Julian Brost
88620d2b62
Merge pull request #662 from Icinga/dependabot/go_modules/tests/github.com/docker/docker-24.0.7incompatible
...
build(deps): bump github.com/docker/docker from 24.0.5-0.20230721180626-a61e2b4c9c5f+incompatible to 24.0.7+incompatible in /tests
2024-03-14 10:30:43 +01:00
Julian Brost
17090446c3
Merge pull request #658 from Icinga/dependabot/go_modules/tests/golang.org/x/net-0.17.0
...
build(deps): bump golang.org/x/net from 0.7.0 to 0.17.0 in /tests
2024-03-14 10:29:33 +01:00
Julian Brost
8875ce1633
Merge pull request #680 from Icinga/dependabot/go_modules/go.uber.org/zap-1.27.0
...
build(deps): bump go.uber.org/zap from 1.26.0 to 1.27.0
2024-03-14 10:11:11 +01:00
Julian Brost
7f014a7f13
Merge pull request #678 from Icinga/dependabot/go_modules/github.com/mattn/go-sqlite3-1.14.22
...
build(deps): bump github.com/mattn/go-sqlite3 from 1.14.18 to 1.14.22
2024-03-14 10:09:30 +01:00
Julian Brost
b4ca6127e0
Merge pull request #673 from Icinga/dependabot/go_modules/github.com/google/uuid-1.6.0
...
build(deps): bump github.com/google/uuid from 1.4.0 to 1.6.0
2024-03-14 10:06:41 +01:00
Eric Lippmann
2586c62251
Retry broken pipe errors (EPIPE)
2024-03-14 09:51:34 +01:00
dependabot[bot]
23f7854ee1
build(deps): bump go.uber.org/zap from 1.26.0 to 1.27.0
...
Bumps [go.uber.org/zap](https://github.com/uber-go/zap ) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/uber-go/zap/releases )
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/zap/compare/v1.26.0...v1.27.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/zap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 12:30:16 +00:00
Julian Brost
1d505b3363
Merge pull request #670 from Icinga/dependabot/go_modules/golang.org/x/sync-0.6.0
...
build(deps): bump golang.org/x/sync from 0.5.0 to 0.6.0
2024-03-13 13:29:31 +01:00
Julian Brost
de249042a7
Merge pull request #682 from Icinga/dependabot/go_modules/github.com/stretchr/testify-1.9.0
...
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0
2024-03-12 17:01:15 +01:00
Julian Brost
25c6e1caff
Merge pull request #690 from Icinga/startup-show-version-i689
...
cmd/icingadb: Log Icinga DB version during startup
2024-03-12 16:58:04 +01:00