Log Upload with Unstable Internet

Материал из SmartPlayer

Situation Description

The development of the SmartPlayer platform brings new useful functionality. Previously, if the connection was lost during log upload, the task created in the SmartPlayer personal account became infinite and remained in the log, thus creating additional load on the server application. Now the implementation has changed, and the user can cancel, delete, or successfully complete the task in the event log after the connection is restored. More details on how the new implementation works are described below.

Action Algorithm

First, the user must register or log in to the SmartPlayer personal account.
Next, the user needs to go to the "Devices" section of the personal account and select the desired device.

Example of the "Devices" section and selected device in the SmartPlayer personal account

A control panel for the device will open on the right side. In this panel, the user needs to click the "Export logs" line.

Example of the "Export logs" line in the SmartPlayer personal account

After clicking the line, a modal window for log export will appear. In this window, the user must select the type of logs to be exported:

  • current — only for the current working session of the device (logs recorded after the last device reboot);
  • full — logs for the entire period of device operation.
Example of the modal window for selecting the type of logs to export

To start the export process, the user must click the "Start" button.
After launching the log export process, a notification will appear in the lower-left part of the personal account screen.

Example of a log export notification

This notification contains a "Go to" button, which can be clicked to go to the "Devices" section and the "Device Log" category.

Example of the "Go to" button in the log export notification
All exported logs can also be viewed in the "Devices" section under the "Device Log" category.
Example of the "Device Log" category location in the personal account

Viewing the Device Log

After navigating to the "Device Log" category, the user can view all exported logs from devices.

Example of the "Device Log" category location in the personal account

In the "Device Log" category, the user will see a list of log tasks.

Example of the "Device Log" category with task list
If there are no tasks (exported logs) in the "Device Log" category, the page looks like this:
Example of an empty "Device Log" main page

Exported Task (Log) Statuses

All exported tasks can be divided into the following groups:

  1. In progress — the task (log) is currently being formed. Indicated by an empty circle and the corresponding value in the "Progress" column.
  2. Canceled — the task (log) was canceled during upload. Indicated by a yellow circle and the same name in the "Progress" column.
  3. Uploaded — the task (log) was successfully generated on the server and uploaded to the personal account. Indicated by a green circle and the same name in the "Progress" column.
Example of task (log) status display
While the task (log) is being generated, the user can cancel it by clicking the "Cancel upload" line.
Example of the "Cancel upload" line

Completed Tasks

After the task (log) is completed, the user can perform the following actions:

  1. Download.
  2. Delete.
Example of "Download" and "Delete" buttons for exported log tasks

Bulk Task Selection

The user can select multiple log tasks at once using checkboxes. All selected tasks will appear in the top-right part of the screen, and a control panel for the selected tasks will open.

Example of selected log tasks display

After selecting the desired log tasks, the user can perform the following actions:

  1. Export — click the download button with the corresponding icon (arrow pointing down).
  2. Delete — click the button with the trash bin icon to delete the selected tasks.
  3. Deselect — a button to clear the selection of all log tasks.
Example of buttons for interacting with selected tasks

Additional Information

If this article does not help use the functionality as intended or if there are questions after reading it, they can be asked in the "Discussions" section at the top of the page.

Example of the "Discussions" tab on the wiki page

Additional information can also be found on the page Как взаимодействовать пользователю с разделом "Обсуждения"