-
Notifications
You must be signed in to change notification settings - Fork 5
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
WX-915 Restore Job Lists Page #780
Conversation
…ertain linting rules for now
…th prototype silent refresh flow
…of component ngInit, updated tsconfig settings for test runners, still working on silent refresh
…oth front and back-ends
…ect to point to jobs page
…eing supplied as decode arg parameters
Oh man, I'm embarrassed if this single issue was the thing preventing it from working. 😂 We commented some tests out as part of disabling this page, so we should un-comment them and ensure they pass. We'll also want to:
|
Got it, but I don't think I need to do a full reversion of BT-758. The |
Can you rebase this on |
Looking good! I tested the filtering and pagination and they seem to be working correctly. Few more small UI things I noticed:
Couple things that I don't know are regressions but want to point out just in case:
|
Nice, this worked. It does work like the individual field editing, I need to reload the page in order to see the update. |
… for table count box
I've updated the table size css and provided a front-end solution for the label update bug. For bug context, the app always re-queries jobs for the table after a label updates exactly like it would on initialization. So for default table values, it'll query about 4 pages worth of jobs. The interesting thing is that the queried jobs don't have the updated label values in the response even though the request occurs after the label update succeeds. I haven't figured out why, but in terms of the front-end I can assume that if the label updates went through then I can manually apply the update to the queried jobs. As for the weird box-shadow on the filter tags, I'm still working on it (I didn't see it as high of a priority as the above mentioned issues) but I don't see it as a blocker if it isn't resolved. |
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.
I agree that the box-shadow on the filter tags isn't a blocker. 👍
Thank you so much for all your work on this, feels so good to get this page working again!
Addresses WX-915
PR restores the job lists page by restoring the Job Lists Component to the UI routing as well as providing missing variable arguments for sub-components. PR also updates backend encoding/decoding logic to account for changes to how
str
andbytes
are treated in Python 3.In Python 2,
str
was used for both text andbytes
, makingstr
data ambiguous. So for Python 2, assigning either text orbytes
to astr
variable for a JSON response would resolve peacefully. In Python 3bytes
are distinct fromstr
, so passingbytes
as part of a JSON response will now throw an error.In terms of updates,
byte
tokens generated for front-end pagination now need to be decoded into strings before being sent off as part of a JSON response. For pagination queries, incomingstr
tokens need to be encoded asbytes
before they can be processed in later steps.To test it out, you'll should follow the steps outlined in #779 for a mock Terra setup since there's enough dev data to test the pagination flow, but feel free to use a local Cromwell instance if you have enough data saved locally.
NOTE: You'll also need to run
docker compose build
due to updates tojm_util
methods.