Giter Club home page Giter Club logo

Comments (6)

edwh avatar edwh commented on July 24, 2024

from iznik-nuxt.

ChrisOfBristol avatar ChrisOfBristol commented on July 24, 2024

The previous post was #79418930. There were no draft posts.
The correct image eventually showed on the front page, but the lag is very confusing for the user.
What's worse is that initially an image was shown from another of my posts which was for something completely different.

from iznik-nuxt.

edwh avatar edwh commented on July 24, 2024

from iznik-nuxt.

edwh avatar edwh commented on July 24, 2024

@ChrisOfBristol when you say "on the front page", which specific URL do you mean?

from iznik-nuxt.

edwh avatar edwh commented on July 24, 2024

Notes to self.

API logs show that the second message was created with two photos:

{"call":"message","collection":"Draft","locationid":8031243,"messagetype":"Offer","item":"Samsung Colour Laser Printer","textbody":"Samsung CLP-315 colour laser printer\n\nPrints are very blurry at the moment as it has been sitting around getting dusty, hopefully it will clear if you run through several black and white pages. \n\nNo wireless. Includes mains and USB leads. Width 385mm, height 245mm, depth 310mm and tray sticks out the front a further 55mm. I will email the manual and the drivers are available online. \n\nPrompt collectors will be preferred.","availablenow":1,"attachments":[19788755,20383322],"groupid":253538,"email":"XXX","modtools":false,"type":"PUT"}

19788755 no longer exists but probably dates from around the start of May, so it's definitely an old photo. Images are cached in local storage indexed by message id; for unsubmitted messages these are -1, -2 etc. to avoid linking images to the wrong message.

Web server logs show a fetch of that old photo from the /give page at 08/Jun/2021:15:06:28 UTC, shortly before the post of the next photo at 2021-06-08 15:10:47, and submission of the second message at 2021-06-08 15:10:47.

That's what I'd expect if it was loading an old draft post in, and then Chris went on two add a second photo and complete the submission. That's not what Chris recalls, obviously.

We don't have backups or web logs from the time the original photo was created; the oldest is 12th May. I've restored that, and it doesn't shed any light on the older post.

from iznik-nuxt.

edwh avatar edwh commented on July 24, 2024

@ChrisOfBristol I've investigated this as much I as I can. It's consistent with an old draft stored on the client side with a photo in it, and then you not noticing that and going on to add another photo and post it. I'm aware that wasn't what you remember, so apologies if it's annoying to suggest that. There isn't much more debugging I can do on this one, I'm afraid.

from iznik-nuxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.