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

AP-5315: Fix SCA proceeding search bug #7215

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Conversation

colinbruce
Copy link
Contributor

What

Link to story

When LFA returns a code that is not present on the page, i.e. an SCA related proceeding on an initial search, previously it showed the failure message and returned from the loop.

This updates the proceedings javascript so that it counts successfully displayed proceedings, using a new, shown, variable. After the loop is complete it then sets the ariaText and shows/hides the no-proceeding-items element accordingly.

Checklist

Before you ask people to review this PR:

  • Tests and rubocop should be passing: bundle exec rake
  • Github should not be reporting conflicts; you should have recently run git rebase main.
  • The standards in the Git Workflow document on Confluence should be followed
  • There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
  • The PR description should say what you changed and why, with a link to the JIRA story.
  • You should have looked at the diff against main and ensured that nothing unexpected is included in your changes.
  • You should have checked that the commit messages say why the change was made.

@colinbruce colinbruce marked this pull request as ready for review September 23, 2024 12:29
@colinbruce colinbruce requested a review from a team as a code owner September 23, 2024 12:29
@colinbruce colinbruce added the ready for review Please review label Sep 23, 2024
app/javascript/src/modules/proceedings.js Outdated Show resolved Hide resolved
When LFA returns a code that is not present on the page, i.e.
an SCA related proceeding on an initial search, previously it
showed the failure message and returned from the loop.

This updates the proceedings javascript so that it counts
successfully displayed proceedings, using a new, `shown`, variable.
After the loop is complete it then sets the ariaText and
shows/hides the no-proceeding-items element accordingly.
Copy link

sonarcloud bot commented Sep 24, 2024

@colinbruce colinbruce merged commit 4415ca7 into main Sep 24, 2024
14 checks passed
@colinbruce colinbruce deleted the ap-5315/sca-not-found-bug branch September 24, 2024 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Please review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants