Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-9.2.x' into candidate-…
Browse files Browse the repository at this point in the history
…9.4.x

Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Oct 12, 2023
2 parents ae61622 + 8bdaa6b commit 9872e80
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 12 deletions.
3 changes: 2 additions & 1 deletion dali/dfu/dfurun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ class CDFUengine: public CInterface, implements IDFUengine
if (write)
auditflags |= DALI_LDAP_WRITE_WANTED;

SecAccessFlags perm;
SecAccessFlags perm = SecAccess_None;
IClusterInfo *iClusterInfo = fd->queryClusterNum(0);
const char *planeName = iClusterInfo->queryGroupName();
if (!isEmptyString(planeName))
Expand Down Expand Up @@ -697,6 +697,7 @@ class CDFUengine: public CInterface, implements IDFUengine
Owned<IConstEnvironment> env = factory->openEnvironment();
if (env->isDropZoneRestrictionEnabled())
throw makeStringException(-1,"Empty plane name.");
perm = SecAccess_Full; //Not able to check DropZone permissions without a plane name
#else
throw makeStringException(-1,"Unexpected empty plane name."); // should never be the case in containerized setups
#endif
Expand Down
2 changes: 1 addition & 1 deletion esp/src/eclwatch/VizWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ define([

refreshData: function () {
if (this.limit.get("value") > this.rows.length) {
var result = this.wu.results[this.params.Sequence];
var result = this.wu.results.filter(r => r.Sequence == this.params.Sequence)[0];
var context = this;
result.fetchNRows(this.rows.length, this.limit.get("value")).then(function (response) {
context.rows = context.rows.concat(response);
Expand Down
16 changes: 14 additions & 2 deletions esp/src/src-react/components/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,22 @@ export const Results: React.FunctionComponent<ResultsProps> = ({
key: "open legacy", text: nlsHPCC.OpenLegacyMode, disabled: !uiState.hasSelection, iconProps: { iconName: "WindowEdit" },
onClick: () => {
if (selection.length === 1) {
window.location.href = `#/workunits/${wuid}/outputs/${selection[0].Name}/legacy`;
window.location.href = `#/workunits/${wuid}/outputs/${selection[0].Name}?__legacy`;
} else {
for (let i = selection.length - 1; i >= 0; --i) {
window.open(`#/workunits/${wuid}/outputs/${selection[i].Name}/legacy`, "_blank");
window.open(`#/workunits/${wuid}/outputs/${selection[i].Name}?__legacy`, "_blank");
}
}
}
},
{
key: "visualize", text: nlsHPCC.Visualize, disabled: !uiState.hasSelection, iconProps: { iconName: "BarChartVertical" },
onClick: () => {
if (selection.length === 1) {
window.location.href = `#/workunits/${wuid}/outputs/${selection[0].Sequence}?__visualize`;
} else {
for (let i = selection.length - 1; i >= 0; --i) {
window.open(`#/workunits/${wuid}/outputs/${selection[i].Sequence}?__visualize`, "_blank");
}
}
}
Expand Down
17 changes: 10 additions & 7 deletions esp/src/src-react/components/WorkunitDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ import { DojoAdapter } from "../layouts/DojoAdapter";
import { pivotItemStyle } from "../layouts/pivot";
import { pushUrl } from "../util/history";
import { WorkunitPersona } from "./controls/StateIcon";
import { Results } from "./Results";
import { Variables } from "./Variables";
import { SourceFiles } from "./SourceFiles";
import { Helpers } from "./Helpers";
import { IFrame } from "./IFrame";
import { Logs } from "./Logs";
import { Metrics } from "./Metrics";
import { Queries } from "./Queries";
import { Resources } from "./Resources";
import { Result } from "./Result";
import { Results } from "./Results";
import { FetchEditor, WUXMLSourceEditor } from "./SourceEditor";
import { SourceFiles } from "./SourceFiles";
import { Variables } from "./Variables";
import { Workflows } from "./Workflows";
import { Metrics } from "./Metrics";
import { WorkunitSummary } from "./WorkunitSummary";
import { Result } from "./Result";
import { Logs } from "./Logs";

const logger = scopedLogger("src-react/components/WorkunitDetails.tsx");

Expand Down Expand Up @@ -84,7 +85,9 @@ export const WorkunitDetails: React.FunctionComponent<WorkunitDetailsProps> = ({
</PivotItem>
<PivotItem headerText={nlsHPCC.Outputs} itemKey="outputs" itemCount={workunit?.ResultCount} style={pivotItemStyle(size, 0)}>
{state ?
<Result wuid={wuid} resultName={state} filter={queryParams} /> :
queryParams.hasOwnProperty("__legacy") ? <IFrame src={`/WsWorkunits/WUResult?Wuid=${wuid}&ResultName=${state}`} height="99%" /> :
queryParams.hasOwnProperty("__visualize") ? <DojoAdapter widgetClassID="VizWidget" params={{ Wuid: wuid, Sequence: state }} /> :
<Result wuid={wuid} resultName={state} filter={queryParams} /> :
<Results wuid={wuid} />
}
</PivotItem>
Expand Down
2 changes: 1 addition & 1 deletion roxie/ccd/ccdqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2221,7 +2221,7 @@ class DelayedPacketQueue
if (tail)
{
tail->next = newEntry;
for (DelayedPacketEntry *finger = tail; finger != nullptr; finger = finger->prev)
for (DelayedPacketEntry *finger = tail; finger != nullptr;)
{
if ((int) (finger->waitExpires - expires) <= 0)
break;
Expand Down

0 comments on commit 9872e80

Please sign in to comment.