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

Simplify restore generation code #35414

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

Simplify restore generation code #35414

wants to merge 4 commits into from

Conversation

esoergel
Copy link
Contributor

Product Description

Technical Summary

No user-facing changes, just a pure refactor. I started doing this as part of #35387, but pulled it out to stop from getting distracted. Essentially, there's a lot of OOP boilerplate around fixture generation that is in my opinion more confusing than helpful. Much of it is just wrappers around single-line function calls anyways. This PR moves a lot of things in-line.

I'd like to also make the FixtureProviders pattern just a simple function call too, but that's for another day.

Feature Flag

Safety Assurance

Safety story

Automated test coverage

QA Plan

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

with self.timing_context('RegistrationElementProvider'):
content.append(get_registration_element(self.restore_state.restore_user))

with self.timing_context('FixtureElementProvider'):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pull most of this out in the next commit

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.

1 participant