Coder Social home page Coder Social logo

Comments (4)

peterbraden avatar peterbraden commented on June 24, 2024

Hi,

This is actually a fairly difficult problem - most ical emitters don't correctly implement the spec (see http://tools.ietf.org/html/rfc2445#section-4.8.7 for change management) - so we'd have to create some heuristic to see how to check whether events had been updated.

I'd love to have this in the library - if you end up working on this problem then do let me know, perhaps we can collaborate and get this in the library.

from ical.js.

mrjcleaver avatar mrjcleaver commented on June 24, 2024

Aha, okay, good context. Thanks for the answer!

Given the difficulty, I'm more likely to make something comparably half-assed for my edge case (coming from the Mac's iCalendar), or to even circumvent the problem completely (in 3 years my calendar actually has totalled only 900 entries in it) - I could emit everything, and record what I've seen, and filter out anything I've seen before.

Best, Martin.

from ical.js.

peterbraden avatar peterbraden commented on June 24, 2024

yeah, it's fairly easy to just iterate through entries if your dataset is gonna be small - keep in mind that entries may be updated as well as just created, that's why it's not as simple as keeping a set of event id's. If you are fairly confident that this edge case isn't applicable then it's fairly easy.

from ical.js.

mrjcleaver avatar mrjcleaver commented on June 24, 2024

Fair point about records changing. As my data comes from a timesheet app, in general only the current period entry could be mutating.

That said, I might as well record the record as I last saw it... ;)

Best, M.

from ical.js.

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.