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

updating jdk17 branch with master branch changes. #1756

Open
wants to merge 60 commits into
base: JDK17
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
55dda5c
chore: Enable javascript builds with ES2015+ syntax [BACKLOG-40011]
davidmsantos90 Jan 19, 2024
d7c6aee
fix: jasmine unhandled promise rejection errors [BACKLOG-40011]
davidmsantos90 Jan 23, 2024
51c240d
[BACKLOG-40205] Remove echarts from platformBundle to reduce its size
AAravind27 Mar 15, 2024
d642ded
Merge pull request #1754 from AAravind27/new-bundle-charts
krishnaalluhitachi Mar 18, 2024
c523672
[BACKLOG-38917] Add Radar charts
AAravind27 Feb 27, 2024
74c451f
Merge pull request #1753 from AAravind27/Radar
AAravind27 Mar 25, 2024
5ea5420
[BACKLOG-40372] Fixes translations for labels of Calculated Field Dia…
hv-vamsi Mar 27, 2024
1a884a0
[BACKLOG-40336] Link some echart properties with Chart Options
AAravind27 Mar 26, 2024
93be1ee
Merge pull request #1760 from AAravind27/BACKLOG-40336
AAravind27 Apr 8, 2024
a6bd025
Merge pull request #1759 from hv-vamsi/master
peterrinehart Apr 11, 2024
064f53d
[BACKLOG-40336] Set default value to properties
AAravind27 Apr 9, 2024
9ee8c16
Merge pull request #1761 from AAravind27/BACKLOG-40336
peterrinehart Apr 13, 2024
b086d69
[BACKLOG-40489] Error when accessing browse files with a user with sp…
singletonc Apr 24, 2024
35fecfb
Merge pull request #1762 from singletonc/BACKLOG-40489
NJtwentyone Apr 29, 2024
8dd20ef
[BACKLOG-40383] Implement chart interactions
AAravind27 Apr 22, 2024
6c42f30
Merge pull request #1763 from AAravind27/BACKLOG-40383
peterrinehart May 2, 2024
ea4ba8c
[BACKLOG-40259] - Added stage-separated version for Gauge chart
jsaraf May 7, 2024
0358db8
Merge pull request #1764 from jsaraf/BACKLOG-40259
jsaraf May 14, 2024
a59a8e5
[BACKLOG-39579] JDK17 - Build issue for https://github.com/pentaho/pe…
srallapa May 21, 2024
75a3f98
[BACKLOG-40383] Implement chart interactions
AAravind27 May 24, 2024
e32e6ac
Merge pull request #1768 from AAravind27/BACKLOG-40383
krishnaalluhitachi May 27, 2024
aee18d3
chore: code cleanup
davidmsantos90 May 23, 2024
06d9a97
fix: Sanitize messages and title in message box [PPP-5061]
davidmsantos90 May 23, 2024
8cf8876
[PPP-5078] Insecure deserialization in Pentaho Interactive Reporting.
SaiPrasannaL Jun 4, 2024
d199f1e
Merge pull request #1770 from SaiPrasannaL/origin/PPP-5078
krishnaalluhitachi Jun 5, 2024
869be3e
[PPP-5078] Insecure deserialization in Pentaho Interactive Reporting.
SaiPrasannaL Jun 6, 2024
130c45e
Merge pull request #1771 from SaiPrasannaL/origin/PPP-5078
krishnaalluhitachi Jun 6, 2024
9184645
fix: event listener of 'change:init' failed [BACKLOG-40956]
davidmsantos90 Jun 6, 2024
756aaf1
[BACKLOG-40816 Update and validate in-product links in Pentaho 10.1 -…
ddiroma Jun 6, 2024
86914e6
Merge pull request #1773 from ddiroma/40816
peterrinehart Jun 6, 2024
28640f7
[PPP-5078] Insecure deserialization in Pentaho Interactive Reporting.
SaiPrasannaL Jun 7, 2024
a9e5930
Merge pull request #1774 from SaiPrasannaL/origin/PPP-5078
krishnaalluhitachi Jun 7, 2024
1bf2b9d
[BACKLOG-40998] fix: Replace null coalescing operator with OR operator
AAravind27 Jun 11, 2024
5992836
Merge pull request #1775 from AAravind27/master
peterrinehart Jun 11, 2024
c15faa3
fix: MessageBox usage with html in title and message [BACKLOG-40907]
davidmsantos90 Jun 17, 2024
db0b0f5
[BACKLOG-41392] fix: show formatted value in legend for gauge
AAravind27 Jul 4, 2024
bb2a90b
Merge pull request #1779 from AAravind27/BACKLOG-41392
krishnaalluhitachi Jul 4, 2024
43f8ae8
[BACKLOG-41380] fix: show formatted value in tooltip for radar
AAravind27 Jul 5, 2024
f621dd8
Merge pull request #1780 from AAravind27/BACKLOG-41380
krishnaalluhitachi Jul 5, 2024
4f7bb15
[CLEANUP] updated versions via release version merger
Jul 8, 2024
3d148d8
[PPP-4305] Upgrade boostsrap.js to 3.4.1
befc Jul 2, 2024
be4baf2
Revert "[PPP-4305] Upgrade boostsrap.js to 3.4.1"
befc Jul 23, 2024
ad0b147
Merge pull request #1781 from pentaho/revert-1778-PPP-4305
smmribeiro Jul 25, 2024
736ccc4
[PPP-4790] sanitize html to address XSS Vulnerabilities (#1782)
loonatic Aug 6, 2024
457e8d4
[PPP-4174] Migrate axis2 web services to jax-rs and remove axis2
peterrinehart Aug 22, 2024
335de7a
Merge pull request #1785 from peterrinehart/PPP-4174-clean
tkafalas Aug 26, 2024
921c21e
[PPP-4174] Removing unnecessary unit tests; no more XML to parse.
peterrinehart Aug 27, 2024
61132a9
Merge pull request #1786 from peterrinehart/PPP-4174-unit_test_fix
rsleem Aug 28, 2024
7dc7033
chore: bump puppeter to latest version
davidmsantos90 Sep 2, 2024
072fddd
fix: update dojo to v1.17.3 [PPP-4824]
davidmsantos90 Jun 27, 2024
64a498e
HNC-766: updated copyright headers
lgrill-pentaho Sep 24, 2024
82d41c4
Revert "HNC-766: updated copyright headers"
lgrill-pentaho Sep 24, 2024
da48cdb
[PPP-5255]-working on test cases for xss utility function
Rangashivani Oct 15, 2024
a22fc3b
Revert "[PPP-5255]-working on test cases for xss utility function"
Rangashivani Oct 15, 2024
4f22f8a
fix: indent Issue on PIR report creation [BACKLOG-42478]
davidmsantos90 Oct 11, 2024
930bf60
[PPP-4174] Use classes from data-access when processing server respon…
peterrinehart Oct 24, 2024
d87e707
[PPP-4893][PPP-5077][PPP-5128][PPP-4407][PPP-4660][PPP-4760][PPP-5043…
Nov 7, 2024
44b9356
Merge pull request #1802 from angel-ramoscardona/karaf-upgrade-4.4.6
rmansoor Nov 8, 2024
bc7a6aa
DEVO-11194: updated license and copyright headers
lgrill-pentaho Nov 11, 2024
f671840
[ANALYZER-4145] - Multiselect feature for Analyzer Report Filter no l…
miguelappleton Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules
target
config
assembly
docs
resources
resources-filtered

# ignored sources (external libs)
**/web/bootstrap
**/web/dataapi/Xmla.js
**/web/handlebars
**/web/underscore
34 changes: 27 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
{
"extends": "google",
"extends": [
"plugin:import/recommended",
"airbnb-base",
"prettier"
],

"plugins": ["import"],

"parserOptions": {
"ecmaVersion": 2020
},

"env": {
"amd" : true,
"jasmine": true,
"browser": true
},

"globals": {
"inject": true,
"module": true,
"requirejs": true
},

"rules": {
"indent": ["error", 2, {
"VariableDeclarator": {
Expand Down Expand Up @@ -81,11 +99,13 @@
{"blankLine": "always", "prev": "block-like", "next": "return"},
{"blankLine": "always", "prev": "directive", "next": "*"},
{"blankLine": "any", "prev": "directive", "next": "directive"}
]
},
"globals": {
"inject": true,
"module": true,
"requirejs": true
],

"no-restricted-syntax": "off",
"no-plusplus": ["warn", { "allowForLoopAfterthoughts": true }],
"no-underscore-dangle": "off",
"import/no-amd": "off",
"prefer-rest-params": "off",
"prefer-spread": "off"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ bin
/impl/server/pentaho.log
docs/.jekyll-metadata
docs/_site
.eslintcache
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules
target
config
assembly
docs
resources
resources-filtered

# ignored sources (external libs)
**/web/bootstrap
**/web/dataapi/Xmla.js
**/web/handlebars
**/web/underscore
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 100,
"trailingComma": "es5"
}
6 changes: 6 additions & 0 deletions .puppeteerrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { join } = require("path");

module.exports = {
// Changes the location where Puppeteer will install Chrome.
cacheDirectory: join(__dirname, "target"),
};
2 changes: 1 addition & 1 deletion License.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2002 - 2023 Hitachi Vantara. All rights reserved.
Copyright 2002 - 2024 Hitachi Vantara. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# Common-UI #
<div align="center">

# Common-UI

Common-ui historically contains commonly used utils/frameworks (e.g. jquery) that are used across the platform.
As we move forward with OSGI it is expected for these to be removed from common-ui to be deployed in a more modular way.


![Java](https://img.shields.io/badge/Java-11-brightorange?logo=openjdk)
![Javascript](https://img.shields.io/badge/JavaScript-323330?logo=javascript)
![Node](https://img.shields.io/badge/node-16-brightgreen?logo=node.js)

</div>

How to build
--------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ if(!useDebug) {
"pentaho/environment",
"pentaho/_core/main",
"pentaho/config/service",
"pentaho/config/impl/Service",
"pentaho/module/service",
"pentaho/module/metaService",
"pentaho/module/metaOf",
Expand Down Expand Up @@ -317,6 +318,7 @@ if(!useDebug) {
"pentaho/visual/action/Select",
"pentaho/visual/action/SelectExecution",
"pentaho/visual/action/Execute",
"pentaho/visual/action/Message",
"pentaho/visual/role/Mode",
"pentaho/visual/role/Mapping",
"pentaho/visual/role/Property",
Expand Down Expand Up @@ -346,8 +348,6 @@ if(!useDebug) {
"pentaho/visual/models/types/FontStyle",
"pentaho/visual/models/types/Sides",
"pentaho/visual/models/types/LabelsOption",
"pentaho/visual/models/types/WaterDirection",
"pentaho/visual/models/types/TreemapLayoutMode",
"pentaho/visual/models/Abstract",
"pentaho/visual/models/types/DisplayUnits",
"pentaho/visual/models/CartesianAbstract",
Expand All @@ -356,11 +356,11 @@ if(!useDebug) {
"pentaho/visual/models/types/MaxChartsPerRow",
"pentaho/visual/models/types/MultiChartRangeScope",
"pentaho/visual/models/types/MultiChartOverflow",
"pentaho/visual/models/types/MultiChartMax",
"pentaho/visual/models/mixins/MultiCharted",
"pentaho/visual/models/types/EmptyCellMode",
"pentaho/visual/models/mixins/Interpolated",
"pentaho/visual/models/PointAbstract",
"pentaho/visual/models/LineAbstract",
"pentaho/visual/models/AreaStacked",
"pentaho/visual/models/BarAbstract",
"pentaho/visual/models/types/TrendType",
Expand All @@ -382,20 +382,23 @@ if(!useDebug) {
"pentaho/visual/models/types/SizeByNegativesMode",
"pentaho/visual/models/mixins/ScaleSizeContinuous",
"pentaho/visual/models/Bubble",
"pentaho/visual/models/Boxplot",
"pentaho/visual/models/Dot",
"pentaho/visual/models/Pie",
"pentaho/visual/models/Donut",
"pentaho/visual/models/Dot",
"pentaho/visual/models/HeatGrid",
"pentaho/visual/models/LineAbstract",
"pentaho/visual/models/Line",
"pentaho/visual/models/LineStacked",
"pentaho/visual/models/Scatter",
"pentaho/visual/models/types/SliceOrder",
"pentaho/visual/models/Sunburst",
"pentaho/visual/models/Waterfall",
"pentaho/visual/models/Treemap",
"pentaho/visual/models/Boxplot",
"pentaho/visual/models/Funnel",
"pentaho/visual/models/Gauge",
"pentaho/visual/models/types/WaterDirection",
"pentaho/visual/models/Waterfall",
"pentaho/visual/models/types/TreemapLayoutMode",
"pentaho/visual/models/Treemap",
"pentaho/visual/models/all",
"pentaho/visual/role/adaptation/Strategy",
"pentaho/visual/role/adaptation/IdentityStrategy",
Expand All @@ -417,7 +420,6 @@ if(!useDebug) {
"pentaho/ccc/visual/CartesianAbstract",
"pentaho/ccc/visual/CategoricalContinuousAbstract",
"pentaho/ccc/visual/PointAbstract",
"pentaho/ccc/visual/LineAbstract",
"pentaho/ccc/visual/AreaAbstract",
"pentaho/ccc/visual/Area",
"pentaho/ccc/visual/AreaStacked",
Expand All @@ -437,20 +439,21 @@ if(!useDebug) {
"pentaho/ccc/visual/Boxplot",
"pentaho/ccc/visual/MetricPointAbstract",
"pentaho/ccc/visual/Bubble",
"pentaho/ccc/visual/Dot",
"pentaho/ccc/visual/Pie",
"pentaho/ccc/visual/Donut",
"pentaho/ccc/visual/Dot",
"pentaho/ccc/visual/HeatGrid",
"pentaho/ccc/visual/LineAbstract",
"pentaho/ccc/visual/Line",
"pentaho/ccc/visual/LineStacked",
"pentaho/ccc/visual/Scatter",
"pentaho/ccc/visual/Sunburst",
"pentaho/ccc/visual/Treemap",
"pentaho/visual/views/echarts/echartsView",
"pentaho/visual/views/echarts/Funnel",
"pentaho/visual/views/echarts/Gauge",
"pentaho/ccc/visual/Waterfall",
"pentaho/ccc/visual/all",
"pentaho/visual/views/echarts/Abstract",
"pentaho/visual/views/echarts/Funnel",
"pentaho/visual/views/echarts/Gauge",
"pentaho/visual/views/all"
];
}
7 changes: 5 additions & 2 deletions impl/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
for each of the constituents (e.g. vizapi, prompting) of the current artifact.</description>

<properties>
<js.project.list>dojo-release,requirejs,jquery,jquery-i18n-properties,pentaho-cdf-js,angular,angular-animate,angular-i18n,uirouter__core,uirouter__angularjs,echarts</js.project.list>
<js.project.list>dojo-release,prantlf__requirejs,jquery,jquery-i18n-properties,pentaho-cdf-js,angular,angular-animate,angular-i18n,uirouter__core,uirouter__angularjs,echarts</js.project.list>
<build.javascriptReportDirectory>target/js-reports</build.javascriptReportDirectory>

<docjs.config.file>jsdoc-vizapi.json</docjs.config.file>
Expand All @@ -30,6 +30,9 @@
<requirejs.config.files.pattern>**/*-require-js-cfg.js</requirejs.config.files.pattern>
<webjars.target.directory>${build.dependenciesDirectory}/META-INF/resources/webjars</webjars.target.directory>

<nodejs.version>v16.20.2</nodejs.version>
<npm.version>8.19.4</npm.version>

<!-- The parent POM declarations of these properties
use `project.rootdir` which does not seem to exist...
<frontend-maven-plugin.installDirectory>${project.basedir}/target</frontend-maven-plugin.installDirectory>
Expand Down Expand Up @@ -59,7 +62,7 @@
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>requirejs</artifactId>
<artifactId>prantlf__requirejs</artifactId>
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</fileSet>

<fileSet>
<directory>${webjars.target.directory}/requirejs/${requirejs.version}</directory>
<directory>${webjars.target.directory}/prantlf__requirejs/${prantlf.requirejs.version}</directory>
<outputDirectory>.</outputDirectory>
<includes>
<include>**/require.js</include>
Expand Down
38 changes: 24 additions & 14 deletions impl/client/src/main/config/javascript/build.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* HITACHI VANTARA PROPRIETARY AND CONFIDENTIAL
*
* Copyright 2002 - 2018 Hitachi Vantara. All rights reserved.
* Copyright 2002 - 2024 Hitachi Vantara. All rights reserved.
*
* NOTICE: All information including source code contained herein is, and
* remains the sole property of Hitachi Vantara and its licensors. The intellectual
Expand Down Expand Up @@ -90,22 +90,31 @@
// removed from the output folder.
removeCombined: true,

// How to optimize all the JS files in the build output directory.
optimize: "${js.build.optimizer}",
// Disable the included UglifyJS that only understands ES5 or earlier syntax.
// If the source uses ES2015 or later syntax, pass "optimize: 'none'" to r.js
// and use an ES2015+ compatible minifier after running r.js.
optimize: "none",

optimizeCss: "none",

// If using UglifyJS2 for script optimization, these config options can be
// used to pass configuration values to UglifyJS2.
// For possible `output` values see: https://github.com/mishoo/UglifyJS2#beautifier-options
// For possible `compress` values see: https://github.com/mishoo/UglifyJS2#compressor-options
uglify2: {
output: {
beautify: false
},
warnings: false,
mangle: true,
compress: true
onBuildWrite(moduleName, path, contents) {
// check value to see if code should be minified/uglified
if ("${js.build.optimizer}" === "none") {
return contents;
}

const { minify } = require.nodeRequire("uglify-js");
const { code, error } = minify(contents, {
output: {
beautify: false
}
});

if (error) {
throw new Error(error);
}

return code;
},

// Cannot use preserveLicenseComments and generateSourceMaps together...
Expand All @@ -125,6 +134,7 @@
"cdf/lib/CCC/pvc": "empty:",
"cdf/lib/CCC/cdo": "empty:",
"cdf/lib/CCC/protovis": "empty:",
"common-ui/echarts": "empty:",

// These AMD loader plugins are used in lots of code which has nothing to do with
// the platform bundle code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,6 @@
"pentaho/visual/models/types/FontStyle",
"pentaho/visual/models/types/Sides",
"pentaho/visual/models/types/LabelsOption",
"pentaho/visual/models/types/WaterDirection",
"pentaho/visual/models/types/TreemapLayoutMode",
"pentaho/visual/models/Abstract",
"pentaho/visual/models/types/DisplayUnits",
"pentaho/visual/models/CartesianAbstract",
Expand Down Expand Up @@ -806,21 +804,23 @@
"pentaho/visual/models/types/SizeByNegativesMode",
"pentaho/visual/models/mixins/ScaleSizeContinuous",
"pentaho/visual/models/Bubble",
"pentaho/visual/models/Boxplot",
"pentaho/visual/models/Dot",
"pentaho/visual/models/Pie",
"pentaho/visual/models/Donut",
"pentaho/visual/models/Funnel",
"pentaho/visual/models/Gauge",
"pentaho/visual/models/Treemap",
"pentaho/visual/models/HeatGrid",
"pentaho/visual/models/Line",
"pentaho/visual/models/LineAbstract",
"pentaho/visual/models/Line",
"pentaho/visual/models/LineStacked",
"pentaho/visual/models/Scatter",
"pentaho/visual/models/Boxplot",
"pentaho/visual/models/Dot",
"pentaho/visual/models/types/SliceOrder",
"pentaho/visual/models/Sunburst",
"pentaho/visual/models/Funnel",
"pentaho/visual/models/Gauge",
"pentaho/visual/models/types/WaterDirection",
"pentaho/visual/models/Waterfall",
"pentaho/visual/models/types/TreemapLayoutMode",
"pentaho/visual/models/Treemap",
"pentaho/visual/models/all",
"pentaho/visual/role/adaptation/Strategy",
"pentaho/visual/role/adaptation/IdentityStrategy",
Expand Down Expand Up @@ -861,21 +861,22 @@
"pentaho/ccc/visual/Boxplot",
"pentaho/ccc/visual/MetricPointAbstract",
"pentaho/ccc/visual/Bubble",
"pentaho/ccc/visual/Dot",
"pentaho/ccc/visual/Pie",
"pentaho/ccc/visual/Donut",
"pentaho/visual/views/echarts/Funnel",
"pentaho/visual/views/echarts/Gauge",
"pentaho/visual/views/echarts/Abstract",
"pentaho/ccc/visual/HeatGrid",
"pentaho/ccc/visual/Line",
"pentaho/ccc/visual/LineAbstract",
"pentaho/ccc/visual/Scatter",
"pentaho/ccc/visual/Line",
"pentaho/ccc/visual/LineStacked",
"pentaho/ccc/visual/Dot",
"pentaho/ccc/visual/Scatter",
"pentaho/ccc/visual/Sunburst",
"pentaho/ccc/visual/Treemap",
"pentaho/ccc/visual/Waterfall",
"pentaho/ccc/visual/all"
"pentaho/ccc/visual/all",
"pentaho/visual/views/echarts/Abstract",
"pentaho/visual/views/echarts/Funnel",
"pentaho/visual/views/echarts/Gauge",
"pentaho/visual/views/all"
];
}
})();
Loading