Repository navigation
fix(adp): leave out a day mykplan has not priced yet - #428
Merged
Merged
Conversation
mykplan answered a fund with all its units, a price of 0 and an ending balance of $0 for a day it had not priced, and the 401k chart fell to $0 and Fund allocation went empty. A balance with units and no price is now left out on the page, the sheet and the cached store, so the line keeps its last priced day; a fund sold out stays. Userscript 0.1.88
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
pricedinshared/adp/mykplan.ts: a fund balance with units but a price of 0 is a day mykplan has not priced yet, not a balanceparseWindow), the sheet (adpStoreFromRows) and the cached store (parseAdpStore); a fund sold out (no units, $0) staysWhy
mykplan's statement for the first days of December gave the fund a price of 0.000000 with every unit still held, a Market Value Change of minus the whole balance and an Ending Balance of $0.00. The ADP 401k chart fell to $0 and Fund allocation went empty. The viewer reads the sheet through the same filter, so the chart is right again without reinstalling the script; 0.1.88 stops writing such days
How it was checked
bun test(all pass, new test with a made-up December page, a sheet and a cached store holding the unpriced day), the type check of the changed files (no errors),parcel build,bun run userscript,git diff --check