OpenSearch/x-pack/qa
Zachary Tong 6ae6f57d39
[7.x Backport] Force selection of calendar or fixed intervals (#41906)
The date_histogram accepts an interval which can be either a calendar
interval (DST-aware, leap seconds, arbitrary length of months, etc) or
fixed interval (strict multiples of SI units). Unfortunately this is inferred
by first trying to parse as a calendar interval, then falling back to fixed
if that fails.

This leads to confusing arrangement where `1d` == calendar, but
`2d` == fixed.  And if you want a day of fixed time, you have to
specify `24h` (e.g. the next smallest unit).  This arrangement is very
error-prone for users.

This PR adds `calendar_interval` and `fixed_interval` parameters to any
code that uses intervals (date_histogram, rollup, composite, datafeed, etc).
Calendar only accepts calendar intervals, fixed accepts any combination of
units (meaning `1d` can be used to specify `24h` in fixed time), and both
are mutually exclusive.

The old interval behavior is deprecated and will throw a deprecation warning.
It is also mutually exclusive with the two new parameters. In the future the
old dual-purpose interval will be removed.

The change applies to both REST and java clients.
2019-05-20 12:07:29 -04:00
..
core-rest-tests-with-security Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
evil-tests [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
full-cluster-restart [7.x Backport] Force selection of calendar or fixed intervals (#41906) 2019-05-20 12:07:29 -04:00
kerberos-tests disable kerberos test until kerberos fixture is working again 2019-03-29 13:39:15 -07:00
multi-cluster-search-security Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
multi-node [7.x Backport] Force selection of calendar or fixed intervals (#41906) 2019-05-20 12:07:29 -04:00
oidc-op-tests Remove op.name configuration setting (#41445) 2019-05-07 19:01:55 +03:00
openldap-tests Use ephemeral ports for idp-fixture (#40333) 2019-03-26 08:44:53 -06:00
reindex-tests-with-security Update ciphers for TLSv1.3 and JDK11 if available (#42082) 2019-05-20 09:45:36 -04:00
rolling-upgrade [7.x Backport] Force selection of calendar or fixed intervals (#41906) 2019-05-20 12:07:29 -04:00
rolling-upgrade-basic Provide names for all artifact repositories (#41857) 2019-05-07 06:35:28 -04:00
rolling-upgrade-multi-cluster Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
saml-idp-tests Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
security-client-tests Merge branch 'master' into index-lifecycle 2018-08-23 11:52:59 -06:00
security-example-spi-extension Allow custom authorization with an authorization engine (#38358) 2019-02-05 13:39:29 -07:00
security-migrate-tests Testclsuters: convert plugins qa projects (#41496) 2019-04-26 08:57:52 -07:00
security-setup-password-tests Testclusters: support for security and convert example plugins (#41864) 2019-05-08 14:04:00 +03:00
security-tools-tests Avoid sharing source directories as it breaks intellij (#40877) 2019-04-08 17:26:46 +03:00
smoke-test-monitoring-with-watcher Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
smoke-test-plugins Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
smoke-test-plugins-ssl Add build utility to check cluster health over ssl (#40713) 2019-04-04 21:44:03 +11:00
smoke-test-security-with-mustache Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
smoke-test-watcher Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
smoke-test-watcher-with-security Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
src/main/java/org/elasticsearch/xpack/test Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00
third-party Security Tokens moved to a new separate index (#40742) 2019-05-01 14:53:56 +03:00
transport-client-tests Testing conventions: add support for checking base classes (#36650) 2019-01-08 13:39:03 +02:00
vagrant Remove string usages of old transport settings (#41207) 2019-04-15 16:54:24 -06:00
build.gradle Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00