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
Return full stops back to the insufficient permissions error description #4160
Comments
@eugene-manuilov did we remove these recently? |
@aaemnnosttv it was removed as part of the work for #2597 (see here: https://github.com/google/site-kit-wp/pull/3316/files#diff-8e4815a7647006d9aea19dc2447a736e048c3ec903b9babb2af7934d3a06d451). |
@asvinb full stops should be added back to each version of the message copy and then trimmed from the end of the combined string. This is important to add full stops to all messages because it needs to be properly localized. |
IB ✔️ |
Update the logic for `getInsufficientPermissionsErrorDescription` in order to add a more granular control when the full stops are included between sentences. Tests were added for `getInsufficientPermissionsErrorDescription` in order to prevent regressions in the future. Ticket #4160.
@mitogh could you please add QAB? |
Thanks, @eugene-manuilov however while I was trying to find a scenario to replicate this issue I found 2 existing bugs in production that prevent us from actually testing this behavior as it should be.
Let me know what the best next steps should be here instead. cc @wpdarren |
@eugene-manuilov any thoughts on how we can test this based on @mitogh comment above? |
@wpdarren try to edit the Analytics settings using a secondary user that doesn't have access to the selected Analytics account. |
QA Update: ✅Verified:
Thanks @eugene-manuilov I got confused if this could be tested or not. |
@eugene-manuilov @wpdarren The ACs here were defined a while ago and are actually not entirely correct. I don't remember exactly in which issue we had that conversation a few weeks back, but I remember for sure that we clarified that actually only single sentences should ever not end in a full stop. This is not a big deal, but it should also be really quick to fix - can we add the full stop also to the second sentence above? |
A PR has been created with the requested change: |
@mitogh The changes in the PR looks good, but it needs to be based on and target |
Thanks, @felixarntz as discussed in previous PR #4572 was closed due it was based on |
Thanks @mitogh, merged! Note for the future: Please keep in mind to also move and assign the issue accordingly in the project board, e.g. move from Execution to Code Review and unassign yourself if you're no longer working on it / waiting for someone else to review 👍 |
Approval (based on #4160 (comment)) ✅ |
Thanks for the flag 💯 @felixarntz |
Bug Description
Steps to reproduce
Screenshots
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
getInsufficientPermissionsErrorDescription
function should always have individual sentences separated from each other with a full stop.Implementation Brief
assets/js/util/insufficient-permissions-error-description.js
,.
at the end of everymessage
.userInfo
is empty and remove the last.
frommessage
.Test Coverage
getInsufficientPermissionsErrorDescription
.QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: