Beanconqueror
Beanconqueror copied to clipboard
Images are mixed up.
There are multiple issues with the images:
- when i scroll a long list of beans (only 38) then sometimes i see images for beans where i didn't add any image
- sometimes i add an image to a bean and it gets added to another one as well (overrides current image) also when i then update on the other bean the image to the correct one the first one gets changed as well
- looks like two beans share the same image ?
App is running on version 6.4.20 on an Android Device with API 28
Hello @Nailik, thanks for reporting this issue. Thats very strange, about more then one year ago this issue was reported and got "resolved". May I ask you, how long do you use Beanconqueror already and when did you added those beans? If they are old, that could be an issue, if they are new, this issue (should be resolved) but seems like arent?
Do you copy beans and change the information, or do you realy press "add" and then add the images?
Can you please send me your exported .JSON and tell me those beans which share the same image? - [email protected] Thanks Lars
I am using the App Since Nov. 2021 but the issue happens with Beans i added March 2023 and Jun. 2023 (Today)
Could you please give me the information about your workflow? Did you add them with "+" or did you repeat an older one?
Today i added images to beans because last time the issue wasn't fixed ;) I added new beans via the + Button and after some beans the issue appeard.
The issue is between "Karibu" and "Romano" both share the same attachement "attachments":["/beanconqueror_image.jpg"],
{"name":"Karibu","buyDate":"2023-03-15T19:40:11.258Z","roastingDate":"2023-03-09T19:40:18.685Z","note":"","roaster":"Coffe Circle","config":{"uuid":"1c9fadc5-a98e-4526-8d5e-ce3c93fd92aa","unix_timestamp":1679168509},"roast":"UNKNOWN","roast_range":4,"roast_custom":"","beanMix":"BLEND","aromatics":"","weight":250,"finished":true,"cost":9.5,"attachments":["/beanconqueror_image.jpg"],"decaffeinated":false,"cupping_points":"","bean_roasting_type":"FILTER","bean_information":[{"country":"Äthiopien ","region":"Limu","farm":"Geta Bore, Agora","elevation":"2.040","variety":"heirloom, local landraces (arabica)","processing":"washed"},{"country":"Brasilien","region":"","farm":"APAS, Mantiqueira de Minas","elevation":"1.000","variety":"Yellow Catuai, Yellow Bourbón, Mundo novo","processing":"natural"},{"country":"Kenia","region":"Kiambu","farm":"Thiririka FCS","elevation":"2.600","variety":"SL-28, SL-24, Ruiru 11","processing":"washed"}],"url":"","ean_article_number":"","bean_roast_information":{"drop_temperature":0,"roast_length":0,"roaster_machine":"","green_bean_weight":0,"outside_temperature":0,"humidity":0,"bean_uuid":"","first_crack_minute":0,"first_crack_temperature":0,"second_crack_minute":0,"second_crack_temperature":0},"rating":0,"qr_code":"","favourite":false,"shared":false,"cupping":{"body":0,"brightness":0,"clean_cup":0,"complexity":0,"cuppers_correction":0,"dry_fragrance":0,"finish":0,"flavor":0,"sweetness":0,"uniformity":0,"wet_aroma":0,"notes":""},"cupped_flavor":{"predefined_flavors":{},"custom_flavors":[]}},
{"name":"Romano","buyDate":"2023-05-31T10:13:32.450Z","roastingDate":"2023-05-30T10:13:47.128Z","note":"","roaster":"Schamong","config":{"uuid":"a9e980a4-1c9f-46a9-b192-ef4cd39a6022","unix_timestamp":1686300688},"roast":"UNKNOWN","roast_range":2.5,"roast_custom":"","beanMix":"BLEND","aromatics":"","weight":250,"finished":false,"cost":6.8,"attachments":["/beanconqueror_image.jpg"],"decaffeinated":false,"cupping_points":"","bean_roasting_type":"ESPRESSO","bean_information":[{"country":"Kolumbien","region":"","farmer":"","elevation":"","variety":"Arabica","processing":"washed","percentage":60},{"country":"Brasilien","variety":"Robusta (Canephora)","percentage":40,"processing":"Natural"}],"url":"","ean_article_number":"","bean_roast_information":{"drop_temperature":0,"roast_length":0,"roaster_machine":"","green_bean_weight":0,"outside_temperature":0,"humidity":0,"bean_uuid":"","first_crack_minute":0,"first_crack_temperature":0,"second_crack_minute":0,"second_crack_temperature":0},"rating":4,"qr_code":"","favourite":false,"shared":false,"cupping":{"body":0,"brightness":0,"clean_cup":0,"complexity":0,"cuppers_correction":0,"dry_fragrance":0,"finish":0,"flavor":0,"sweetness":0,"uniformity":0,"wet_aroma":0,"notes":""},"cupped_flavor":{"predefined_flavors":{},"custom_flavors":[]}},
I opened one and deleted the image, saved it, opened the other one and saved it as well. After adding a picture to one of them the other one gets the same image :/
The app should really use a database and not an ever growing json.
Btw you got a Mail
@Nailik - thanks for the mail and thanks for your digging. Thats so! Super strange. Can you delete the image on "both" beans. Close the app completely, Open up, add one image on one bean, and see if the issue exists still?
This is a reference issue, but I still don't understand how this reference is coming into place, this was the issue back in the times but the reporting users told me that it has been fixed, therefore its strange its here again... I'll check the code anyhow
What I still could think off that - I know that isn't a good solution: Maybe a restart of the phone would help after adding a bean, before adding another one - just to make sure.
The file api of android has gone many restrictions and changes, and maybe the file-system is reporting "strange things". I also had back in the days some issues with reading/writing files, when they existed before
The issue was solved my deleting the image from both beans. On the second bean however it was difficult because the delete button was almost impossible to see and click. (Probably because the image could not be shown because it was already deleted). Afterwards I could add the image to both (without closing/reopening the app) and the issue was fixed. I just found out 4 more beans have images of other ones. I think I already tried to add images to those but back then there was the big that it didn't work. The following (left) show the image of the right ones : Fulofspiritz - Brazil Cerrado Mineiro Käschual - La Granja Blanco Espresso - El Mirador Konfident - Christmas Coffee
So why is this still json file based and not using a database? Is there no library for cordova that supports a database?
So why is this still json file based and not using a database? Is there no library for cordova that supports a database?
Beanconqueror uses an IndexDB in behind. .JSON-Files are used as export/import, in the next update the .JSON-Files will be cut in chunk-sizes into a .zip file.
I think we finally found this issue. @RagingCactus helped to make it work, I'll cover this topic in the next release, and if needed open up a new ticket then please.
See #835 and #833