Greenstand / Greenstand/treetracker-android

required attributes are not present

Open
#812 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
101
Forks
116
PR merge metrics
No merged PRs in 30d

Description

created via tree capture (not fake trees)

"trees": [{
"attributes": [],
"device_identifier": "b994a070c0b09b80",
"gps_accuracy": 0,
"image_url": "https://treetracker-dev-images.s3.eu-central-1.amazonaws.com/2022.02.21.16.48.30_0.0_0.0_1d284082-7303-4e21-a984-ac7787b256d2_IMG_20220221_163457_1342576053487429862.jpg",
"lat": 0.0,
"lon": 0.0,
"note": "My Legacy Note",
"planter_identifier": "@TestUser11645484702831",
"planter_photo_url": "https://treetracker-dev-images.s3.eu-central-1.amazonaws.com/2022.02.21.15.06.01_37.844936_-122.2571958_3086cd68-8a76-49c4-adff-19e84a77456f_IMG_20220221_150506_8851564171711034322.jpg",
"sequence_id": 1513,
"timestamp": 1645490094,
"user_id": 13,
"uuid": "f4eafeb1-337c-4417-bedb-2d2aaa722f93"
}

V1 data Generated via take trees, with attributes set via code
{
"attributes": [

],
"device_identifier": "b994a070c0b09b80",
"gps_accuracy": 0,
"image_url": "https://treetracker-dev-images.s3.eu-central-1.amazonaws.com/2022.02.21.18.03.04_0.0_0.0_b6669f7c-e31d-48a2-9bfa-55cd3586e03e_IMG_20220221_180117_4692150539088920716.jpg",
"lat": 0.0,
"lon": 0.0,
"note": "My Legacy Note",
"planter_identifier": "@TestUser11645484702831",
"planter_photo_url": "https://treetracker-dev-images.s3.eu-central-1.amazonaws.com/2022.02.21.15.06.05_37.844936_-122.2571958_852ac5ba-f060-4014-84fe-cd03f612c982_IMG_20220221_150508_907663084944769430.jpg",
"sequence_id": 1913,
"timestamp": 1645495270,
"user_id": 16,
"uuid": "c968ea24-fdb8-48fc-adc2-8780e6f5bdbc"
}

created via fake trees, with attributes set via code
"captures": [
{
"created_at": 1645495899283,
"delta_step_count": null,
"extra_attributes": "{\"dbh\":\"10\",\"abs_step_count\":\"10\",\"delta_step_count\":\"10\",\"rotation_matrix\":\"[12,12,12]\"}",
"image_url": "https://treetracker-dev-images.s3.eu-central-1.amazonaws.com/2022.02.21.18.12.07_0.0_0.0_b92e1cb0-e95f-418c-b563-ca20e639aa7c_IMG_20220221_181140_6634545099253567220.jpg",
"lat": 0.0,
"lon": 0.0,
"note": "My Note",
"rotation_matrix": null,
"session_id": "99bb9d63-32d2-4777-8ee3-adfe5617d6da",
"abs_step_count": null,
"capture_id": "6c152d3f-a2b4-4dd5-8ff6-bbdca565a923"
},

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Android code that generates tree-capture and fake-tree payloads, then compare how each path populates attributes. Identify where required attributes are defined or validated; the fix is complete when generated payloads consistently include the required attributes and the relevant capture paths are verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.