-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot add photo #303
Comments
Confirmed the bug. Furthermore, if I change only the diameter, I get the same "cannot save tree" message when tap save. Added to the Fix Immediate card. |
The android app sends `updated_by`. It doesn't know it's a foreign key, neither does the api, so it gets set to the `id` rather than the model. This causes a `ValueError` in auditing. The api already has a list of attributes to ignore. `updated_by` can be safely ignored because it is set in auditing. Same for `updated_at`. Since they are supposed to be set in auditing, they really should both be ignored. So ignore them. -- Connects to OpenTreeMap/otm-android#303 Connects to OpenTreeMap/otm-android#304
The android app sends `updated_by`. It doesn't know it's a foreign key, neither does the api, so it gets set to the `id` rather than the model. This causes a `ValueError` in auditing. The api already has a list of attributes to ignore. `updated_by` can be safely ignored because it is set in auditing. Same for `updated_at`. Since they are supposed to be set in auditing, they really should both be ignored. So ignore them. -- Connects to OpenTreeMap/otm-android#303 Connects to OpenTreeMap/otm-android#304
I can now upload a photo, but it does not display on the record despite successfully saving and reloading the page. Tested on testmap0125. I uninstalled and reinstalled the apk. |
The images are appearing on the website but not on the Android app - /testmap0125/features/2774134/ |
Some potentially relevant traceback info from Papertrail:
|
Thanx, @hectcastro! Looks like that s/t was before yesterday's PR, which was intended to fix it. I am not reproducing the s/t with a development build of |
All tree photos appear in both the little tree info pop-up and the full page tree details screen for me. Using the development build of otm On the android app, either logged out, or logged into a treemap on my local db as either I'll try connecting to staging and viewing |
Tested on testmap0125second
I tried steps 4-6 with the account I used to create the tree map and I was able to save successfully.
The text was updated successfully, but these errors were encountered: