Skip to content

Commit

Permalink
Remove deprecated date format
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Nov 17, 2024
1 parent 0ed8230 commit ce009de
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ describe('alerts', () => {
counts: {
date_range: {
field: 'cases-comments.attributes.created_at',
format: 'dd/MM/YYYY',
ranges: [
{
from: 'now-1d',
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugins/cases/server/telemetry/queries/cases.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ 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 @@ -501,7 +500,6 @@ 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 @@ -547,7 +545,6 @@ 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 @@ -605,7 +602,6 @@ 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,7 +62,6 @@ 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,7 +62,6 @@ 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: 0 additions & 3 deletions x-pack/plugins/cases/server/telemetry/queries/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,6 @@ 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 @@ -1132,7 +1131,6 @@ describe('utils', () => {
counts: {
date_range: {
field: 'test.attributes.created_at',
format: 'dd/MM/YYYY',
ranges: [
{
from: 'now-1d',
Expand Down Expand Up @@ -1261,7 +1259,6 @@ describe('utils', () => {
counts: {
date_range: {
field: 'cases-comments.attributes.created_at',
format: 'dd/MM/YYYY',
ranges: [
{
from: 'now-1d',
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/cases/server/telemetry/queries/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ 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 @@ -52,7 +51,6 @@ 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
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default ({ getService }: FtrProviderContext): void => {
});
});

it('should return the corect total number of alerts attached to cases', async () => {
it('should return the correct total number of alerts attached to cases', async () => {
const firstCase = await createCase(supertest, getPostCaseRequest());
const secondCase = await createCase(supertest, getPostCaseRequest());

Expand Down

0 comments on commit ce009de

Please sign in to comment.