[BUG] bench update with Customisation and Patch
See original GitHub issueDuring bench update
the following workflow is run:
- Update repos
- Run Patches
- Migrate Apps
- Build JS and HTML changes
- Restart Bench
In this workflow, a particular use case is failing. In the event that we need to add a new field through customisation and at the same time create a Patch to set values to this new field for old data, the update fails. This is because the Patch is run before the new field is created on migrate.
Should we consider to edit the update workflow? Or there is a proper way to deal with this usecase?
Note: Quick fix is to separate the Patch and do update first for customisation to take effect and add the patch later on. But this is not practical at all times.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
V10.x.x custom app error on bench update --patch
We have a custom application that worked before. When bench update --patch I get an error message with a JSON problem.
Read more >Bench Commands - Frappe Framework
update : If executed in a bench directory, without any flags will backup, pull, setup requirements, build, run patches and restart bench. Using...
Read more >PC Building Simulator 2 | Update v1.00.14
Today we're pushing an update live, bringing us to patch v1.00.14. In this version we've addressed a number of priority issues listed below, ......
Read more >git-bisect Documentation - Git
This command uses a binary search algorithm to find which commit in your project's history introduced a bug. You use it by first...
Read more >NHL® 23 Patch Notes - Nov 8th - EA Sports
Presentation · Fixed an issue with an end-of-game celebration which showed players that were sitting on the bench celebrating with goalie instead ...
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 FreeTop 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
Top GitHub Comments
Run
frappe.reload_doctype
explicitly before running your patch code.This feature does not exist, you will have to write it!