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

Refactor sorting of report code column on report list page #123

Closed
mjtravers opened this issue May 18, 2022 · 6 comments
Closed

Refactor sorting of report code column on report list page #123

mjtravers opened this issue May 18, 2022 · 6 comments
Assignees

Comments

@mjtravers
Copy link
Contributor

mjtravers commented May 18, 2022

Business Reason

As a user viewing the Report list page, I want to be able to sort on report code labels.

Acceptance Criteria

When sorting the reports list table by report code, the rows sort properly

Tech Notes

Based on decisions from the 5/23 weekly dev meeting, the report code labels are to be stored in a Django model in the Django f3x_summaries app. The api will use the model table in its query sort for the reports table and also provide an endpoint for the front end to pull the labels via a REST endpoint.

Files of interest:

QA Notes

null

DEV Notes

null

Design

null

See full ticket and images here: FECFILE-324

@Elaine-Krauss-TCG
Copy link
Contributor

On the back-end, every report has a Report Code that is a foreign key towards a table containing report codes and their corresponding labels. The sorting of reports factors these changes in.

On the front-end, the Report List component no longer relies on a locally defined list of report code labels but rather pulls labels from an API endpoint.

QA: The front-end includes new unit tests to cover a newly introduced pipe. The tests are passing cleanly

@WiseQA
Copy link

WiseQA commented Jun 10, 2022

Put back into Code Review - the Unit Test needs to show Pass / Fail, like example was given. @toddlees assigned back

@Elaine-Krauss-TCG
Copy link
Contributor

The unit tests do show that they passed? Right at the top on the page that I linked to before moving it to code review. Looking over the example given by Todd again, I still don't see a meaningful difference between what I did and what was done there by the person who handled that ticket.

image.png

@WiseQA
Copy link

WiseQA commented Jun 13, 2022 via email

@Elaine-Krauss-TCG
Copy link
Contributor

Alternative link to the CircleCI Results

@WiseQA
Copy link

WiseQA commented Jun 13, 2022

Verified unit test passed successfully, visual inspection.
QA review completed. Moved to Stage Ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants