Skip to content

Commit 7298642

Browse files
richard-coxnwmacmjuradependabot-preview[bot]dependabot[bot]
authored
Merge upstream - #2 (#416)
* Improve recent and favourites display (#4421) * Improve recent and favourites display * Remove debug logging * Remove debug logging/subscription leak * Unit test fix * Tweaks following review * Changes following review - favourite & recent icon changes Co-authored-by: Richard Cox <[email protected]> * Add line-height to favourite and recent entity labels (#4438) - missed out from another PR following review * Autoscaler e2e tests: Give better failure error when the test can't find the scaling row (#4424) * Improve autoscaler e2e tests * Remove duplicate fail statement * Helm Chart: Remove encryption key volume (#4355) * Remove encryption key volume * Remove encrpytion key volume migration from config-init job * Improve the logout experience (#4439) * Add support for including breaking changes in the changelog * Improve the logout experience * Fix unit tests * Add request for version info to github issues template (#4443) * Merge downstream (#4441) * Merge src/frontend from downstream * Merge src/jetstream from jetstream * Remove examples/custom-src * Merge deploy from downstream Does not include changes to - deploy/all-in-one/* - deploy/aio-entrypoint.sh - deploy/Dockerfile.all-in-one * Merge build from downstream * Add missing merge items from deploy * Updates to package-lock * Remove fdescribe * Fix e2e core tests * Remove favicon from packages/core/src * Changes following review * Show all favorites for an endpoint favorite if there is only one (#4440) * Show all favorites for the endpoint favorite if there is only one * Missing changes * Merge downstream - JSON Viewer with dark mode & Header Fixes (#4444) * Fix json-viewer dark mode * Fix profile page and side nav top position following header diet - Fix side nav top position - Update fix for profile page to also work in non-desktop mode * Fix issues with tests not running if build upload fails (#4453) * Fix issues with tests not running if build upload fails * Fix script * One more fix for script * Fix white space at start of file * Improve autoscaler e2e logging (#4456) * Improve autoscaler e2e logging - it looks like the AS returns scaling events 1-2 mins after they occur, which is too late for the test - add additional logging to print out event table data in case of alternative events being raised - fix logging if wait for events times out - add hint in later test that depends on AS scaling event * Ensure only the schedule rule results in scaling events * Fix check-e2e-pr.sh for pr's from other repos (#4459) - switch from TRAVIS_PULL_REQUEST_SLUG to TRAVIS_REPO_SLUG * Convert Client Secret Input Fields to `password` (#4455) * Insecure tlsv10 and tlsv11 ciphers in Stratos UI, bsc#1173295 (#411) (#4460) Co-authored-by: Michal Jura <[email protected]> * [Security] Bump codecov from 3.7.0 to 3.7.1 (#4457) Bumps [codecov](https://github.com/codecov/codecov-node) from 3.7.0 to 3.7.1. **This update includes a security fix.** - [Release notes](https://github.com/codecov/codecov-node/releases) - [Commits](codecov/codecov-node@v3.7.0...v3.7.1) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * Bump lodash from 4.17.15 to 4.17.19 (#4452) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.15...4.17.19) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Convert scripts to nodejs so they work on Windows (#4462) * Convert scripts to js so they work on Windows * Improve initial developer experience * Fix scss compile on windows * Fix windows build * Use fs not fs-extra where possible (can work without npm install) * Remove gulp * Cleaner fixes for Windows * Reset * Fix whitespace * Address PR feedback Co-authored-by: Neil MacDougall <[email protected]> * Shorten file paths containing `cloudfoundry`/`cloud-foundry` (#4466) * Fix 'too long' file paths * Fix build issues * Convert scripts to js so they work on Windows * Fix scss compile on windows * Improve initial developer experience * Fix scss compile on windows * Fix windows build * Use fs not fs-extra where possible (can work without npm install) * Remove gulp * Cleaner fixes for Windows * Reset * Fix whitespace * Fix merge Co-authored-by: Neil MacDougall <[email protected]> Co-authored-by: Neil MacDougall <[email protected]> Co-authored-by: Neil MacDougall <[email protected]> * Fix log out page when there's a custom log in page * Fix log out page given previous commit changes Co-authored-by: Neil MacDougall <[email protected]> Co-authored-by: Michal Jura <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Neil MacDougall <[email protected]> Co-authored-by: Neil MacDougall <[email protected]>
1 parent 8cde7b6 commit 7298642

File tree

404 files changed

+652
-579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404 files changed

+652
-579
lines changed

build/clean-symlinks.js

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Clean any symlinks from a pre 4.0 Stratos
2+
// These are no longer used for customization and need to be removed
3+
4+
// Implemented as a single script here so that it works on Windows, Linux and Mac
5+
6+
const path = require('path');
7+
const fs = require('fs');
8+
9+
// __dirname is the folder where build.js is located
10+
const STRATOS_DIR= path.resolve(__dirname, '..');
11+
12+
function processFile(filepath) {
13+
if (fs.existsSync(filepath)) {
14+
const stats = fs.lstatSync(filepath);
15+
if (stats.isSymbolicLink()) {
16+
console.log(`Removing symlink ${filepath}`);
17+
fs.unlinkSync(filepath);
18+
}
19+
}
20+
}
21+
22+
function processFolder(dir) {
23+
if (!fs.existsSync(dir)) {
24+
return
25+
}
26+
fs.readdirSync(dir).forEach( f => {
27+
let dirPath = path.join(dir, f);
28+
const realPath = fs.realpathSync(dirPath);
29+
const stats = fs.lstatSync(realPath);
30+
if (stats.isDirectory()) {
31+
processFolder(dirPath);
32+
} else {
33+
processFile(dirPath);
34+
}
35+
});
36+
};
37+
38+
processFolder(path.join(STRATOS_DIR, 'src', 'frontend', 'packages', 'core', 'sass'));
39+
processFolder(path.join(STRATOS_DIR, 'src', 'frontend', 'packages', 'core', 'assets'));
40+
processFile(path.join(STRATOS_DIR, 'src', 'frontend', 'packages', 'core', 'favicon.ico'));

build/clean-symlinks.sh

-28
This file was deleted.

build/dev-setup.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copy files required for developer quick start
2+
// Implemented as a single script here so that it works on Windows, Linux and Mac
3+
4+
const path = require('path');
5+
const fs = require('fs');
6+
7+
// __dirname is the folder where build.js is located
8+
const STRATOS_DIR= path.resolve(__dirname, '..');
9+
10+
// Only copy files if they are not already there - just make sure initial versions are in place for developer
11+
12+
// Proxy config file
13+
const PROXY_CONF = path.join(STRATOS_DIR, 'proxy.conf.js');
14+
if (!fs.existsSync(PROXY_CONF)) {
15+
let err = fs.copyFileSync(path.join(__dirname, 'proxy.conf.localdev.js'), PROXY_CONF);
16+
if (err) {
17+
console.log(err);
18+
}
19+
}
20+
21+
// config.properties
22+
const BACKEND_DIR = path.join(STRATOS_DIR, 'src', 'jetstream');
23+
const BACKEND_CONF = path.join(BACKEND_DIR, 'config.properties');
24+
const BACKEND_CONF_DEV = path.join(BACKEND_DIR, 'config.dev');
25+
if (!fs.existsSync(BACKEND_CONF)) {
26+
let err = fs.copyFileSync(BACKEND_CONF_DEV, BACKEND_CONF);
27+
if (err) {
28+
console.log(err);
29+
}
30+
}

build/fe-build.js

-82
This file was deleted.

build/gulp.config.js

-14
This file was deleted.

build/prebuild-zip.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Zip the dist folder
2+
// Implemented as a single script here so that it works on Windows, Linux and Mac
3+
4+
const path = require('path');
5+
const fs = require('fs');
6+
const AdmZip = require('adm-zip');
7+
8+
// __dirname is the folder where build.js is located
9+
const STRATOS_DIR= path.resolve(__dirname, '..');
10+
const DIST_DIR= path.join(STRATOS_DIR, 'dist');
11+
const ZIP_FILE= path.join(STRATOS_DIR, 'stratos-frontend-prebuild.zip');
12+
13+
var zip = new AdmZip();
14+
15+
zip.addLocalFolder(DIST_DIR);
16+
zip.writeZip(path.join(ZIP_FILE));

build/store-git-metadata.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Generate the git metadata file
2+
3+
// Implemented as a single script here so that it works on Windows, Linux and Mac
4+
5+
const path = require('path');
6+
const fs = require('fs');
7+
const execSync = require('child_process').execSync;
8+
9+
// __dirname is the folder where build.js is located
10+
const STRATOS_DIR = path.resolve(__dirname, '..');
11+
const GIT_FOLDER = path.join(STRATOS_DIR, '.git');
12+
const GIT_METADATA = path.join(STRATOS_DIR, '.stratos-git-metadata.json');
13+
14+
function execGit(cmd) {
15+
try {
16+
var response = execSync(cmd);
17+
return response.toString().trim();
18+
} catch (e) {
19+
console.log(e)
20+
return '';
21+
}
22+
}
23+
24+
// We can only do this if we have a git repository checkout
25+
// We'll store this in a file which we will then use - when in environments like Docker, we will run this
26+
// in the host environment so that we can pick it up when we're running in the Docker world
27+
// Do we have a git folder?
28+
if (!fs.existsSync(GIT_FOLDER)) {
29+
console.log(' + Unable to store git repository metadata - .git folder not found');
30+
return;
31+
}
32+
var gitMetadata = {
33+
project: execGit('git config --get remote.origin.url'),
34+
branch: execGit('git rev-parse --abbrev-ref HEAD'),
35+
commit: execGit('git rev-parse HEAD')
36+
};
37+
38+
fs.writeFileSync(GIT_METADATA, JSON.stringify(gitMetadata, null, 2));

deploy/ci/travis/check-e2e-pr.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
if [ -n "${TRAVIS_PULL_REQUEST}" ]; then
44
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
5-
echo "Checking labels on ${TRAVIS_PULL_REQUEST_SLUG} #${TRAVIS_PULL_REQUEST}"
6-
LABEL=$(curl -s "https://api.github.com/repos/${TRAVIS_PULL_REQUEST_SLUG}/pulls/${TRAVIS_PULL_REQUEST}" | jq -r '.labels[] | select(.name == "e2e-debug") | .name')
5+
echo "Checking labels on ${TRAVIS_REPO_SLUG} #${TRAVIS_PULL_REQUEST}"
6+
LABEL=$(curl -s "https://api.github.com/repos/${TRAVIS_REPO_SLUG}/pulls/${TRAVIS_PULL_REQUEST}" | jq -r '.labels[] | select(.name == "e2e-debug") | .name')
77
if [ "${LABEL}" == "e2e-debug" ]; then
88
echo "PR has the 'e2e-debug' label - enabling debug logging for E2E tests"
99
export STRATOS_E2E_DEBUG=true

deploy/stratos-ui-release/packages/backend/pre_packaging

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
1111
# Build backend
1212
npm install
1313
export PATH=$PATH:$PWD/node_modules/.bin
14-
npm run bosh-build-backend
14+
npm run build-backend
1515

1616
find ../stratos/deploy -type d ! -path '../stratos/deploy' ! -path '*/db' -maxdepth 1 | xargs rm -rf
1717

docs/developers-guide.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ db provider this can be done by deleting `src/jetstream/console-database.db`
212212
213213
#### Configure by Environment Variables and/or Config File
214214
215-
By default, the configuration in file `src/jetstream/default.config.properties` will be used. These can be changed by environment variables
215+
By default, the configuration in file `src/jetstream/config.properties` will be used. These can be changed by environment variables
216216
or an overrides file.
217217
218218
##### Environment variable
@@ -238,7 +238,7 @@ If you have a custom uaa, ensure you have set the following environment variable
238238
239239
##### Config File
240240
241-
To easily persist configuration settings copy `src/jetstream/default.config.properties` to `src/jetstream/config.properties`. The backend will load its
241+
To easily persist configuration settings copy `src/jetstream/config.example` to `src/jetstream/config.properties`. The backend will load its
242242
configuration from this file in preference to the default config file, if it exists. You can also modify individual configuration settings
243243
by setting the corresponding environment variable.
244244

gulpfile.js

-4
This file was deleted.

package-lock.json

+16-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)