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

BREAKING: Migrate away from parts and only export the files we intend consumers to use #65

Merged
merged 19 commits into from
Nov 20, 2023

Conversation

travissanderson-wf
Copy link
Contributor

@travissanderson-wf travissanderson-wf commented Nov 2, 2023

We've got a lot of excess public symbols that shouldn't be. We also prefer not to structure things using parts, and have a lot of code that doesn't match standard lints. This PR addresses all of those things, which will cause a need for a major release.

@aviary2-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

lib/r_tree.dart Outdated Show resolved Hide resolved
lib/src/r_tree/leaf_node.dart Outdated Show resolved Hide resolved
print('Running benchmarks...');
var collector = ScoreCollector();
final collector = ScoreCollector();
InsertBenchmark(collector, totalItems: 100).report();
InsertBenchmark(collector, totalItems: 1000).report();
InsertBenchmark(collector, totalItems: 10000).report();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As of now there's still a difference between doing add with one item vs many items, so we can probably keep the benchmarks around until we change that in a future PR.

@travissanderson-wf travissanderson-wf marked this pull request as ready for review November 14, 2023 20:05
@travissanderson-wf
Copy link
Contributor Author

Sorry for the large diff. I wanted to make sure we had return types on all the things and decided to just merge my lints branch in, but if it is too much of a PITA I can redo it with just the return types.

@travissanderson-wf travissanderson-wf changed the title Migrate away from parts and only export the files we intend consumers to use BREAKING: Migrate away from parts and only export the files we intend consumers to use Nov 14, 2023
}

return margin;
}

Node _boundingBoxForDistribution(Node<E> node, int startChild, int stopChild) {
final destNode = LeafNode(_branchFactor);
destNode._minimumBoundingRect = node.children[0].rect;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was actually a bug, it should have been using startChild

@kentiverson-wf
Copy link

QA +1

  • Consumed these changes in DPC and ran through CI, all functional tests passed
  • CI passing

@travissanderson-wf
Copy link
Contributor Author

@Workiva/release-management-p

Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

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

+1 from RM

@rmconsole2-wf rmconsole2-wf merged commit 7e370de into master Nov 20, 2023
2 checks passed
@rmconsole2-wf rmconsole2-wf deleted the control-public-exports branch November 20, 2023 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants