[
https://issues.apache.org/jira/browse/DRILL-6883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16712535#comment-16712535
]
ASF GitHub Bot commented on DRILL-6883:
---------------------------------------
arina-ielchiieva commented on a change in pull request #1563: DRILL-6883: Force
reload of options after resetting parameter
URL: https://github.com/apache/drill/pull/1563#discussion_r239743620
##########
File path: exec/java-exec/src/main/resources/rest/options.ftl
##########
@@ -22,9 +22,29 @@
<script type="text/javascript" language="javascript"
src="/static/js/jquery.dataTables-1.10.16.min.js"> </script>
<script type="text/javascript" language="javascript"
src="/static/js/dataTables.colVis-1.1.0.min.js"></script>
<script>
- function resetToDefault(optionName, optionValue, optionKind) {
- $.post("/option/"+optionName, {kind: optionKind, name: optionName,
value: optionValue}, function (status) { location.reload(true); } );
+ //Alter System Values
+ function alterSysOption(optionName, optionValue, optionKind) {
+ $.post("/option/"+optionName, {kind: optionKind, name: optionName,
value: optionValue}, function () {
+ location.reload(true);
+ });
+ }
+
+ //Read Values and apply
+ function alterSysOptionUsingId(optionRawName) {
+ //Escaping '.' for id search
+ let optionName = optionRawName.replace(/\./gi, "\\.");
+ let optionKind = $("#"+optionName+" input[name='kind']").attr("value");
Review comment:
Please add comments with explanation above lines 36, 37, 39.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Reset button in /options tab is not resetting the value
> -------------------------------------------------------
>
> Key: DRILL-6883
> URL: https://issues.apache.org/jira/browse/DRILL-6883
> Project: Apache Drill
> Issue Type: Bug
> Components: Web Server
> Affects Versions: 1.15.0
> Reporter: Kunal Khatua
> Assignee: Kunal Khatua
> Priority: Critical
> Fix For: 1.15.0
>
>
> When changing a numeric field in the /options tab, while an {{Update}}
> works... the {{Reset}} button does not
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)