application-services icon indicating copy to clipboard operation
application-services copied to clipboard

Fail fast in string substitution when field_name is not in context

Open jhugman opened this issue 3 years ago • 2 comments

In the context of string substituion in GleanPlumb string helper, where a template variable is used in the template, but isn't in the context.

  • we should just not display the messages that error! This would guarantee that the user did not launch a malformed action. However:
    • this would mean messages just won't show up, potentially causing error reports against Nimbus/GleanPlumb. This is especially true when the system is new.
    • it increases the amount of work that needs to be done before the message is displayed, when time is more critical.
    • the consequences of a malformed action is low.
    • this would be difficult to detect and debug when QAing a message,
    • if an action actually needed braces, this would prevent it working

But: we could declare this message malformed, we can see it in the field.

This is a followup improvement after we've gained trust in the system as a whole.

Originally posted by @jhugman in https://github.com/mozilla/application-services/pull/4831#discussion_r804633880

┆Issue is synchronized with this Jira Task ┆epic: FML follow-up work

jhugman avatar Feb 11 '22 13:02 jhugman

➤ Tarik Eshaq commented:

moving it to the Nimbus board for better tracking

data-sync-user avatar Feb 14 '22 20:02 data-sync-user

➤ James Hugman commented:

{quote}This is a followup improvement after we've gained trust in the system as a whole.{quote}

This isn’t ready for engineering yet.

Moving this out of this sprint.

data-sync-user avatar Jul 24 '22 02:07 data-sync-user

Closing in favour of the linked Jira issue.

jhugman avatar Oct 04 '23 16:10 jhugman