Page MenuHomePhabricator

Logic error in Draft isOnlyLocal
Closed, ResolvedPublic

Event Timeline

Hackintosh5 created this task.

Can you explain what the problem exactly is? I don't see it

isLocalOnly is only set to false in the else clause.
So it's set to false (meaning uploaded to server) only if we edit the server draft. And we only edit the server draft if it's set to false! So it's never changed.

Try making a test to edit the server draft (.save().setText().save()) and check the coverage. The method to edit server draft is never called.