-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
standalone: add unfurl init test, use /-/overview for blueprint pages
- Loading branch information
1 parent
c51f982
commit 648c5d6
Showing
19 changed files
with
219 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,8 @@ jobs: | |
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: git config | ||
run: git config --global user.email "[email protected]"; git config --global user.name "Your Name" | ||
- name: Install yarn dependencies | ||
run: npm i -g yarn && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install | ||
# TODO add back ufsv-patch -- --runInBand | ||
|
@@ -55,6 +57,12 @@ jobs: | |
run: yarn integration-test run --namespace onecommons/blueprints -- -e GENERATE_SUBDOMAINS=true --browser chrome -s cypress/e2e/blueprints/aws__baserow__baserow.cy.js | ||
- name: pkill | ||
run: pkill unfurl || /bin/true | ||
- name: Integration test (unfurl init) | ||
env: | ||
STANDALONE_SETUP_SCRIPT: testing-shared/unfurl-init-setup.sh | ||
run: yarn integration-test run --namespace onecommons/blueprints -- -e GENERATE_SUBDOMAINS=true --browser chrome -s cypress/e2e/blueprints/aws__minecraft__minecraft.cy.js | ||
- name: pkill | ||
run: pkill unfurl || /bin/true | ||
- name: Integration test (staging upstream) | ||
run: yarn integration-test run --namespace onecommons/blueprints -- -e GENERATE_SUBDOMAINS=true --browser chrome -s cypress/e2e/blueprints/aws__baserow__baserow.cy.js | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
packages/oc-pages/dashboard/components/cells/combined-cell.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<script> | ||
import * as routes from '../../router/constants' | ||
import DeploymentStatusIcon from './shared/deployment-status-icon.vue' | ||
import {mapGetters} from 'vuex' | ||
import _ from 'lodash' | ||
import DashboardRouterLink from "../../components/dashboard-router-link.vue" | ||
import {withApplicationLinkTarget} from './mixins' | ||
export default { | ||
components: { DeploymentStatusIcon, DashboardRouterLink }, | ||
mixins: [withApplicationLinkTarget], | ||
props: { | ||
deployment: { | ||
type: Object, | ||
required: true | ||
}, | ||
environment: { | ||
type: Object, | ||
required: true | ||
}, | ||
application: { | ||
type: Object, | ||
required: true | ||
}, | ||
displayStatus: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
noRouter: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
scope: { | ||
type: Object, | ||
required: true | ||
}, | ||
}, | ||
data() { | ||
return {routes} | ||
}, | ||
computed: { | ||
...mapGetters(['deploymentItemDirect']), | ||
deploymentItem() { | ||
const {environment, deployment} = this | ||
const deploymentItem = this.deploymentItemDirect({environment, deployment}) | ||
return deploymentItem | ||
}, | ||
statuses() { | ||
return _.uniqBy(this.deployment.statuses || [], 'type') | ||
} | ||
} | ||
} | ||
</script> | ||
<template> | ||
<div class="d-flex"> | ||
<deployment-status-icon :scope="scope" width="40px"/> | ||
<div v-if="application" style="display: flex; flex-direction: column;" :class="{'hash-fragment': `#${deployment.name}` == $route.hash}"> | ||
<dashboard-router-link :noRouter="noRouter" :href="noRouter? deploymentItem.viewableLink: deploymentItem.viewableTo"> | ||
<b>{{deployment.title}}:</b> | ||
</dashboard-router-link> | ||
<a :href="applicationLinkTarget"> | ||
({{application.title}}) | ||
</a> | ||
|
||
</div> | ||
</div> | ||
</template> | ||
<style scoped> | ||
.status-item { | ||
display: flex; | ||
align-items: center; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const withApplicationLinkTarget = { | ||
computed: { | ||
applicationLinkTarget() { | ||
if(!this.application.projectPath) return null | ||
if(window.gon.unfurl_gui) { | ||
return `/${this.application.projectPath}/-/overview` | ||
} | ||
return `/${this.application.projectPath}` | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.