-
Notifications
You must be signed in to change notification settings - Fork 11
Fix: issuesList counting #880
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
Conversation
467cf8c
to
254d79f
Compare
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.
It seems that in the example there are some issues with version 0 that are being listed even though only the version 1 is present, the ones starting with "[logspec:generic_linux_boot]". I also noticed this problem in this other example
088bb58
to
d6e0f11
Compare
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.
Seems to have fixed the issues, only some comments
d6e0f11
to
53c00ce
Compare
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.
LGTM. This PR was started by me but was handed to @murilx, so he can approve it on my behalf
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.
Approving in @MarceloRobert's behalf
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.
LGTM
- Renames processed_issues to issue_dicts - Separates processed_tests from decide_test_in_filter - Update getIssueFilterLabel to check explicitly for undefined - Update key prop from IssuesList div to include issue version Closes #872
Included issue_version in all issue-related filters that didn't have them yet
When using the Django ORM, that does not support composite primary keys as used by the Issues model, it would produce the incorrect join between Issues and Incidents since it don't consider issue.version when performing the join. To solve this, the django ORM query was replaced by a raw query. That required some of the data to be treated in the pydantic level since it was being fetched as string instead of dict
53c00ce
to
612360c
Compare
Closes #872
How to test
You can verify that filtering by issues in this localhost page is working properly, while staging page is showing the problems cited in the issue (issues list not showing all issues, filtering by the unlisted issues through the modal causing errors, etc.)
Known issues
While testing this I found out a seemingly unrelated problem with this task, where filtering by an issue will always return the "jobs" (boots/builds/tests) with the latest version instead of the selected version of the issue. This is in more detail in this issue:
UPDATE: It seems that this issue was caused by how the Django ORM was performing the JOIN in the issues table instead of by the filtering system. This was solved in this PR and I'll close this issue as well when this PR is merged
Visual Reference
Before

After
