Skip to content
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

Fix is confirmed before bug #858

Merged
merged 3 commits into from
Mar 31, 2024
Merged

Conversation

zancas
Copy link
Member

@zancas zancas commented Mar 31, 2024

This PR is mostly a cherry-pick of a commit from the spend_kit branch (see commit message).

I will break up my rationale for this PR into two parts.

How I Fixed The Bug

The bug was caused by a tiny smidge of wetness, and copy pasta, coupled with the false belief that the doc tests were protecting us.
The fix is both correct, and DRYer because it uses composition of relevant functionality rather re-expression of the same thing.

(I also tightened boundary conditions and added assertions to the doc-tests.)

Why I Propose This Way of Organizing PRs

If this PR is accepted into dev it will have some nice properties:

(1) It will have made the length of the feature branch (as measured in diff from dev) smaller. I assume this is obviously good.
(2) It will have decreased the length of distance from the tip of the feature, to the tip of any other feature.
Here's the thought experiment:
Oscar is working on some other feature (some sync thing) at the same time. This PR lands (maybe Oscar reviews it).

Now what?

There's this chunk of code (on dev) that doesn't really do anything (on dev), but it's probably necessary for spend_kit (its "origin feature") and some_sync_thing is aware of it. This means that (a) some_sync_thing won't accidentally put something else there. Maybe some_sync_thing will actually use it. I dunno'.. but at the end of the day all the developing features need to work together. By sucking pieces of them into dev, when it is convenient to do so, we ensure that features being developed against dev are aware of each other earlier.

Copy link
Contributor

@fluidvanadium fluidvanadium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@zancas zancas merged commit 53594f8 into zingolabs:dev Mar 31, 2024
16 checks passed
@zancas zancas deleted the fix_is_confirmed_before_bug branch March 31, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants