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

Make directory operations methods on Directory #11945

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

JosiahWI
Copy link
Contributor

@JosiahWI JosiahWI commented Jan 8, 2025

These operations are working with directory data. Right now, they operate on data of type Stripe or StripeSM, but that was because those data structures contained the directory data they needed until recently. Most of the other data there is irrelevant.

This PR moves those operations (see commits for the list) into the Directory structure to reduce the dependence on the irrelevant parts of Stripe and StripeSM.

The StripeSMs are needed in some cases for debugging, metrics, and an intriguing invocation of Stripe::dir_valid from dir_probe; the Directory structure will need to be adjusted to have access to a few things for those purposes, but the details of that are still a work in progress.

@JosiahWI JosiahWI self-assigned this Jan 8, 2025
@JosiahWI JosiahWI added this to the 10.1.0 milestone Jan 8, 2025
@JosiahWI JosiahWI force-pushed the refactor/extract-directory branch from 86dcb27 to dee18ce Compare January 8, 2025 20:31
Some static functions can now take `Directory` parameters instead of `Stripe`.
@JosiahWI JosiahWI force-pushed the refactor/extract-directory branch from dee18ce to 3695b7a Compare January 8, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant