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.

Delete case with display id deletes case but fails to delete variants..

See original GitHub issue

I haven’t really investigated this, just throwing it out:

 scout --demo --loglevel DEBUG delete case -i cust000 -d 643594 
2020-02-13 14:28:20 k1315C02VR0WRHTDH.local scout.commands.base[19961] INFO Running scout version 4.11
2020-02-13 14:28:20 k1315C02VR0WRHTDH.local scout.commands.base[19961] DEBUG Debug logging enabled.
2020-02-13 14:28:20 k1315C02VR0WRHTDH.local scout.commands.delete.delete_command[19961] INFO Running deleting case None
2020-02-13 14:28:20 k1315C02VR0WRHTDH.local scout.adapter.mongo.case[19961] INFO Deleting case 643594 institute cust000
2020-02-13 14:28:20 k1315C02VR0WRHTDH.local scout.adapter.mongo.variant[19961] INFO Deleting old clinical  variants for case None
2020-02-13 14:28:20 k1315C02VR0WRHTDH.local scout.adapter.mongo.variant[19961] INFO 0 variants deleted
2020-02-13 14:28:20 k1315C02VR0WRHTDH.local scout.adapter.mongo.variant[19961] INFO Deleting old research  variants for case None
2020-02-13 14:28:20 k1315C02VR0WRHTDH.local scout.adapter.mongo.variant[19961] INFO 0 variants deleted

The case disappears, not variants. On re-load, all is ok except for multiple already existing vars:

2020-02-13 14:29:48 k1315C02VR0WRHTDH.local scout.adapter.mongo.variant_loader[19969] DEBUG Loading variant bulk
2020-02-13 14:29:48 k1315C02VR0WRHTDH.local scout.adapter.mongo.variant_loader[19969] DEBUG Upserting variant e287358e4abec884c39a4ed4363cc130
2020-02-13 14:29:48 k1315C02VR0WRHTDH.local scout.adapter.mongo.variant_loader[19969] DEBUG Variant e287358e4abec884c39a4ed4363cc130 already exists in database

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
northwestwitchcommented, Feb 21, 2020

Ah OK, now I see why. I’ll write a fix!

0reactions
northwestwitchcommented, Feb 21, 2020

Testing… Indeed we do. Not sure this is the best practice…

Oh yes, that is another story

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deleting a product family fails · Issue #7529 - GitHub
This is a wanted behavior of the PIM in 2.1 and 2.0. A user cannot delete a family if it posses family variants....
Read more >
Delete Cases - Salesforce Help
To delete a case from a Cases related list in Lightning Experience, click Del next to the case.
Read more >
Deleting a view deletes a variant containing a block from that ...
There is an issue that can occur where a page variant will be deleted if it contains a block from a view, and...
Read more >
How to delete a case in IBM Case Manager 5.1.1 integrated ...
1. Use FileNet Enterprise Manager, right-click Case_name folder and select Delete. 2. Select the delete option that maps to what you want to...
Read more >
Delete Generation Variant - SAP Community
Go to Se11 - ESTLP - execute by F8 ; enter the generation variant and turn on the debugger mode " /h" and...
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