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

Use unwrapped app doc in mobile UCR fixture #35562

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

esoergel
Copy link
Contributor

@esoergel esoergel commented Dec 23, 2024

Product Description

No user-facing changes

Technical Summary

https://dimagi.atlassian.net/browse/USH-5197

Work with unwrapped apps in mobile UCR fixture (behind RESTORE_ACCESSIBLE_REPORTS_ONLY flag). This saves a significant amount of time in restores - as many as whole seconds. I do have some hesitation about this type of thing in general, as this circumvents any hacks that might be implemented in Application.wrap methods, though ReportAppConfig.wrap is still called.

Longer term, I'd love to extract mobile report configs out into SQL, as part of the eventual effort to move Applications out of couch. Given how painful it is to interact with those documents at that size, I think we could see benefits from intermediate stages of the migration, being able to work with only the subsection of the document in question.

Feature Flag

RESTORE_ACCESSIBLE_REPORTS_ONLY: Only restore reports in apps that are accessible to the restoring user.

Safety Assurance

This is behind a feature flag, at least for now. It's also been tested on staging.

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

Wrapping apps is shockingly time consuming, so this has the potential to
cut whole seconds off of real world restores
@esoergel esoergel marked this pull request as ready for review December 30, 2024 16:03
@esoergel esoergel changed the title Es/mobile ucr Use unwrapped app doc in mobile UCR fixture Dec 30, 2024
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.

2 participants