-
Notifications
You must be signed in to change notification settings - Fork 39
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
Support/Oppose sort on IE table not functioning #2494
Comments
To make the support/oppose column sortable, requires an API change on SE endpoint. There is no ticket to track the API changes. @lbeaufort Can you please create API ticket for this? |
@lbeaufort i have created a new API ticket to enable the sort on ScheE endpoint by support_oppose_indicator column. fecgov/openFEC#3518 The work on API is done. I will submit a PR and have you or someone in our team review it. |
@JonellaCulmer The API PR to enable support/oppose indicator on Independent Expenditures is merged to Can you test the sort by support/oppose on IE datatables in |
@pkfec The sort is working now on dev! But I noticed that regardless of which you're sorting by, there are "unknown"s that appear. Do we know how these are populating on the list? |
Sort on suppose/oppose indicator column is not working because this column values are inconsistent. The column value in the backend is not always S or O. @fecjjeng identified that there are other values like 0(ZERO), UNI, SUP and Nulls. Reached out to @jwchumley and waiting to hear from him on how to manipulate the data when the support/oppose indicator values either one of these : 0( ZERO), UNI, SUP and Nulls |
after talking to @jwchumley @PaulClark2 , we all agreed to replace the non S/O values with NULL. |
@JonellaCulmer the backend MV changes are merged into |
@JonellaCulmer did you get a chance to test this bug in |
@pkfec So that I understand, I should no longer see Unknown, but null? I'm only seeing Support or Oppose. |
@JonellaCulmer Nulls on the backend are mapped to Unknowns on the CMS. Sorting is based off S/O value and not by Unknown. The Unknowns are always sorted last and they always appear at the end of the results when you sort asc or desc order on the support/oppose column. Here is an example of IE committee with support/oppose and unknowns values. Try sorting the column and see if that makes sense. Hope this helps! |
@pkfec I understand! Thanks so much! Looks great to me! |
The PR work related to this work has been merged and the fix has been reviewed. So closing this issue. |
The sort filter for Support/Oppose column on IE datatable is not currently functioning.
Need to identify the cause and fix as necessary.
The text was updated successfully, but these errors were encountered: