-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[ON HOLD #30561] [$500] Attachment - Hmm its not here page displayed on login with receipt attachment URL #28568
Comments
Job added to Upwork: https://www.upwork.com/jobs/~019998a84689b09070 |
Triggered auto assignment to @CortneyOfstad ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.An error shown while logging in with the attachment url, instead of showing the attached document What is the root cause of that problem?The report and the report action elements are empty in the beginning causing the error to show up
What changes do you think we should make in order to solve the problem?we should remove the previous line and use const propTypes = {
/** Navigation route context info provided by react navigation */
route: PropTypes.shape({
/** Route specific parameters used on this screen */
params: PropTypes.shape({
/** The report ID which the attachment is associated with */
reportID: PropTypes.string.isRequired,
/** The uri encoded source of the attachment */
source: PropTypes.string.isRequired,
}).isRequired,
}).isRequired,
report: reportPropTypes,
reportActions: PropTypes.shape(reportActionPropTypes),
};
const defaultProps = {
report: {},
reportActions: {},
};
function ReportAttachments(props) {
const reportID = _.get(props, ['route', 'params', 'reportID']);
const source = decodeURI(_.get(props, ['route', 'params', 'source']));
return (
<AttachmentModal
allowDownload
defaultOpen
report={props.report}
reportActions={props.reportActions}
source={source}
onModalHide={() => Navigation.dismissModal(reportID)}
onCarouselAttachmentChange={(attachment) => {
const route = ROUTES.REPORT_ATTACHMENTS.getRoute(reportID, attachment.source);
Navigation.navigate(route);
}}
/>
);
}
ReportAttachments.propTypes = propTypes;
ReportAttachments.defaultProps = defaultProps;
ReportAttachments.displayName = 'ReportAttachments';
export default withOnyx({
report: {
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT}${route.params.reportID}`,
},
reportActions: {
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${route.params.reportID}`,
canEvict: false,
},
})(ReportAttachments); where in the reportActions: PropTypes.shape(reportActionPropTypes), and also in the reportActions: {}, Now we need to update the so we need to change this: App/src/components/AttachmentModal.js Lines 381 to 389 in fbd04cf
To: {!_.isEmpty(props.report) && !_.isEmpty(props.reportActions) ? (
<AttachmentCarousel
report={props.report}
onNavigate={onNavigate}
reportActions={props.reportActions}
source={props.source}
onClose={closeModal}
onToggleKeyboard={updateConfirmButtonVisibility}
setDownloadButtonVisibility={setDownloadButtonVisibility}
/> POCScreen.Recording.2023-10-02.at.1.41.48.AM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.App displays 'Hmm its not here' on login with receipt attachment What is the root cause of that problem?When the page loads for the first time, the What changes do you think we should make in order to solve the problem?
This will make sure it renders correctly if we go to offline mode right after logging in.
What alternative solutions did you explore? (Optional)We can modify the |
@sobitneupane thoughts on the proposals above? |
@sobitneupane bump ^^^ |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@CortneyOfstad, @sobitneupane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Sorry for the delay. I will try to review the proposals before EOD tomorrow (NPT). |
@abzokhattab Thanks for your proposal.
We might want to show "Hmm its not here error" page if user don't have access to the attachment. I don't think our goal is to completely prevent Not found page. |
@dukenv0307 Thanks for your proposal.
We are using
How are we handling attachments in offline mode as of now if they are not already loaded? |
Yeah it's a new code update, we'll need to connect to the report as well in
@sobitneupane currently it will show loading indicator when offline if the attachment is not yet ready. When we go online the attachment will show. |
@dukenv0307 Can you please update your proposal to reflect the update?
In that case, we can have the same behavior here as well. |
Proposal updated, thank you for the feedback
@sobitneupane Yes my proposal already follows that behavior. |
@CortneyOfstad @sobitneupane this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
PR not on hold anymore @dukenv0307 @situchan lets get this over the finish line, thanks! |
@mountiny please check #30561 (comment). Should we prioritize this over #31105? |
Thanks, I am bumping the PR this is on hold for |
Any update @mountiny? Thanks! |
PR is still on hold |
This issue has not been updated in over 15 days. @CortneyOfstad, @mountiny, @situchan, @dukenv0307 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@situchan @dukenv0307 is this still on hold? |
@mountiny Yes, still on hold. |
I just realized the title was never updated for the on-hold PR (#30561 (comment)), so updated to better reflect that. I did a bit of a deep dive and found that the issue was on hold because of another PR (#28999) which was merged about 3 weeks ago. @situchan @dukenv0307 I bumped you both on your PR. Let me know where we are at with that 👍 |
Updated on PR |
@situchan checking the PR, it shows that @dukenv0307 mentioned an issue last week affecting main. Do either of you have an update on the status of the PR? Do you think that this is something that can be resolved by EOW? Thanks! |
Seems like we're currently blocked on unrelated bug |
@situchan bumped you on the on-hold issue, as it looks like the review is waiting for you. Can you please provide an update there by EOD? |
PR has some movement in the last few hours, so looking good there! Will continue to keep an eye on it 👍 |
@dukenv0307 @situchan what should we do here, the issue is on hold for the PR which you can now close @dukenv0307 |
@mountiny We're discussing this in the PR. |
Discussed with @mountiny and due to the nature of the original PR we decided a partial payment of 75% is appropriate here. Normally, no payment would be made, as another PR was utilized. However, due to the time and effort put into the original PR, we both felt that payment was appropriate. @situchan @dukenv0307 — I sent you both offers in Upwork for the adjusted contract. Please let me know once you accept and i can get those paid ASAP today. Thank you! |
@dukenv0307 It is showing that it is still waiting for you to accept the offer in Upwork — can you let me know once you accept and I can get that paid to you ASAP. Thanks! |
Hello @CortneyOfstad @mountiny, I tried but couldn't understand whether the issue was worked on somewhere or not so can you let me know if it is eligible for reporting bonus or not? |
@CortneyOfstad I've accepted the offer, thank you! |
@dhanashree-sawant Sorry about that! I've sent you a request in Upwork — please let me know once you accept and I will get that paid ASAP. Thanks! |
That's okay, thanks I have accepted the offer. |
Payment Summary@dhanashree-sawant (reporter) – paid $50 via Upwork |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should display receipt image on login with receipt attachment
Actual Result:
App displays 'Hmm its not here' on login with receipt attachment
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.75-8
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
IOS.safari.hmm.its.not.here.login.attachment.URL.mov
windows.chrome.hmm.its.not.here.on.login.with.attachment.URL.mp4
android.chrome.hmm.its.not.here.on.login.with.attachment.URL.mp4
mac.chrome.hmm.its.not.here.on.login.with.attachment.URL.mov
Recording.121.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696066001795669
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: