question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

updateEvent should support event ID changes

See original GitHub issue

removeEvents("string") leads to this callback:

            filter = function(event) {
                return event._id == eventID;
            };

Some of my events are from “external events” (dropped jQ widgets). eventReceive looks like:

    eventReceive: function(ev) {
                   (...)
                    var uidlen=10;
                    ev.id = 'client_' + (Math.random().toString(36)+'00000000000000000').slice(2, uidlen+2);
                    (...)
                    calendar.updateEvent(ev);
   }

For those client events, id is as expected, but _id contains strings like _fc6.

Not sure the right path,

  • Should updateEvent update _id to match?
  • Should removeEvents match against id?
  • Should the docs recommend saying removeEvents(ev._id) ?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
arshawcommented, Jun 6, 2016

._id is supposed to be the internally-used trusted value of the ID. the problem here is that updateEvent is not updating this internal value when the publicly knowable .id is changed.

I will repurpose this ticket to be about improving updateEvent to accept id changes.

In the meantime, I’m pretty sure passing in an id to the input event data for the draggable (described here), essentially making sure the ID is set earlier in the process and avoiding updateEvent altogether, should work.

0reactions
arshawcommented, Aug 31, 2017

Released in v3.5.0 (blog post)

Read more comments on GitHub >

github_iconTop Results From Across the Web

ID is malformed - Update Event (v4)
Solved: Hello, I'm new to flow and I've been working on this error for 2 days and I can't really find the solution....
Read more >
Change to UpdateEvent action in the Google Calendar Pack
With the UpdateEvent improvement, event info will simultaneously update in your Google Calendar and your doc. If you see an error message…
Read more >
Events: update | Google Calendar
Property name Value Notes end nested object start nested object anyoneCanAddSelf boolean writable
Read more >
changeEventId Scheduler Docs - DHTMLX Documentation
Each event displayed in the scheduler has a unique id value. When a new event is created from the UI it gets a...
Read more >
Update Event Organizer after Migrating to New Tenant
Did you configure the identity mapping in GWM? That will need to be configured correctly to allow GWM to handle migrating calendar events...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found