Whole method is rollbacked for specific assignment
See original GitHub issueDescribe the bug Since the introduction of the block mutator it’s clear rollbacking assignment errors isn’t correct.
public void SomeLinq()
{
var list = new List<List<double>>();
var something = 1 + 3;
int[] listProjected = list.Select(l => l.Count()).ToArray();
}
In the above method all mutations are rollbacked. The linq select mutation (Count to Sum) changes the return value from double to int. So the assignment will fail.
Issue Analytics
- State:
- Created 2 years ago
- Comments:22 (22 by maintainers)
Top Results From Across the Web
Unable To Perform Retry For Transfer To GL Through ...
The rollback or mark for retry of an individual assignment action for ... Either rollback/mark for retry the entire payroll action or do...
Read more >Introducing channel assignment history and rollback for ...
Channel rollback builds on the availability of channel assignment history and aims to provide quicker remediation of released artifacts. Users ...
Read more >Rolling back transactions via the ROLLBACK SQL query
The rollback SQL statement is used to manually rollback transactions in MS SQL Server.
Read more >Rollback one specific migration in Laravel
This process allows you to make specific changes to migrations without having to do a full refresh and seed each time. Personally I...
Read more >Asynchronous processing of cascading transactions
For Assign, the operation always works in overwrite mode, changing the current value to the new value based on the parent-child relationship.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dupdob sounds like a great idea! We could roll back block mutation first. Then statement mutations and if those didn’t help fall back to safe mode. I like this better than just turning off block mutations as a whole
update: the work to do appears harder by the day. I think the two most complicated things are:
I will look into to, but I am afraid I start to think that block mutation is not a good fit in its current form