Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ResponseOps][Cases] Remove deprecated date format from telemetry #200331

Merged

Conversation

cnasikas
Copy link
Member

@cnasikas cnasikas commented Nov 17, 2024

Summary

The Cases telemetry uses a deprecated date format that will not be supported in 9.0. This PR changes the format of the date set in the format field as suggested here https://www.elastic.co/blog/locale-changes-elasticsearch-8-16-jdk-23. Specifically, it changes Y to y. From the docs:

In particular, if you are using the Y specifier as part of a calendar date format, you are probably using it erroneously; Joda time uses Y to represent year-of-era, but the JDK uses Y to represent week-years. You need to modify your format to use y instead, or change to a built-in format.

Fixes: https://github.com/elastic/kibana-team/issues/1188

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@cnasikas cnasikas added Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Feature:Cases Cases feature backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.17.0 v8.18.0 labels Nov 17, 2024
@cnasikas cnasikas self-assigned this Nov 17, 2024
@cnasikas cnasikas requested a review from a team as a code owner November 17, 2024 13:48
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@cnasikas cnasikas added the release_note:skip Skip the PR/issue when compiling release notes label Nov 17, 2024
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @cnasikas

@cnasikas cnasikas merged commit 7ace262 into elastic:main Nov 18, 2024
25 checks passed
@cnasikas cnasikas deleted the fix_cases_telemetry_date_deprecated_format branch November 18, 2024 22:30
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.x

https://github.com/elastic/kibana/actions/runs/11902296692

@cnasikas cnasikas removed the v8.18.0 label Nov 18, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 18, 2024
…astic#200331)

## Summary

The Cases telemetry uses a deprecated date format that will not be
supported in 9.0. This PR changes the format of the date set in the
`format` field as suggested here
https://www.elastic.co/blog/locale-changes-elasticsearch-8-16-jdk-23.
Specifically, it changes `Y` to `y`. From the docs:

> In particular, if you are using the Y specifier as part of a calendar
date format, you are probably using it erroneously; Joda time uses Y to
represent year-of-era, but the JDK uses Y to represent week-years. You
need to modify your format to use y instead, or change to a built-in
format.

Fixes: elastic/kibana-team#1188

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 7ace262)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.18 The branch "8.18" does not exist
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 200331

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 19, 2024
…ry (#200331) (#200658)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ResponseOps][Cases] Remove deprecated date format from telemetry
(#200331)](#200331)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Christos
Nasikas","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-18T22:30:16Z","message":"[ResponseOps][Cases]
Remove deprecated date format from telemetry (#200331)\n\n##
Summary\r\n\r\nThe Cases telemetry uses a deprecated date format that
will not be\r\nsupported in 9.0. This PR changes the format of the date
set in the\r\n`format` field as suggested
here\r\nhttps://www.elastic.co/blog/locale-changes-elasticsearch-8-16-jdk-23.\r\nSpecifically,
it changes `Y` to `y`. From the docs:\r\n\r\n> In particular, if you are
using the Y specifier as part of a calendar\r\ndate format, you are
probably using it erroneously; Joda time uses Y to\r\nrepresent
year-of-era, but the JDK uses Y to represent week-years. You\r\nneed to
modify your format to use y instead, or change to a
built-in\r\nformat.\r\n\r\nFixes:
https://github.com/elastic/kibana-team/issues/1188\r\n\r\n###
Checklist\r\n\r\nCheck the PR satisfies following conditions.
\r\n\r\nReviewers should verify this PR satisfies this list as
well.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"7ace26213d6e7e493144c70a4f408cb9939d1fb0","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","Feature:Cases","backport:prev-minor","v8.17.0","v8.18.0"],"title":"[ResponseOps][Cases]
Remove deprecated date format from
telemetry","number":200331,"url":"https://github.com/elastic/kibana/pull/200331","mergeCommit":{"message":"[ResponseOps][Cases]
Remove deprecated date format from telemetry (#200331)\n\n##
Summary\r\n\r\nThe Cases telemetry uses a deprecated date format that
will not be\r\nsupported in 9.0. This PR changes the format of the date
set in the\r\n`format` field as suggested
here\r\nhttps://www.elastic.co/blog/locale-changes-elasticsearch-8-16-jdk-23.\r\nSpecifically,
it changes `Y` to `y`. From the docs:\r\n\r\n> In particular, if you are
using the Y specifier as part of a calendar\r\ndate format, you are
probably using it erroneously; Joda time uses Y to\r\nrepresent
year-of-era, but the JDK uses Y to represent week-years. You\r\nneed to
modify your format to use y instead, or change to a
built-in\r\nformat.\r\n\r\nFixes:
https://github.com/elastic/kibana-team/issues/1188\r\n\r\n###
Checklist\r\n\r\nCheck the PR satisfies following conditions.
\r\n\r\nReviewers should verify this PR satisfies this list as
well.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"7ace26213d6e7e493144c70a4f408cb9939d1fb0"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200331","number":200331,"mergeCommit":{"message":"[ResponseOps][Cases]
Remove deprecated date format from telemetry (#200331)\n\n##
Summary\r\n\r\nThe Cases telemetry uses a deprecated date format that
will not be\r\nsupported in 9.0. This PR changes the format of the date
set in the\r\n`format` field as suggested
here\r\nhttps://www.elastic.co/blog/locale-changes-elasticsearch-8-16-jdk-23.\r\nSpecifically,
it changes `Y` to `y`. From the docs:\r\n\r\n> In particular, if you are
using the Y specifier as part of a calendar\r\ndate format, you are
probably using it erroneously; Joda time uses Y to\r\nrepresent
year-of-era, but the JDK uses Y to represent week-years. You\r\nneed to
modify your format to use y instead, or change to a
built-in\r\nformat.\r\n\r\nFixes:
https://github.com/elastic/kibana-team/issues/1188\r\n\r\n###
Checklist\r\n\r\nCheck the PR satisfies following conditions.
\r\n\r\nReviewers should verify this PR satisfies this list as
well.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"7ace26213d6e7e493144c70a4f408cb9939d1fb0"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Christos Nasikas <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
…astic#200331)

## Summary

The Cases telemetry uses a deprecated date format that will not be
supported in 9.0. This PR changes the format of the date set in the
`format` field as suggested here
https://www.elastic.co/blog/locale-changes-elasticsearch-8-16-jdk-23.
Specifically, it changes `Y` to `y`. From the docs:

> In particular, if you are using the Y specifier as part of a calendar
date format, you are probably using it erroneously; Joda time uses Y to
represent year-of-era, but the JDK uses Y to represent week-years. You
need to modify your format to use y instead, or change to a built-in
format.

Fixes: elastic/kibana-team#1188

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Feature:Cases Cases feature release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants