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

Bug/uar 1282 confirmation dialog logs name in logs #1194

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

AndreKramer7654
Copy link
Contributor

@AndreKramer7654 AndreKramer7654 commented Nov 9, 2023

JIRA link

https://companieshouse.atlassian.net/browse/UAR-1282

Change description

Don't include the bo or mo name in page title as that is logged by analytics.
Don't include the bo or mo name in Error raised in case that is logged.

Work checklist

  • Tests added where applicable
  • UI changes meet accessibility criteria

Merge instructions

We are committed to keeping commit history clean, consistent and linear. To achieve this, this commit should be structured as follows:

<type>[optional scope]: <description>

and contain the following structural elements:

  • fix: a commit that patches a bug in your codebase (this correlates with PATCH in semantic versioning),
  • feat: a commit that introduces a new feature to the codebase (this correlates with MINOR in semantic versioning),
  • BREAKING CHANGE: a commit that has a footer BREAKING CHANGE: introduces a breaking API change (correlating with MAJOR in semantic versioning). A BREAKING CHANGE can be part of commits of any type,
  • types other than fix: and feat: are allowed, for example build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others,
  • footers other than BREAKING CHANGE: <description> may be provided.

@AndreKramer7654 AndreKramer7654 changed the title Bug/uar 1283 logs name Bug/uar 1283 confirmation dialog logs name Nov 9, 2023
@AndreKramer7654 AndreKramer7654 changed the title Bug/uar 1283 confirmation dialog logs name Bug/uar 1283 confirmation dialog logs name in logs Nov 13, 2023
if (value === undefined) {
throw new Error("Are you sure you want to remove " + req.body['boMoName'] + "?");
throw new Error("Are you sure you want to remove confirm has no value");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this error message doesn't really make sense to me .. has it been run past UI/Product teams?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we run service errors past product. How about "Are you sure you want to remove confirmation has no beneficial owner or managing officer"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validation middleware uses that message for the GOVUK error summary it displays to the user though, for example I just tried here:

Screenshot 2023-11-13 at 14 13 36

So it would have to be a product decision to change that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to ticket.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

asked Mathew to review strings. But ticket unlikely to be pulled in now :-(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And pushed change to "Are you sure you want to remove beneficial owner or managing officer"

Copy link
Contributor

@corybudd-ch corybudd-ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still not convinced the UI changes have been agreed/sanctioned

@stephanie-ch
Copy link
Contributor

The ticket number linked doesn't appear to be the correct ticket? Let's make sure that the UI change was agreed with Gurur as I had chats with Jeremy about this ticket and heard nothing concrete back.

@AndreKramer7654 AndreKramer7654 changed the title Bug/uar 1283 confirmation dialog logs name in logs Bug/uar 1282 confirmation dialog logs name in logs Nov 13, 2023
@chsonarqubeprchecks
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants