smartdevicelink / sdl_requirements

Collection of requirements/technical tasks for new sdl_core features
BSD 3-Clause "New" or "Revised" License
2 stars 7 forks source link

GetInteriorVehicleData(subscribe = false) #90

Open KhrystynaDubovyk opened 6 years ago

KhrystynaDubovyk commented 6 years ago

@yang1070, please, advise on expected behavior for the following case (in light of the proposal 0178-GetInteriorVehicleData)

Pre-conditions:

a. RC app is NOT subscribed for module_1

Steps:

  1. RC app sends GetInteriorVehicleData (module_1, subscribe=false) request to SDL

Expected:

  1. ?
KhrystynaDubovyk commented 6 years ago

@dboltovskyi, @GetmanetsIrina please be aware of the issue

yang1070 commented 6 years ago

@KhrystynaDubovyk @dboltovskyi, @GetmanetsIrina

Expected:

  1. SDL knows the app is not subscribed to module_1 before.
  2. In general, SDL shall put parameter isSubscribed=status known to SDL in the response to apps if the request has parameter subscribe regardless of the value.
  3. in case the cached data of module_1 is available ( other apps has subscribed to module_1), SDL gives a success response to the app with isSubscribed=false and cached module data and may possibly have the info describes the situation, something like the app has not subscribed to the module_1 before.
  4. in case the cached data of module_1 is not available, cut off parameter subscribe=false, and forward the GetInteriorVehicleData (module_1) to the vehicle HMI. When the response comes back from HMI, SDL add paramrter isSubscribed=false in the response to the mobile app. (info might get similar updated if it is empty from the HMI)
yang1070 commented 6 years ago

related to this question, if the RC app is subscribed to module_1 before, and sends a GetInteriorVehicleData (module_1, subscribe=true) again, the response shall have isSubscribed=true