-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Enable offline draft report creation and submission #34401
Conversation
@sobitneupane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@mountiny I am still getting the error. I created a Collect Policy and added a member as Employee. When the employee makes the money request and submit the report offline, following error appears. |
I cannot submit the report even when I am online. Am I missing something? I created a new collect policy in old dot. And added a new member as employee. Do I need to do anything else? |
@sobitneupane what is the email of the account you are submitting with? |
I am submitting as employee with email [email protected]. Admin: [email protected] |
I can see this Could you go as the admin in oldDot to the settings of the policy and add the staging billing information we use in newDot too? |
Sorry for the delay @mountiny
I updated the billing info. Even after updating the billing info, I am getting the following message. I suspect it might be because my trial period has ended and I need to pay for the feature. I am not sure though. |
@mountiny Please feel free to reassign the issue to other C+ who doesn't have any issue with the Collect Workspace if it is urgent. |
I have control policy setup. Able to submit and approve |
@sobitneupane yeah lets figure this out later, dont have time right now to troubleshoot but would be great to nail this down @aimane-chnaif can you please test this one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mountiny other than layout issue, this report action should not be visible, right? (after logout and re-login, it disappears) |
Reviewer Checklist
Screenshots/VideosiOS: Nativeios.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good if #34401 (comment) can be considered out of scope
@srikarparsi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@aimane-chnaif thanks for testing, this I believe is backend issue because we are not sending back the correct timestamp of that reportAction but also as you mentioned there should only be one and I am not sure now which one as there is some project to unify this |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.29-0 🚀
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.29-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.29-1 🚀
|
Details
When submitting a report offline we have been missing the expense report managerID.
Now we are passing this accountID in the policy object as
submitsTo
. This represents the approver for the given employee so we will correctly set that data to the optimistic expense report when we create it so when we are offline we have sound data and we can create and submit report on that policy successfully.Fixed Issues
$ #32289
Tests
managerID
key setNote: There might be an error with the optimistic submitted report action jumping before all the other actions because its
created
will be before the cannonical server timestamps. This is out of scope of this PR and i believe we need to handle the double submitted report actions first to resolve thisOffline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
logic change, included web screenshots, having issues with native local development now
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop