Граф коммитов

1310 Коммитов

Автор SHA1 Сообщение Дата
Hua Zhang b66bfc9524 Fix the bug of tooltip for job details and schedule page 2017-01-06 18:49:56 +08:00
Xiangzhi Sheng b9c3252f5b Update NameCache when the device list was updated
In this code change, we are going to leverage the retrieved device Twin for device list updating to update the NameCache.

Since device method will not change while device running, we will update only tag, desired properties and reported properties. After extracted the full name of each tag or property, we will aggregate them to remove duplicated names. Then use batch operation to update the NameCache.
2017-01-06 17:56:51 +08:00
Darren Chuang 3fe7e8b5ec twin.tags.__icon__ --> should be tags.__icon__ 2017-01-06 17:51:08 +08:00
Darren Chuang ae82b57032 Merge branch 'iotchina_dm' of https://github.com/Azure/azure-iot-remote-monitoring.git 2017-01-06 17:47:44 +08:00
Darren Chuang 04b0a34819 Center alignment of loading ring 2017-01-06 17:47:26 +08:00
Xiangzhi Sheng c871782271 Reboot will generate a reported property "Method.Reboot.Log" = "Rebooted"
Add device method Reboot and FactoryReset

Factory Reset will generate a reported property "Method.FactoryReset.Log" = "Reset", and set reported property "FirmwareVersion" to "1.0", remove reported property "ConfigurationVersion"

Additional changes:
1. Never update reported proerties iothubDM.*.status (it will keep as-is on existing devices)
2. Change reported properties iothubDM.*.log to Method.*.Log
3. Remove the reboot time span from FirmwareUpdate log
4. Add reported property "StartupTime"
2017-01-06 17:39:45 +08:00
Ce Li (Chinasoft) 2a06b20291 Fix datetime picker addon position
Fix datetime picker data format mismatch form user selection
Fix Tags/Properties page ajax cache issue
Remove resvered keywords from devicedetail/tags/properties
Add default job name with localizable string
Adjust input hint text in schedulejob/editTag/editProperties page
Adjust section label text in schedulejob/editTag/editProperties page
Disable value input/delete checkbox when property name is empty(same as tag page)

remove 'lenght' check from ko if
2017-01-06 17:29:20 +08:00
v-lipi@microsoft.com eaa1df678f Merge branch 'iotchina_dm' of https://zhang-hua:44a01cfb8c121ccee197d7464875a44e0907808c@github.com/Azure/azure-iot-remote-monitoring.git 2017-01-06 16:54:12 +08:00
v-lipi@microsoft.com 2a5b4d3d49 hide the scroll bar 2017-01-06 16:53:58 +08:00
Hua Zhang 0b234bc8ac Merge branch 'iotchina_dm' of https://github.com/Azure/azure-iot-remote-monitoring into iotchina_dm 2017-01-06 16:46:33 +08:00
Hua Zhang e0dfd6d88f Filter temporary device list filters from recent list
Both GetRecentFiltersAsync and GetFilterListAsync need to be changed to
support excluding temporary filters.
2017-01-06 16:42:14 +08:00
Darren Chuang d63a732a53 Merge branch 'iotchina_dm' of https://github.com/Azure/azure-iot-remote-monitoring.git 2017-01-06 16:30:16 +08:00
Darren Chuang 8c31466ffc Remove "Clear All" button 2017-01-06 16:29:41 +08:00
v-lipi@microsoft.com eea741c78e Fix UI bug of two lines on Device Detail 2017-01-06 16:12:32 +08:00
v-lipi@microsoft.com 7aade99f2f Merge branch 'iotchina_dm' of https://zhang-hua:44a01cfb8c121ccee197d7464875a44e0907808c@github.com/Azure/azure-iot-remote-monitoring.git 2017-01-06 15:55:12 +08:00
v-lipi@microsoft.com 574939c8ab Fix Filter SaveAs UI bug 2017-01-06 15:54:54 +08:00
Darren Chuang a720abfbde Merge branch 'iotchina_dm' of https://github.com/Azure/azure-iot-remote-monitoring.git 2017-01-06 15:29:25 +08:00
v-lipi@microsoft.com a8841f4fcd Merge branch 'iotchina_dm' of https://zhang-hua:44a01cfb8c121ccee197d7464875a44e0907808c@github.com/Azure/azure-iot-remote-monitoring.git 2017-01-06 15:23:51 +08:00
v-lipi@microsoft.com e1e3cf63d4 Fix Filter UI bug on Device Index page 2017-01-06 15:23:35 +08:00
Darren Chuang 96f6b24749 Refine the style of message dialog 2017-01-06 15:22:10 +08:00
Hua Zhang c3d6886993 Fix the bug of show clone job link when no filter associated
This is caused by deleted filer's id still exists in job table as row key.
The filter name has been cleared after the filter is deleted. Set filter
id to empty in the JobRepositoryModel to keep consistence.

Revert the changes in JobApiController and JobController which are
mistakenly commit [2866004b3e] in previous push.
2017-01-06 15:10:21 +08:00
Hua Zhang d0f48d5c67 Fix the bug of go back from schedule job page 2017-01-06 14:42:48 +08:00
Hua Zhang 2866004b3e Fix the bug of show clone job link when no filter associated
This is caused by deleted filer's id still exists in job table as row key.
The filter name has been cleared after the filter is deleted. Set filter
id as empty in the JobController and JobApiController can handle it
correctly.
2017-01-06 14:37:37 +08:00
Hua Zhang 8db51f6655 Filter temporary device list filters from recent list 2017-01-06 14:31:46 +08:00
Hua Zhang f2ff59ebb2 Reserved twin's tag and property name
1.add string extension to check reserved twin's tag and property name
2.filter reserved twin tags and properties when getting nameache list
2017-01-06 14:18:21 +08:00
Darren Chuang 7793b0cb61 Merge branch 'iotchina_dm' of https://github.com/Azure/azure-iot-remote-monitoring.git 2017-01-06 13:16:17 +08:00
Darren Chuang 883763de36 automatically add prefix (tags./desired.) when focus on the input box 2017-01-06 13:15:57 +08:00
Xiangzhi Sheng 8d7e5cb49e Pick version from downloaded firmware file rather than URL itself
In previous code inherited from the C simulator, we just try to get the firmware version from the firmware URL itself, rather than try to download the file through internet. It cause difficult to demo some scenarios, such as downloading failed. By this code change, we are going to download the file and pick the version from file. Currently, the "firmware" file could only contains one line. The whole content will be treated as the version.

On the other hand, apply and reboot are still mocked. So a firmware with content "applyFail" will cause an applyFail error, to demo some error scenario.
2017-01-06 13:04:05 +08:00
Xiangzhi Sheng a60d99763a Shorten auto-generated device id
Currently, the auto-generated device id is just a GUID. To optimize the visual effect, we are going to shorten it as pattern "SampleDevice_nnnn".

Considering the cost of holding a random generator across HTTP requests, the "nnnn" part will be generated from the first 4 bytes of a GUID, and verified to ensure no conflict.
2017-01-06 11:43:45 +08:00
Darren Chuang aeca37f9db Merge branch 'iotchina_dm' of https://github.com/Azure/azure-iot-remote-monitoring.git 2017-01-06 10:13:01 +08:00
Hua Zhang 6c0bbd7ea3 Revert margin of loading icon to previous value 2017-01-05 19:28:18 +08:00
Xiangzhi Sheng 82581910b9 Show in-progress states instead of the old locale name
It was confirmed that state "IN_PROGRESS" and "PENDING" indicate the locale is being changed. So we will not show the retrieved locale name in these two states.
2017-01-05 18:46:17 +08:00
Darren Chuang e20728b003 Merge branch 'iotchina_dm' of https://github.com/Azure/azure-iot-remote-monitoring.git 2017-01-05 18:24:45 +08:00
Darren Chuang 0bcc0aaa78 Hide the "select all" checkbox by default and show it in multi-selection mode 2017-01-05 18:24:32 +08:00
Xiangzhi Sheng 9ab28838b6 Enable change locale of EUICC
Locale change is a long running process. We will retrieve the current locale and state of last "set" request at the same time. If the last request is not finished, we will show the state rather than the actual locale name.
2017-01-05 15:17:39 +08:00
Hua Zhang 21cc900275 Fix the unit test of use number as string in SQL condition 2017-01-05 15:16:13 +08:00
Hua Zhang 710516e996 Save suggest clauses when query devices
1. Add hit counter for suggest clauses table
2. Save the clauses and increase hit counter for each clause
3. Get suggest clauses ordered by hit counter descendant.

[BugFix] use Id and Name in DataTablesRequest and keep consitent with
DeviceListFilter's property since js code of frontend has been changed
to use id, not filterId and filterName in the request.
2017-01-05 15:12:16 +08:00
Xiangzhi Sheng 6072c24185 [BugFix] Incorrect request URI 2017-01-05 15:10:54 +08:00
Xiangzhi Sheng ef86534ba6 [BugFix] Hard-coded IMSI 2017-01-05 15:07:53 +08:00
Xiangzhi Sheng 3ec5c295be [BugFix] "Cellular conn" and "Device association" view were not updated
The previous code use .load function for redirect. So the cached view will be shown. In this code change, we use .ajax to force update
2017-01-05 15:03:53 +08:00
Ce Li (Chinasoft) 84e356f500 Merge branch 'iotchina_dm' of https://joyhui:20b4b4d7259d3fa95325e585eaf55c65b2709d56@github.com/Azure/azure-iot-remote-monitoring.git 2017-01-05 13:15:14 +08:00
Ce Li (Chinasoft) af998563a6 fix add button style on prop/tag edit page 2017-01-05 13:15:06 +08:00
Darren Chuang d71db89bf4 Merge branch 'iotchina_dm' of https://github.com/Azure/azure-iot-remote-monitoring.git 2017-01-05 11:38:30 +08:00
Darren Chuang 9304fb9d62 Don't automatically convert to number, since we are always using string for twin 2017-01-05 11:38:18 +08:00
Darren Chuang 3092963bce Filter editor adjustment 2017-01-05 11:24:00 +08:00
Xiangzhi Sheng e272413f96 Select IoTHub transport type according to the run time environment
Days ago, we found that "Mqtt" is not a valid transport type for IoT Hub device simulator running in WebJob. So we changed the transport to Mqtt_WebSocket_Only. While we just noticed that Mqtt_WebSocket_Only will introduce tons of "Channel closed" exception while the device simulator running in local debug environment. So we have to select transport according to the environment:

If there is no environment variable named as "WEBSITE_HOSTNAME", we suppose the device simulator is running in local debug environment, the transport type will be Mqtt. Otherwise, the default value Mqtt_WebSocket_Only will be chosen.
2017-01-05 11:08:00 +08:00
Hua Zhang eba9701880 disable page navigation in device icon editor
1. Return total count of icons in web api.
2. Fix one bug to compare MD5 value. Require to FetchAttributes before
getting ContentMD5 property.
2017-01-05 10:41:35 +08:00
Ce Li (Chinasoft) 0212d3526b fix cancel button validation error in prop/tag edit page 2017-01-04 16:46:12 +08:00
Xiangzhi Sheng 7c10b7cc55 Use existing device properties rather than regenerate them every time simulator rebooted
In previous code, the simulator will regenerate all the device properties (such as installedMemory, Location and Platform) every time it rebooted. It will confuse user especially when they trying to update firmware. By this code change, we will try to retrieve the existing properties from IoTHub reported properties, and only use the re-generated values when the reported value was absent.
2017-01-04 15:55:03 +08:00
Ce Li (Chinasoft) 583a68cd80 Merge from master 2017-01-04 15:08:36 +08:00