Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master' into sticky-lists
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Nov 27, 2020
2 parents e735ea2 + df0ae89 commit 5987bfb
Show file tree
Hide file tree
Showing 1,617 changed files with 76,177 additions and 15,757 deletions.
4 changes: 4 additions & 0 deletions .cfignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_modules/
bower_components/
dist/
dist-devkit/
dev-certs/
out/
outputs/
Expand All @@ -21,3 +22,6 @@ deploy/uaa/
docs/
build/dev_config.json
e2e-reports/
website/
.helm-cache/
coverage/
3 changes: 2 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ exclude_patterns:
- "**/vendor/"
- "**/*.d.ts"
- "**/__vendor/"
- "**/*_test.go"
- "**/*_test.go"
- "website/"
42 changes: 42 additions & 0 deletions .github/workflows/documentation-versioning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: documentation-versions

on:
release:
types: [published]

jobs:
update-docs-internal-versions:
if: github.repository == 'cloudfoundry/stratos'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Update internal-versions.json
run: |
cd website
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run add-version
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3.3.0
with:
commit-message: Update Docs Versions
delete-branch: true
title: Update website docs version following release
body: |
- Auto-generated
labels: |
ready for review
draft: false
base: ${GITHUB_REF##*/}
- name: Check output
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
66 changes: 66 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: documentation

on:
pull_request:
branches: [master]
push:
branches: [master]

jobs:
build-docs:
if: github.event_name != 'push' && github.repository == 'cloudfoundry/stratos'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Test Build
run: |
cd website
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build
publish-docs:
if: github.event_name != 'pull_request' && github.repository == 'cloudfoundry/stratos'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Add key to allow access to repository
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
cat <<EOT >> ~/.ssh/config
Host github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa
EOT
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
cd website
git config --global user.email "actions@gihub.com"
git config --global user.name "gh-actions"
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
echo "Deploying web site... hang tight"
./deploy.sh
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ src/jetstream/jetstream
src/jetstream/console-database.db
src/jetstream/config.properties
src/jetstream/db/dbconf.yml
src/jetstream/plugins/monocular/chart-repo/chartrepo
src/jetstream/plugins/analysis/container/analyzers
src/jetstream/.helm-cache

# Automatically generated OpenAPI docs
src/jetstream/docs/

# Customisations - these can be removed in the future
# Left in for now to prevent these files being checked-in, if they are still present
Expand All @@ -113,10 +119,23 @@ src/frontend/packages/core/src/index.html
# Customisation - generated import module
src/frontend/packages/core/src/_custom-import.module.ts

# Backend file generated to include extra plugins
src/jetstream/extra_plugins.go

# Prebuild package

stratos-frontend-prebuild.zip

src/frontend/assets
src/frontend/sass
go-vendor-*.tgz

website/build
website/site-dist
website/.docusaurus
website/versioned_docs
website/versioned_sidebars
website/versions.json
website/versions-repo

/scan_tmp
22 changes: 14 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ jobs:
- npm run lint
- name: Backend Lint
before_script:
- curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
- chmod +x ~/bin/gimme
- eval "$(gimme 1.13.4)"
- "./deploy/ci/travis/install-go.sh"
- go get -u golang.org/x/lint/golint
script:
- golint src/jetstream/...
Expand All @@ -58,12 +56,10 @@ jobs:
- npm run test
- npm run codecov
- name: Backend Unit Tests
before_script:
- curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
- chmod +x ~/bin/gimme
- eval "$(gimme 1.13.4)"
script:
- npm run test-backend
- "./deploy/ci/travis/run-backend-tests.sh"
after_success:
- bash <(curl -s https://codecov.io/bash) -F backend
- name: Helm Chart Unit Tests
script:
- "./deploy/ci/travis/helm-chart-unit-tests.sh"
Expand All @@ -72,6 +68,11 @@ jobs:
- "./deploy/ci/travis/job-e2e-before_script.sh"
script:
- "./deploy/ci/travis/job-e2e-script.sh longSuite"
- name: E2E Tests - Long CF Service Suites
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh"
script:
- "./deploy/ci/travis/job-e2e-script.sh longServicesSuite"
- name: E2E Tests - Manage Users
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh true"
Expand All @@ -87,6 +88,11 @@ jobs:
- "./deploy/ci/travis/job-e2e-before_script.sh"
script:
- "./deploy/ci/travis/job-e2e-script.sh autoscaler"
- name: E2E Tests - CF Summary and below
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh"
script:
- "./deploy/ci/travis/job-e2e-script.sh cfSummaryAndBelow"
- name: E2E Tests - All Other Suite
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh"
Expand Down
117 changes: 116 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,116 @@
# Change Log

## 4.3.0

[Full Changelog](https://github.com/cloudfoundry/stratos/compare/4.2.1...4.3.0)

This release contains a number of fixes and improvements:

**Improvements:**

- Lists: Highlight filters that are set in the list header [\#4748](https://github.com/cloudfoundry/stratos/issues/4748)
- Helm Chart List: Show which endpoint a chart comes from [\#4717](https://github.com/cloudfoundry/stratos/issues/4717)
- Add new darker/lighter background colour to all textareas [\#4689](https://github.com/cloudfoundry/stratos/issues/4689)
- Improve Helm Chart List Repo Filter [\#4655](https://github.com/cloudfoundry/stratos/issues/4655)
- Improve password input fields to include a reveal button to view password [\#4219](https://github.com/cloudfoundry/stratos/issues/4219)

**Fixes:**

- CF events list actee filter fails to show clear button [\#4747](https://github.com/cloudfoundry/stratos/issues/4747)
- Stratos DB Migration fails on Postgres [\#4736](https://github.com/cloudfoundry/stratos/issues/4736)
- Workload Summary: Shrinking the windows hides header content [\#4707](https://github.com/cloudfoundry/stratos/issues/4707)
- Dyanmic sizing of endpoint cards in register endpoint stepper sometimes fails [\#4706](https://github.com/cloudfoundry/stratos/issues/4706)
- Helm: Can't use a custom TLS secret when deploying Stratos [\#4704](https://github.com/cloudfoundry/stratos/issues/4704)
- Helm Install: Errors can incorrectly show up as endpoint errors [\#4673](https://github.com/cloudfoundry/stratos/issues/4673)
- Helm Install: Trim error message in snackbar [\#4672](https://github.com/cloudfoundry/stratos/issues/4672)
- Icon font's show text before icon on slow loading instances [\#4668](https://github.com/cloudfoundry/stratos/issues/4668)
- 'Are you logged in' dialog seen on logging out page [\#4468](https://github.com/cloudfoundry/stratos/issues/4468)



## 4.2.1

[Full Changelog](https://github.com/cloudfoundry/stratos/compare/4.2.0...4.2.1)

This release contains a single fix relating to Single Sign On:

**Fixes:**
- SSO Auth Doesn't Work for Endpoints [\#4716](https://github.com/cloudfoundry/stratos/issues/4716)



## 4.2.0

[Full Changelog](https://github.com/cloudfoundry/stratos/compare/4.1.0...4.2.0)

This release includes the new Kubernetes and Helm extensions. These have been donated to the Cloud Foundry Foundation by SUSE and with this release are now part of upstream Stratos.

Find out more about them on the Stratos web site: https://stratos.app.

Improvements and fixes in this release:

**Improvements:**

- Add Stratos Helm Repo to Artifact Hub [\#4645](https://github.com/cloudfoundry/stratos/issues/4645)
- Kubernetes and Helm extensions added from downstream SUSE version [\#4619](https://github.com/cloudfoundry/stratos/issues/4619)
- "Manage Roles By Username" icon isn't obviously the right place to add users to a space [\#4590](https://github.com/cloudfoundry/stratos/issues/4590)

**Fixes:**

- Error filtering applications by org [\#4658](https://github.com/cloudfoundry/stratos/issues/4658)
- API Keys should not be shown when persistence is disabled [\#4615](https://github.com/cloudfoundry/stratos/issues/4615)
- Home Page CF App Favouriete card clips text [\#4613](https://github.com/cloudfoundry/stratos/issues/4613)
- Can not push All-in-one docker image to Eirini [\#4612](https://github.com/cloudfoundry/stratos/issues/4612)
- CF Service Instances Last Operation is bunched up [\#4605](https://github.com/cloudfoundry/stratos/issues/4605)
- Cf Events List: Details Column Bugs [\#4600](https://github.com/cloudfoundry/stratos/issues/4600)
- Service names aren't showing in an app's service screen [\#4577](https://github.com/cloudfoundry/stratos/issues/4577)

**Breaking Changes:**

- **All-in-one Docker image no longer runs as the root user**

The port used in the Docker All-in-one container image has been changed from 443 to 5443. If you run the container in Docker, you will need to change the port-forwarding option to forward port 5443 and not 443. The documentation has been updated to reflect this. If you push the image to Cloud Foundry, no change is required.


## 4.1.0

[Full Changelog](https://github.com/cloudfoundry/stratos/compare/4.0.1...4.1.0)

This release contains a number of fixes and improvements:

**Improvements:**

- Add support for API Keys [\#4504](https://github.com/cloudfoundry/stratos/issues/4504)
- Register Endpoint: Reduce size of cards [\#4568](https://github.com/cloudfoundry/stratos/issues/4568)
- Metrics view: Add "The last day" to time range selector [\#4516](https://github.com/cloudfoundry/stratos/issues/4516)


**Fixes:**

- Sort endpoint table by type results in empty sort drop down in cf endpoints list [\#4565](https://github.com/cloudfoundry/stratos/issues/4565)
- Endpoint unregister clears user sort & filter selection [\#4563](https://github.com/cloudfoundry/stratos/issues/4563)
- Metrics: Metrics detail page can show two endpoint cards if URLs have trailing slash [\#4528](https://github.com/cloudfoundry/stratos/issues/4528)
- Deploy from Gitlab: Repos in groups do not work [\#4153](https://github.com/cloudfoundry/stratos/issues/4153)
- Deploy app from Github repo only shows branches from a-e in dropdown [\#3966](https://github.com/cloudfoundry/stratos/issues/3966)


## 4.0.1

[Full Changelog](https://github.com/cloudfoundry/stratos/compare/4.0.0...4.0.1)

This release contains a number of fixes and improvements:

**Improvements:**

- Helm Deployment: Allow nginx protocols and ciphers to be configured via values [\#4512](https://github.com/cloudfoundry/stratos/issues/4512)

**Fixes:**

- npm install can sometimes fail when symlinks from a previous Stratos version exist [\#4513](https://github.com/cloudfoundry/stratos/issues/4513)
- Helm Deployment: Default nginx ciphers are too restrictive [\#4503](https://github.com/cloudfoundry/stratos/issues/4503)



## 4.0.0

[Full Changelog](https://github.com/cloudfoundry/stratos/compare/3.2.1...4.0.0)
Expand All @@ -8,6 +119,7 @@ This release contains a number of fixes and improvements:

**Improvements:**

- Extensions: Allow typed access to store entities and their actions [\#4494](https://github.com/cloudfoundry/stratos/issues/4494)
- Extensions: Remove the need for symlinks and improve the build process [\#4472](https://github.com/cloudfoundry/stratos/issues/4472)
- Extensions: Allow Themes to be published and installed to/from npm [\#4471](https://github.com/cloudfoundry/stratos/issues/4471)
- Extensions: Move to extensions and themes to be packages [\#4470](https://github.com/cloudfoundry/stratos/issues/4470)
Expand Down Expand Up @@ -60,6 +172,9 @@ This release contains a number of fixes and improvements:

**Breaking Changes:**

- **Customizations in `custom-src` are now npm packages**

Stratos customizations were previously in `./custom-src` and included in the build via symlinks. These customizations have now moved into local npm packages located in `./src/frontend/packages`. For more details please see our customization documentation at `./website/docs/extensions/introduction.md` or `https://stratos.app/docs/extensions/introduction`. There you will also find instructions on migrating to npm packages and a tool to help automate most of the process.
- **Kubernetes: Upgrade only possible from version 3.0.0 or later**

When deploying into Kubernetes using Helm and upgrading from an earlier version of Stratos using `helm upgrade`, upgrade is **only** supported from version 3.0.0 or later. If you are using an earlier version, first upgrade to version 3.x before then upgrading to the latest version.
Expand All @@ -73,7 +188,7 @@ This release contains a number of fixes and improvements:

**Improvements:**

- Apply SSO whitelist to additional places [\#4318](https://github.com/cloudfoundry/stratos/issues/4318)
- Apply SSO allow-list to additional places [\#4318](https://github.com/cloudfoundry/stratos/issues/4318)

**Fixes:**

Expand Down
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Contributing to Stratos UI
# Contributing to Stratos

Stratos UI is an open project and welcomes contributions. These guidelines are provided to help you understand how the project works and to make contributing smooth and fun for everybody involved.
Stratos is an open project and welcomes contributions. These guidelines are provided to help you understand how the project works and to make contributing smooth and fun for everybody involved.

There are two main forms of contribution: reporting issues and performing code changes.

## Reporting Issues

If you find a problem with Stratos UI, report it using [GitHub issues](https://github.com/cloudfoundry/stratos/issues/new).
If you find a problem with Stratos, report it using [GitHub issues](https://github.com/cloudfoundry/stratos/issues/new).

Before reporting a new issue, please take a moment to check whether it has already been reported
[here](https://github.com/cloudfoundry/stratos/issues). If this is the case, please:
Expand All @@ -29,7 +29,7 @@ This information will help to determine the cause and prepare a fix as fast as p
## Code Changes

Code contributions come in various forms and sizes, from simple bug fixes to implementation
of new features. Before making any non-trivial change, get in touch with the Stratos UI developers first. This can prevent wasted effort later.
of new features. Before making any non-trivial change, get in touch with the Stratos developers first. This can prevent wasted effort later.

To send your code change, use GitHub pull requests. The workflow is as follows:

Expand All @@ -43,7 +43,7 @@ To send your code change, use GitHub pull requests. The workflow is as follows:

1. Publish the branch and create a pull request.

1. Stratos UI developers will review your change and possibly point out issues.
1. Stratos developers will review your change and possibly point out issues.
Adapt the code under their guidance until all issues are resolved.

1. Finally, the pull request will get merged or rejected.
Expand Down
Loading

0 comments on commit 5987bfb

Please sign in to comment.