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

WC2-523 Add storage logs to bulk update #1857

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bramj
Copy link
Contributor

@bramj bramj commented Dec 10, 2024

  • Move the storage logs view to a function so we can call it from the bulk upload
  • Call said function in the bulk upload
  • Add a test for all this

Related JIRA tickets : https://bluesquare.atlassian.net/browse/WC2-523

Why?

Now that we use the bulk upload on WFP, what happens is (in this order):

  1. Mobile app uploads all forms in a zip file
  2. Mobile app uploads the storage logs

Since the first step is executed in an async job, the entity is sometimes not yet created when request 2 hits the server.

The solution is to add the storage logs to the bulk upload zip so it's processed as part of the bulk upload.

How to test?

Difficult... Honestly I'd say if the code looks reasonable, we deploy to QA and test with a new apk that adds the storage logs correctly.

@bramj bramj self-assigned this Dec 10, 2024
@bramj bramj requested a review from hakifran December 11, 2024 13:47
Copy link
Contributor

@hakifran hakifran left a comment

Choose a reason for hiding this comment

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

LGTM

@quang-le quang-le added the release Should be released in production at next deploy label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Should be released in production at next deploy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants