Closed Beamanator closed 2 weeks ago
@mollfpr 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]
@mollfpr are you able to test this? A.k.a. report "harvesting" / "Delayed submission" should work for you, right? Maybe you can try to just have 1 report harvest / auto-submit, then you can test these changes on that "Submitted" report action? 🙏
@mollfpr are you able to test this? A.k.a. report "harvesting" / "Delayed submission" should work for you, right? Maybe you can try to just have 1 report harvest / auto-submit, then you can test these changes on that "Submitted" report action? 🙏
Sure, I'm testing it right now 👍
@mollfpr any update here? :D 🙏
~Hmm I might have to think about how a Report Preview looks after an auto-submit report action 🤔~
Actually this def prob most likely isn't necessary at all
Good catch! Thanks @mollfpr !
I'm waiting for the expense harvested!
@Beamanator Is there any way to triggered the harvesting manually? My expense from yesterday didn't get harvested.
Shoot @mollfpr - does your test policy have Daily
scheduled submit on? I think I can only manually harvest if i have a test account that you make as the approver 🤔
OK I updated a few more things to fix eslint errors... hopefullyyyyyyyyy it won't cause bugs? 😅
Shoot @mollfpr - does your test policy have Daily scheduled submit on? I think I can only manually harvest if i have a test account that you make as the approver 🤔
Yeah, I have the policy set scheduled daily but haven't harvested since last week 🥲
I can invite your test account to the policy as the approver.
@mollfpr ok that's weird! but ya please invite my account alexbeaman@expensify.com - and if you don't mind, it might have to be a policy admin
@mollfpr reportID 3651962364821678? It says it was created 1 hour ago 🤔
@Beamanator Yeah, that's a newly submitted expense. Some of my expense is harvested now, but I don't see the report action for harvested expenses.
I wondering if the actionName
for the submitted expense should be SUBMITTED
or SUBMITTEDCLOSED
? The API response seems using SUBMITTEDCLOSED
and it's make the report action item for submitted action doesn't shows up.
What the..... I'm seeing SUBMITTED
in OldDot! I'll check NewDot
Hmm in NewDot I'm seeing:
Oh @mollfpr you're looking at a different report than me!
It's weird only this report ID 3651962364821678
has the SUBMITTED
action name, the other expense has SUBMITTEDCLOSE
, do you have any clue why this is happening?
Update: I might know what is happening. I submitted the 2 previous expenses before changing the policy to approval mode. So it's got harvested and ready to pay instead of for waiting approval. The third expense, it's created after the approval mode and has the action name SUBMITTED
.
I think we missing a step in making the policy in approval mode.
oOooOoohhh submitted closed is an interesting one to think about!! For now ya let's move forward mentioning that the policy needs to be on advanced approvals, not submit & close 😬
I updated the test steps & will bring up "Submitted & Closed" in the issue!
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and not onIconClick
).myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components using Avatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. for onClick={this.submit}
the method this.submit
should be bound to this
in the constructor)this
are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this);
if this.submit
is never passed to a component event handler like onClick
)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG
)Avatar
is modified, I verified that Avatar
is working as expected in all cases)Design
label and/or tagged @Expensify/design
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 the Test
steps.@neil-marcellini 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]
:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.0.41-0 🚀
platform | result |
---|---|
🤖 android 🤖 | cancelled 🔪 |
🖥 desktop 🖥 | success ✅ |
🍎 iOS 🍎 | success ✅ |
🕸 web 🕸 | success ✅ |
@Beamanator, what does "Let report auto-harvest" mean? Is this auto submission?
@kavimuru Yes! It should be submitted automatically after setting the delayed submission.
@mollfpr Then should we wait for 24 hours if it is set to "Daily"?
@kavimuru yes, correct!! Thanks!
@Beamanator Tester has to wait for 24 hours, is there anyway this could be verified without waiting?
@Beamanator @mollfpr could this be verified internally?
Yes @kavimuru i can verify internally!
Ya looking good on staging 👍
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.41-10 🚀
platform | result |
---|---|
🤖 android 🤖 | success ✅ |
🖥 desktop 🖥 | success ✅ |
🍎 iOS 🍎 | success ✅ |
🕸 web 🕸 | success ✅ |
Details
This PR helps us identify report actions where "submission" happened automatically (via delayed submission) vs manually by a human
Fixed Issues
$ https://github.com/Expensify/App/issues/35091
Tests
automatically submitted <amount> via delayed submission
where the "Delayed Submission" test links out to https://help.expensify.com/articles/expensify-classic/reports/Automatically-submit-employee-reportsOffline tests
N/A - delayed submission doesn't work offline
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop