-
Notifications
You must be signed in to change notification settings - Fork 2
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
Chore: Remove list_items
schema
#413
Comments
Tackling this now. 🧑💻 ⏳ |
snapshot: https://github.com/dwyl/mvp/blob/f46ded4c31c812770a9cf2cb4199c04ef95b0285/lib/app/list_items.ex before deleting Corresponding tests: https://github.com/dwyl/mvp/blob/f46ded4c31c812770a9cf2cb4199c04ef95b0285/test/app/list_items_test.exs |
3 files deleted. code significantly simplified. all functionality preserved. zero regrets. 12 files changed, 112 insertions(+), 334 deletions(-) Muuuuuuuuch betterer! 👌 |
https://github.com/dwyl/mvp/actions/runs/6080146395/job/16493657525#step:1:40 Warning: Failed to download action 'https://api.github.com/repos/actions/checkout/tarball/f43a0e5ff2bd294095638e18286ca9a3d1956744'. Error: Response status code does not indicate success: 503 (Service Unavailable).
Warning: Back off 24.429 seconds before retry.
Error: Response status code does not indicate success: 503 (Service Unavailable). 🤦♂️ |
I've re-run the action and it seems to be working now - https://github.com/dwyl/mvp/actions/runs/6080146395/job/16499914191. It appears to have been a degradation problem with Github Actions, as per https://www.githubstatus.com/. I believe this can be closed now :D Looks awesome, amazing work 🥳 |
Thanks for taking a look @LuchoTurtle 👌 |
I captured the addition of
list_items
in: book/mvp/list_itemsBut the more I look at it, the more I feel this schema is superfluous.
Basically it's just being used as a place to store the
sequence
ofitem.cids
.It creates additional complexity without a tangible benefit other than a degree of normalisation.
But if we just put the
seq
field directly in thelist
and usepapertrail
to track changes,we can achieve effectively the same result in terms of both accountability/audibility and "undo" functionality.
Todo
list_items
schema. ✂️seq
field tolist
schema ➕Besides simplifying the schema so that it becomes easier to reason about and query,
I think we can speed up the
items_with_timers
query by inlining the sub-query.So I want to get this done ASAP.
The text was updated successfully, but these errors were encountered: