Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to specify non-mandatory timeout, length and offset params #78

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

Ypostolov
Copy link
Contributor

Added ability to set parameters manually by user of fileType, offset, length, timeout in OnSystemRequest on Web HMI, also there is functionality to send not mandatory parameters.

Ypostolov and others added 3 commits April 19, 2018 01:31
change name systemRequest Label

Bugfix error at the ffw/BasicCommunication OnSystemRequest method
with subType parameter which was null and which
was calling.
Change name systemRequest Label from 'System request'
to 'requestSubType'.
…oprietary_data_exchange

Bugfix error at the OnSystemRequest method and
optionLabelPath: 'content.name'
optionLabelPath: 'content.name',
classNameBindings: [
'SDL.SystemRequest.systemRequestViewSelectEnabled::inactiveTextField'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ypostolov please remove classNameBindings from here

}
),

jsonOffsetCheckBox: Em.Checkbox.extend({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ypostolov please add description for this control

classNameBindings: [
'SDL.SystemRequest.timeoutEnabled::inactiveTextField'
],
value:'2000',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ypostolov fix formatting

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
}
),
jsonLengthCheckBox: Em.Checkbox.extend({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ypostolov please add description for this control

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


}
),
jsonTimeoutCheckBox: Em.Checkbox.extend({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ypostolov please add description for this control

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
),

systemRequestViewTitleCheckBox: Em.Checkbox.extend({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ypostolov this checkbox is not needed as requestType parameter is mandatory according to HMI API. Remove this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

css/sdl.css Outdated
left:485px;
}

#systemRequestView .systemRequestViewTitleCheckBox {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ypostolov this checkbox is not needed as requestType parameter is mandatory according to HMI API. Remove this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

offsetEnabled: true,
lengthEnabled: true,
timeoutEnabled: true,
systemRequestViewSelectEnabled: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ypostolov remove this flag

Copy link
Contributor Author

@Ypostolov Ypostolov May 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FFW.BasicCommunication.OnSystemRequest(
element._parentView.systemRequestViewSelect.selection.name,
viewSelect,
element._parentView.fileNameInput.value,
element._parentView.urlsInput.value,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ypostolov please add checkbox and all needed staff for urlsInput as this is not a mandatory parameter according to HMI API

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

appID,
offset,
length,
timeout,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ypostolov please remove comma after timeout as HMI would not run on this commit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AKalinich-Luxoft AKalinich-Luxoft changed the title Fix/change values file type in on system request Add possibility to specify non-mandatory timeout, length and offset params May 11, 2018
Copy link

@yang1070 yang1070 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url is also not a mandatory paramter in HMI API spec, need an additional checkbox for it. This also apply to the new added parameter RequestSubType in https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0083-Expandable-design-for-proprietary-data-exchange.md

Jack-Byrne and others added 7 commits May 15, 2018 11:52
This line before the fix was giving the error

NavigationController.js:52 Uncaught TypeError: this.model.push is not a function

This fix now pushes location to the LocationDetails array of the navigation model.
Timeout sequence is managed by Core for PROPRIETARY mode, and HTTP header is only added to snapshot on the first attempt.
@Ypostolov Ypostolov force-pushed the fix/change_values_fileType_in_onSystemRequest branch 2 times, most recently from af7dce2 to 973f2e0 Compare May 15, 2018 10:49
       offset, length, timeout in OnSystemRequest
also added request subtype field with checkbox
@Ypostolov Ypostolov force-pushed the fix/change_values_fileType_in_onSystemRequest branch from 973f2e0 to 6e98b3a Compare May 15, 2018 10:52
@Ypostolov
Copy link
Contributor Author

@yang1070
Added checkbox for URL input
Also this pull request was rebased on pull request with expandable design feature implementation
and was added checkbox for new request sub type input.
Please check commit 6e98b3a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants