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

Remove unnecessary IntermediateSnapshotNode and EmptySnapshotConfig #10332

Merged
merged 4 commits into from
Jun 19, 2024

Conversation

gshank
Copy link
Contributor

@gshank gshank commented Jun 18, 2024

resolves #10326

Problem

We no longer need the IntermediateSnapshotNode and EmptySnapshotConfig classes, or the IntermediateNode typevar.

Solution

Remove them.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
  • This PR includes type annotations for new and modified functions

@gshank gshank requested a review from a team as a code owner June 18, 2024 18:08
@cla-bot cla-bot bot added the cla:yes label Jun 18, 2024
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.78%. Comparing base (71a8a41) to head (7853431).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10332      +/-   ##
==========================================
- Coverage   88.83%   88.78%   -0.06%     
==========================================
  Files         180      180              
  Lines       22490    22479      -11     
==========================================
- Hits        19980    19958      -22     
- Misses       2510     2521      +11     
Flag Coverage Δ
integration 86.08% <100.00%> (-0.11%) ⬇️
unit 62.17% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gshank gshank added the tidy_first "Tidy First" incremental cleanup changes label Jun 18, 2024

assert_symmetric(node, node_dict, SnapshotNode)
assert SnapshotNode.from_dict(inter.to_dict(omit_none=True)) == node
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this no longer necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was converting from an IntermediateSnapshotNode to a SnapshotNode. The original point of the IntermediateSnapshotNode was that it wouldn't require the validations that we do on a SnapshotNode (but I think that actually broke quite a while back). I recently did the ticket to move validation of SnapshotNodes to a post-parsing step. So we definitely don't need the IntermediateSnapshotNode anymore.

@gshank gshank requested a review from MichelleArk June 18, 2024 20:18
@gshank gshank merged commit d389ff1 into main Jun 19, 2024
68 checks passed
@gshank gshank deleted the remove_intermediate_snapshot branch June 19, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes tidy_first "Tidy First" incremental cleanup changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove IntermediateSnapshotNode class
2 participants