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

[HOLD #10894][Image][Performance][$2000] Feature Request - Attachments should be cached after first load. It currently load from internet every time - Reported by: @parasharrajat #6527

Closed
isagoico opened this issue Nov 30, 2021 · 60 comments
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Monthly KSv2 NewFeature Something to build that is a new item. Planning Changes still in the thought process

Comments

@isagoico
Copy link

isagoico commented Nov 30, 2021

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Send a attachment to a conversation

Expected Result:

Attachments should be saved on disk for a faster load of the app.

Actual Result:

Attachments should be saved to disk after first load. It currently load from internet every time.

Workaround:

N/A

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.16-0

Reproducible in staging?: Yes
Reproducible in production?: Yes

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:

Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1638120119026500

https://www.upwork.com/jobs/~01b1d106b9bd1735e7

View all open jobs on GitHub

@isagoico isagoico added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Nov 30, 2021
@MelvinBot
Copy link

Triggered auto assignment to @CortneyOfstad (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Nov 30, 2021
@CortneyOfstad CortneyOfstad added the Improvement Item broken or needs improvement. label Nov 30, 2021
@CortneyOfstad CortneyOfstad removed their assignment Nov 30, 2021
@MelvinBot
Copy link

Triggered auto assignment to @tylerkaraszewski (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@tylerkaraszewski
Copy link
Contributor

I think this would be a great feature for people on slow or metered connections. I think it's fairly complex though, as it requires some sort of cache eviction mechanism. We may already have enough of everything we need to do this with Onyx, so it might not be that much work, but it needs to be considered.

I'm happy to stick the external label on it and see what proposals we get.

@tylerkaraszewski tylerkaraszewski added the External Added to denote the issue can be worked on by a contributor label Nov 30, 2021
@MelvinBot
Copy link

Triggered auto assignment to @michaelhaxhiu (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@marcaaron
Copy link
Contributor

Last time I checked, attachments are deliberately not cached because they are only accessible with a fresh authToken and a no-cache header i.e. uses the same mechanism as secure receipts. So probably we should first decide whether it is "secure" to add caching (it seems like it would be fine to me - but I can't quite remember the logic around why they are not cached). @thienlnam has looked into this stuff a bunch and might be able guide us.

@marcaaron marcaaron added Weekly KSv2 and removed Daily KSv2 labels Dec 1, 2021
@thienlnam
Copy link
Contributor

So we should be caching all attachments now already, the next step is likely to store attachments with onyx so this should probably wait until #3867

@MelvinBot
Copy link

This issue has not been updated in over 15 days. 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!

@MelvinBot MelvinBot added the Monthly KSv2 label Dec 27, 2021
@MelvinBot
Copy link

@isagoico, this Monthly task hasn't been acted upon in 6 weeks; closing.

If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.

@parasharrajat
Copy link
Member

Ping. It is still need to be worked on....

@thienlnam thienlnam reopened this Mar 10, 2022
@melvin-bot

This comment was marked as off-topic.

@JmillsExpensify
Copy link

Noting that this same issue affects avatars as well. I linked the related issue above.

@JmillsExpensify
Copy link

What issue or convo is this holding on? Can someone link me to it?

Bump on this question. Are we holding on #10894?

@roryabraham
Copy link
Contributor

Are we holding on #10894?

Yes, that's the one!

@roryabraham
Copy link
Contributor

This also got re-reported in slack pretty recently here

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2022

@AndrewGable, @mananjadhav, @kevinksullivan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Oct 3, 2022
@kevinksullivan kevinksullivan changed the title [HOLD][Performance] [$2000] Feature Request - Attachments should be saved to disk after first load. It currently load from internet every time - Reported by: @parasharrajat [HOLD on #10894][Performance] [$2000] Feature Request - Attachments should be saved to disk after first load. It currently load from internet every time - Reported by: @parasharrajat Oct 3, 2022
@kevinksullivan
Copy link
Contributor

Not overdue, on hold.

@melvin-bot melvin-bot bot removed the Overdue label Oct 3, 2022
@kevinksullivan kevinksullivan added Monthly KSv2 and removed Daily KSv2 labels Oct 3, 2022
@melvin-bot

This comment was marked as off-topic.

@JmillsExpensify JmillsExpensify changed the title [HOLD on #10894][Performance] [$2000] Feature Request - Attachments should be saved to disk after first load. It currently load from internet every time - Reported by: @parasharrajat [HOLD #10894] [Performance] [$2000] Feature Request - Attachments should be saved to disk after first load. It currently load from internet every time - Reported by: @parasharrajat Oct 19, 2022
@mallenexpensify
Copy link
Contributor

Snaggin' from you lil Kev cuz I got the tracking issue assigned to me
[Tracking] [Polish] Image-related feature request and improvements #10894

@mallenexpensify mallenexpensify changed the title [HOLD #10894] [Performance] [$2000] Feature Request - Attachments should be saved to disk after first load. It currently load from internet every time - Reported by: @parasharrajat [HOLD #10894][Image][Performance] [$2000] Feature Request - Attachments should be saved to disk after first load. It currently load from internet every time - Reported by: @parasharrajat Oct 26, 2022
@mallenexpensify mallenexpensify changed the title [HOLD #10894][Image][Performance] [$2000] Feature Request - Attachments should be saved to disk after first load. It currently load from internet every time - Reported by: @parasharrajat [HOLD #10894][Image][Performance][$2000] Feature Request - Attachments should be saved to disk after first load. It currently load from internet every time - Reported by: @parasharrajat Oct 26, 2022
@mallenexpensify mallenexpensify removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 26, 2022
@Beamanator Beamanator changed the title [HOLD #10894][Image][Performance][$2000] Feature Request - Attachments should be saved to disk after first load. It currently load from internet every time - Reported by: @parasharrajat [HOLD #10894][Image][Performance][$2000] Feature Request - Attachments should be cached after first load. It currently load from internet every time - Reported by: @parasharrajat Nov 8, 2022
@trjExpensify
Copy link
Contributor

👋 @Beamanator just checking that we need this issue in addition to this one, that has a PR in review already to address?

@Beamanator
Copy link
Contributor

Good point @trjExpensify - this looks a bit like a duplicate / the fix for that issue (& this one) should also fix this one.

@trjExpensify
Copy link
Contributor

Okay, cool. So there's no point us having this hang out. I'm going to close it, and then @parasharrajat I've sent you the reporting offer on the Upwork job linked to this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Monthly KSv2 NewFeature Something to build that is a new item. Planning Changes still in the thought process
Projects
None yet
Development

No branches or pull requests