|
|
|
|
|
by viraptor
2513 days ago
|
|
Thank you for answering the questions! With the staging/deletion, I meant a scenario like this: I'm working on some feature which deletes an item I own. But in a delete condition I put "or" instead of "and" (in a non-obvious place) and the function will delete all records instead when it's run. In the current development model, this will be caught by: - me testing it locally (then fixing it and reloading test db) - maybe reviews - potentially CI/CD But with what I understand about Dark, this will be close to auto-published on save, and the first person to try the code will delete all entries from a live table/collection. Backups are ok, but not a solution in this case (you can't just roll back money transactions for example), and the downtime is not great. What system in Dark prevents this from happening in the first place? |
|
Ah, that's not how it works. I think you're thinking that you edit code in your editor and then there's this super dangerous deploy. That's not it at all.
When you make new code you open a feature flag. The feature flag doesn't run until you're ready to run it. We haven't dealt with the delicate case, but I'm imagining that we'll let you put a clone of the DB in so that you can test it.
And you can have code reviews and tests and so on while the feature flag is open. Think of it like a branch.