Skip to content

Commit

Permalink
Change deprecated years format
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Nov 18, 2024
1 parent ce009de commit 69b5dab
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ describe('alerts', () => {
counts: {
date_range: {
field: 'cases-comments.attributes.created_at',
format: 'dd/MM/yyyy',
ranges: [
{
from: 'now-1d',
Expand Down
4 changes: 4 additions & 0 deletions x-pack/plugins/cases/server/telemetry/queries/cases.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ describe('getCasesTelemetryData', () => {
"counts": Object {
"date_range": Object {
"field": "cases.attributes.created_at",
"format": "dd/MM/yyyy",
"ranges": Array [
Object {
"from": "now-1d",
Expand Down Expand Up @@ -500,6 +501,7 @@ describe('getCasesTelemetryData', () => {
"counts": Object {
"date_range": Object {
"field": "cases.attributes.created_at",
"format": "dd/MM/yyyy",
"ranges": Array [
Object {
"from": "now-1d",
Expand Down Expand Up @@ -545,6 +547,7 @@ describe('getCasesTelemetryData', () => {
"counts": Object {
"date_range": Object {
"field": "cases.attributes.created_at",
"format": "dd/MM/yyyy",
"ranges": Array [
Object {
"from": "now-1d",
Expand Down Expand Up @@ -602,6 +605,7 @@ describe('getCasesTelemetryData', () => {
"counts": Object {
"date_range": Object {
"field": "cases.attributes.created_at",
"format": "dd/MM/yyyy",
"ranges": Array [
Object {
"from": "now-1d",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ describe('comments', () => {
counts: {
date_range: {
field: 'cases-comments.attributes.created_at',
format: 'dd/MM/yyyy',
ranges: [
{
from: 'now-1d',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ describe('user_actions', () => {
counts: {
date_range: {
field: 'cases-user-actions.attributes.created_at',
format: 'dd/MM/yyyy',
ranges: [
{
from: 'now-1d',
Expand Down
3 changes: 3 additions & 0 deletions x-pack/plugins/cases/server/telemetry/queries/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ describe('utils', () => {
counts: {
date_range: {
field: 'test.attributes.created_at',
format: 'dd/MM/yyyy',
ranges: [
{ from: 'now-1d', to: 'now' },
{ from: 'now-1w', to: 'now' },
Expand Down Expand Up @@ -1131,6 +1132,7 @@ describe('utils', () => {
counts: {
date_range: {
field: 'test.attributes.created_at',
format: 'dd/MM/yyyy',
ranges: [
{
from: 'now-1d',
Expand Down Expand Up @@ -1259,6 +1261,7 @@ describe('utils', () => {
counts: {
date_range: {
field: 'cases-comments.attributes.created_at',
format: 'dd/MM/yyyy',
ranges: [
{
from: 'now-1d',
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/cases/server/telemetry/queries/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const getCountsAggregationQuery = (savedObjectType: string) => ({
counts: {
date_range: {
field: `${savedObjectType}.attributes.created_at`,
format: 'dd/MM/yyyy',
ranges: [
{ from: 'now-1d', to: 'now' },
{ from: 'now-1w', to: 'now' },
Expand All @@ -51,6 +52,7 @@ export const getAlertsCountsAggregationQuery = () => ({
counts: {
date_range: {
field: `${CASE_COMMENT_SAVED_OBJECT}.attributes.created_at`,
format: 'dd/MM/yyyy',
ranges: [
{ from: 'now-1d', to: 'now' },
{ from: 'now-1w', to: 'now' },
Expand Down

0 comments on commit 69b5dab

Please sign in to comment.