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

No File.refresh() during File.append_block #585

Merged
merged 7 commits into from Oct 13, 2023
Merged

Conversation

dkolas
Copy link
Contributor

@dkolas dkolas commented Oct 13, 2023

The current code, upon appending a Block to a File, immediately calls File.refresh() to update the state of the File object. This PR adds the newly created Block directly to the File without making a second API call.

The risk / downside to this is that any blocks that were created on the File in between are now not loaded as part of this call.

douglas-reid
douglas-reid previously approved these changes Oct 13, 2023
Copy link
Contributor

@douglas-reid douglas-reid left a comment

Choose a reason for hiding this comment

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

🤏 🔨 ▶️ 🚤

@dkolas dkolas merged commit beee58d into main Oct 13, 2023
2 of 4 checks passed
@dkolas dkolas deleted the block-append-no-file-refresh branch October 13, 2023 20:11
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.

None yet

2 participants