CityOfBoston / CityWorker-issues-Incapsulate

Archived for legacy purposes
0 stars 0 forks source link

Imported Images Missing Tags #131

Closed jqr closed 4 years ago

jqr commented 6 years ago

When viewing imported Requests, tags on media are not available, meaning City Worker cannot classify images as submission, outcome, etc.

Steps to Reproduce

  1. Inspect an imported Request with submission photos via the Incapsulate Request API. Example: 101002489939.

Expected Outcome: A media_url object with tags set to an array containing "Create".

  {
    "id": "a00r0000005FbdHAAS",
    "url": "https://spot-boston-res.cloudinary.com/image/upload/v1493846236/boston/production/ymjzrxvb3w2dacdsgiid.jpg",
    "tags": ["Create"]
  }

Actual Outcome: A media_url object without a tags property.

  {
    "id": "a00r0000005FbdHAAS",
    "url": "https://spot-boston-res.cloudinary.com/image/upload/v1493846236/boston/production/ymjzrxvb3w2dacdsgiid.jpg"
  }
karthikakula commented 6 years ago

@davemitchell @jqr As part of the legacy data extract given to us for data load, there are no tags available for us to load. @ElissaMM FYI

davemitchell commented 6 years ago

Here's an excerpt from the photo data provided:

101002597535    Closed         2018-08-01 05:54AM   boston/production/t7rzkrqrrz00ynddmqgs
101002597870    Submitted      2018-07-31 10:30PM   boston/production/jsien32cdnburdernvyu
101002597906    Closed         2018-08-01 05:34AM   boston/production/tvoxpimzzm8dnvzslyt2
101002597773    Submitted      2018-07-31 08:04PM   boston/production/iwncisxgjmp6tbabfljs

The second column contained a tag field, with "Closed" or "Submitted" as the possible values.

vanessacalderon commented 6 years ago

Neither would work because the tags are CLOSE and CREATE

image

vanessacalderon commented 6 years ago

Dave, does the lack of tags affect the thumbnail of the photo? I have noticed that legacy cases do not have a photo thumbnail on the worklist or recent. Is this issue related to tags or should I put another github.

karthikakula commented 6 years ago

@vanessacalderon Thats not an issue those can be mapped and loaded during the data transformation process. @davemitchell If you can share all the tags you guys have we can map them to corresponding tags in SF.

davemitchell commented 6 years ago

Only "Closed" or "Submitted" for legacy data photos.

vanessacalderon commented 6 years ago

Actually, there are three "image status" in the file provided. Closed Submitted Inspected Elissa provided the mapping to Kishore. Closed = Close tag Submitted = Submitted or Create tag (either one exists in tag list) Inspected = Inspected tag

davemitchell commented 6 years ago

Thanks @vanessacalderon --totally forgot about inspected.