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.

[High Priority] - Element deletion bug?

See original GitHub issue

When I try to delete an annotation element, or a group of annotation elements, it seems that the server request uses the PUT endpoint (not the DELETE endpoint) and when I refresh the page and reload the annotions, the elements still exist. My assumption is that the PUT endpoint usage is normal behavior as it tries to modify the annotation document elements attribute and not include the specific elements that I want to delete … is this correct? If so, why are the elements not deleted? Keep in mind that I get a status 200 response (i.e. success) to the request. This behavior has been happening since the last update with the new Docker image.

I have recorded this behavior in developer mode in the video below: https://drive.google.com/file/d/1l7dhrnUuoimR2jwagv0k5oSui96GFa8C/view?usp=sharing

@dgutman Do you happen to know if Styx has any weird behavior recently?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mantheycommented, Nov 1, 2019

@dgutman I’ve just pushed a branch to large_image called ‘old-annotations-2.x’ that adds some maintenance endpoints. GET annotation/old takes an age in days and a number of history states, and returns how many annotation history states are older than that. The companion DELETE endpoint will remove old annotation history and compact the database. DELETE won’t let you delete anything active or younger than 7 days. You should be able to cherry pick that branch to whatever version you are running to at least see what the GET endpoint reports.

1reaction
cooperlabcommented, Oct 7, 2019

I have encountered this before too when making our tutorial video. I could not identify a pattern but in doing a lot of takes I noticed that occasionally annotation elements that I deleted through the UI were re-appearing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do we have priority queue which supports delete operation ...
This works because if an element is flagged to be deleted is not the top of the priority queue, the top of the...
Read more >
PriorityQueue does not guarantee ordering of elements of ...
In a priority queue, an element with high priority is served before an element with low priority. If two elements have the same...
Read more >
How bug prioritization works in agile projects vs non agile
Yes, but this prioritization is basically a no-brainer, given that ANY bug will automatically get higher priority over any new feature. The big ......
Read more >
Priority Queue Removing Elements - YouTube
Related Videos: Priority queue intro: https://www.youtube.com/watch?v=wptevk0bshYPriority queue min/max heaps: ...
Read more >
Priority queue algorithm | Complete Guide on ... - eduCBA
To DeQueue elements in Priority Queue, values with the highest priority are to be deleted first. Mainly, we can set the highest value...
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