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

Fix show unregistered label in view licence page #1357

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Sep 25, 2024

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

It has been spotted that when a licence has a registered user, we sometimes display 'Unregistered licence' as the subheading above the title.

We've tracked it down to licences with a registered user, but no alias was added. We're not handling that scenario, so we're falling back on displaying 'Unregistered licence'.

The fix is to leave it blank.

Before fix

Screenshot 2024-09-25 at 16 00 07

After fix

Screenshot 2024-09-25 at 16 00 33

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

It has been spotted when a licence has a registered user, in some case we are still displaying 'Unregistered licence' as the sub-heading above the title.

We've tracked it down to licences that have a registered user, but where an alias for the licence has not been added. We're not handling that scenario so falling back to displaying 'Unregistered licence'.

The fix is just to leave it blank.
@Cruikshanks Cruikshanks added the bug Something isn't working label Sep 25, 2024
@Cruikshanks Cruikshanks self-assigned this Sep 25, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review September 25, 2024 15:10
Copy link
Contributor

@Jozzey Jozzey left a comment

Choose a reason for hiding this comment

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

@Cruikshanks Cruikshanks merged commit 6fd3dfb into main Sep 25, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the fix-unregistered-label-showing branch September 25, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants