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

Add licence workflow warning to view licence page #1204

Merged
merged 11 commits into from
Jul 25, 2024

Conversation

rvsiyad
Copy link
Contributor

@rvsiyad rvsiyad commented Jul 23, 2024

https://eaflood.atlassian.net/browse/WATER-4572

Currently, when a licence is added or changed, a record with the status of to_setup is added to the workflow. With WRLS taking over the management of return information, this workflow record will no longer be charge-specific. It is also important to know that any licence linked to a workflow record won’t be included in any bill runs.

This PR will add a warning text to the new view licence page to highlight to users that a change has been made to the licence and that it won’t be billed until reviewed. This will only be displayed to the user if they have a role that allows them to see the licence set up tab and there is an active workflow record linked to the licence.

https://eaflood.atlassian.net/browse/WATER-4572

Currently, when a licence is added or changed, a record with the status of to_setup is added to the workflow.
With WRLS taking over the management of return information, this workflow record will no longer be charge-specific.
It is also important to know that any licence linked to a workflow record won’t be included in any bill runs.

This PR will add a warning text to the new view licence page to highlight to users that a change has been made to
the licence and that it won’t be billed until reviewed. This will only be displayed to the user if they have a role that
allows them to see the licence set up tab and there is an active workflow record linked to the licence.
@rvsiyad rvsiyad added the enhancement New feature or request label Jul 23, 2024
@rvsiyad rvsiyad self-assigned this Jul 23, 2024
@rvsiyad rvsiyad marked this pull request as ready for review July 25, 2024 12:19
@rvsiyad rvsiyad merged commit e598c98 into main Jul 25, 2024
6 checks passed
@rvsiyad rvsiyad deleted the licence-workflow-warning-licence-page branch July 25, 2024 12:28
Cruikshanks added a commit that referenced this pull request Aug 30, 2024
https://eaflood.atlassian.net/browse/WATER-4652

In [Add licence workflow warning to view licence page](#1204) we added a new warning message to the view licence page to indicate that a change has been made to a licence and so it has been added to workflow.

But our users have spotted it's show for licences that _don't_ have anything in workflow! 😱

We've tracked the problem down to the fact workflow uses a mix of hard and soft deleted records. When we are checking if a licence is in there, we are not discounting soft deleted records.

This change fixes the query we use to resolve this.
Cruikshanks added a commit that referenced this pull request Aug 30, 2024
https://eaflood.atlassian.net/browse/WATER-4652

In [Add licence workflow warning to view licence page](#1204), we added a new warning message to the view licence page to indicate that a licence change has been made and that it has been added to the workflow.

But our users have spotted it's showing for licences that _don't_ have anything in workflow! 😱

We've tracked the problem down to the workflow's use of a mix of hard and soft deleted records. When we check if a licence is in there, we do not discount soft deleted records.

This change fixes the query we used to resolve this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants