-
Notifications
You must be signed in to change notification settings - Fork 17
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
Improve Performance of Daily Docket Page #14594
Conversation
Generated by 🚫 Danger |
Code Climate has analyzed commit 6ad899e and detected 0 issues on this pull request. View more on Code Climate. |
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.
@@ -8,14 +8,6 @@ export const dailyDocketReducer = function(state = {}, action = {}) { | |||
hearingDay: { $set: action.payload.hearingDay }, | |||
hearings: { $set: action.payload.hearings } | |||
}); | |||
case ACTIONS.RECEIVE_HEARING: |
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.
nice! one less reducer
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!!! left a comment about the power of attorney detail
I have not noticed this, but that is a good catch! I can see if I can tweak the styling it in this PR too |
…department-of-veterans-affairs/caseflow into ftseng-performance-daily-docket
…department-of-veterans-affairs/caseflow into ftseng-performance-daily-docket
Resolves #14432
Description
Performance Improvements:
LegacyHearing#quick_to_hash
to actually call the quick hasherDailyDocketContainer
from loading hearings twice. Hearings are returned with the hearing day, but also the full details are async loaded. This removes fetching each individual hearing async.I mainly tried to focus on trying to reduce unnecessary calls to BGS. New Relic was showing that the bulk of processing time was spent waiting for BGS (top 2 categories):
I removed calls to fetch associated data that we didn't need on the daily docket page, especially data that could trigger a call to BGS like email address data. One thing I couldn't do was remove the BGS call to get representative details, but we did have components that could load it async, which I ended up using to make it appear the page was loading a bit faster.
Benchmarks
Before
After
Results
Using real time:
Acceptance Criteria
Code Documentation Updates
Storybook Story
For Frontend (Presentationa) Components
MyComponent.stories.js
alongsideMyComponent.jsx
)