-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix secure message return to inbox #961
Conversation
/deploy scorfs |
Deploying to dev cluster with following parameters:
|
/deploy wilkia |
Deploying to dev cluster with following parameters:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only part of the story, perhaps it's not explicit in the card, but the original story was to make sure the green message box, with a link to the message (closed, message sent) is present. Unfortunately this still doesn't pass that information for these inboxes
/deploy scorfs |
Deploying to dev cluster with following parameters:
|
/deploy wilkia |
Deploying to dev cluster with following parameters:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I deployed and tested this PR out, I made the following observation:
- Create a technical message on frontstage.
- On r-ops, locate the message and assign the thread to a particular survey.
- Re-assign the thread back to technical/misc.
- In the message thread view, click on the "return to messages" button at the bottom or the "Messages" hyperlink at the top.
You will be redirected to the inbox for the survey that the thread used to be assigned to, rather than the technical/misc inbox.
@anwilkie sorry I forgot to update the test steps. You no longer need to make changes in the DB. |
When I made the aforementioned observation, I didn't make any changes to the database, and I retested it now to ensure that. I'm not sure whether this bug is an issue with the PR itself or if it should be spun off into its own issue. As things are, I am able to perform the actions described in the "how to test" part of the description without issue; it's just that there is this strange behaviour that is being showcased by message threads that have switched categories. It might be worth discussing this with the rest of the team to get their thoughts on it. |
@anwilkie I see what you mean. I've updated the code to fix the issue after category reassignment. |
/deploy scorfs |
Deploying to dev cluster with following parameters:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor issues, I think we might have to accept that all the tests in this area need work, the mocks are terrible, but good work on the tidy up. The only other query is the pipfile.lock update, it shouldn't really be done here
…om/ONSdigital/response-operations-ui into fix-secure-message-return-to-inbox Merge remote into local
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works just a lot of the same comment with a question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected
What and why?
Return to the correct inbox was not working correctly for some technical and misc messages when there is recorded survey ID in the secure_message table. The code has been updated so that all technical and misc messages will return to the correct inbox.
How to test?
Jira
https://jira.ons.gov.uk/browse/RAS-1224