From 81d4f364b12c6fbf132e273b635f156c9e46048d Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Wed, 19 Jun 2024 09:02:53 -0400 Subject: [PATCH] [ui] Squashing Ember deprecations (#22424) * Now that message is a gettable on the task-event model, no longer needs to be attrs-set at serializer * xstate future-proofing default prop --- ui/app/machines/evaluations.js | 1 + ui/app/serializers/task-event.js | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/app/machines/evaluations.js b/ui/app/machines/evaluations.js index 4dced28c88f..eecaa85c844 100644 --- a/ui/app/machines/evaluations.js +++ b/ui/app/machines/evaluations.js @@ -8,6 +8,7 @@ import { assign, createMachine, send } from 'xstate'; // Docs on using statecharts: https://xstate.js.org/docs/packages/xstate-fsm/#api export default createMachine( { + predictableActionArguments: true, id: 'evaluations_ui', context: { evaluation: null }, type: 'parallel', diff --git a/ui/app/serializers/task-event.js b/ui/app/serializers/task-event.js index 948bece481e..77bf355769a 100644 --- a/ui/app/serializers/task-event.js +++ b/ui/app/serializers/task-event.js @@ -8,9 +8,5 @@ import classic from 'ember-classic-decorator'; @classic export default class TaskEventSerializer extends ApplicationSerializer { - attrs = { - message: 'DisplayMessage', - }; - separateNanos = ['Time']; }