Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into feature/cypress-to-playwright-m…
Browse files Browse the repository at this point in the history
…igration
  • Loading branch information
stigus committed Jun 5, 2024
2 parents 3ee33b8 + 93416a5 commit ae15a1c
Show file tree
Hide file tree
Showing 23 changed files with 87 additions and 80 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/alert-dolly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
apply-alerts:
name: Apply alerts to cluster
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -18,4 +19,4 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/alerting-dolly.yml
RESOURCE: ".nais/alerting-dolly.yml"
3 changes: 2 additions & 1 deletion .github/workflows/app.team-dolly-lokal-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
deploy:
name: Deploy team-dolly-lokal-app
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -18,4 +19,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/team-dolly-lokal-app.yml
RESOURCE: ".nais/team-dolly-lokal-app.yml"
5 changes: 3 additions & 2 deletions .github/workflows/common.workflow.backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ on:
jobs:

start:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Logging"
Expand Down Expand Up @@ -127,7 +128,7 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/${{ inputs.nais-manifest }}
RESOURCE: "${{ inputs.working-directory }}/${{ inputs.nais-manifest }}"
VAR: image=${{ needs.build.outputs.image }}

deploy-test:
Expand All @@ -142,5 +143,5 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/config.test.yml
RESOURCE: "${{ inputs.working-directory }}/config.test.yml"
VAR: image=${{ needs.build.outputs.image }}
9 changes: 5 additions & 4 deletions .github/workflows/common.workflow.frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ on:
jobs:

start:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Logging"
Expand Down Expand Up @@ -164,7 +165,7 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/config.yml
RESOURCE: "${{ inputs.working-directory }}/config.yml"
VAR: image=${{ needs.build.outputs.image }}

deploy-test:
Expand All @@ -179,7 +180,7 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/config.test.yml
RESOURCE: "${{ inputs.working-directory }}/config.test.yml"
VAR: image=${{ needs.build.outputs.image }}

# Only used by dolly-frontend.
Expand All @@ -195,7 +196,7 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/config.idporten.yml
RESOURCE: "${{ inputs.working-directory }}/config.idporten.yml"
VAR: image=${{ needs.build.outputs.image }}

# Only used by dolly-frontend.
Expand All @@ -211,5 +212,5 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/config.unstable.yml
RESOURCE: "${{ inputs.working-directory }}/config.unstable.yml"
VAR: image=${{ needs.build.outputs.image }}
1 change: 1 addition & 0 deletions .github/workflows/common.workflow.libs.backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
jobs:

start:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Logging"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/common.workflow.libs.frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:

start:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Logging"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/idporten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
deploy-idporten:
if: github.event.pull_request.draft == false
name: Deploy idporten
runs-on: ubuntu-latest
permissions:
Expand All @@ -19,4 +20,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: .nais/idporten.yml
RESOURCE: ".nais/idporten.yml"
14 changes: 9 additions & 5 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,27 @@ on:
push:
branches:
- master
paths-ignore:
- 'navikt/**'
- '.github/**'
- '.nais/alerting-dolly.yml'
paths:
- 'apps/bruker-service/**'
- 'apps/person-organisasjon-tilgang-service/**'
pull_request:
types: [ assigned, opened, synchronize, reopened ]
paths:
- 'apps/bruker-service/**'
- 'apps/person-organisasjon-tilgang-service/**'
types: [ ready_for_review, review_requested ]
workflow_dispatch:

jobs:
bruker-service:
if: github.event.pull_request.draft == false
uses: ./.github/workflows/common.integration-test.yml
with:
working-directory: 'apps/bruker-service/'
healthcheck: 'http://localhost:8002/internal/isAlive'
secrets:
NAV_TOKEN: ${{ secrets.NAV_TOKEN }}
person-organisasjon-tilgang-service:
if: github.event.pull_request.draft == false
uses: ./.github/workflows/common.integration-test.yml
with:
working-directory: 'apps/person-organisasjon-tilgang-service/'
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/jekyll-gh-pages.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/kafka-topics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:
deploy-kafka-topics-dev:
name: Deploy to Aiven Dev
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -22,4 +23,4 @@ jobs:
env:
CLUSTER: dev-gcp
VAR: kafka-pool=nav-dev
RESOURCE: .nais/topics.yml
RESOURCE: ".nais/topics.yml"
1 change: 1 addition & 0 deletions .github/workflows/lib.integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
workflow:
if: github.event.pull_request.draft == false
uses: ./.github/workflows/common.workflow.libs.backend.yml
with:
working-directory: 'libs/integration-test'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maskinporten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: .nais/maskinporten.yml
RESOURCE: ".nais/maskinporten.yml"
2 changes: 1 addition & 1 deletion .github/workflows/opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/opensearch.yml
RESOURCE: ".nais/opensearch.yml"
43 changes: 43 additions & 0 deletions .github/workflows/pages-build-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: GitHub Pages

on:
push:
branches: ["master"]
paths:
- "docs/**"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure
uses: actions/configure-pages@v5
- name: Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload
uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .github/workflows/redis-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/redis-dev.yml
RESOURCE: ".nais/redis-dev.yml"
2 changes: 1 addition & 1 deletion .github/workflows/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/redis.yml
RESOURCE: ".nais/redis.yml"
1 change: 0 additions & 1 deletion apps/dolly-backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ dependencies {
implementation 'org.ehcache:ehcache:3.10.8'
implementation 'com.fasterxml.jackson.core:jackson-core:2.17.1'

// implementation 'com.fasterxml.jackson.datatype:jackson-core:2.17.1'
implementation 'org.postgresql:postgresql'
implementation 'org.flywaydb:flyway-core'
implementation 'io.micrometer:micrometer-registry-prometheus'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default () => {
<h1>Dolly</h1>
</div>
<div className="menu-links">
<a href="https://navikt.github.io/testnorge/applications/dolly/" target="_blank">
<a href="https://navikt.github.io/testnorge/docs/applications/dolly/" target="_blank">
Dokumentasjon
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const DokumentasjonDropdown = () => {
<Dropdown.Menu.List.Item
onClick={() =>
window.open(
'https://navikt.github.io/testnorge/applications/dolly/',
'https://navikt.github.io/testnorge/docs/applications/dolly/brukerveiledning',
'_blank',
'noopener',
)
Expand All @@ -60,7 +60,8 @@ export const DokumentasjonDropdown = () => {
<Dropdown.Menu.List.Item
onClick={() =>
window.open(
window.location.hostname.includes('frontend')
window.location.hostname.includes('frontend') ||
window.location.hostname.includes('localhost')
? 'https://dolly-backend-dev.intern.dev.nav.no/swagger'
: 'https://dolly-backend.intern.dev.nav.no/swagger',
'_blank',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ export const VarslingerTekster = ({ varslingId }: VarslingId) => {

const brukerveiledning = (
<a
href="https://navikt.github.io/testnorge/applications/dolly/brukerveiledning"
href="https://navikt.github.io/testnorge/docs/applications/dolly/brukerveiledning"
target="_blank"
>
her
</a>
)
const retningslinjer = (
<a href="https://navikt.github.io/testnorge/applications/dolly/retningslinjer" target="_blank">
<a
href="https://navikt.github.io/testnorge/docs/applications/dolly/retningslinjer"
target="_blank"
>
her
</a>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CypressSelector } from '../../../cypress/mocks/Selectors'

const brukerveiledning = (
<a
href="https://navikt.github.io/testnorge/applications/dolly/brukerveiledning.html#feil-ved-innlogging"
href="https://navikt.github.io/testnorge/docs/applications/dolly/brukerveiledning.html#feil-ved-innlogging"
target="_blank"
>
brukerveiledningen
Expand Down
2 changes: 2 additions & 0 deletions apps/person-search-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-elasticsearch'
implementation 'org.opensearch.client:spring-data-opensearch:1.4.0'

implementation 'com.fasterxml.jackson.core:jackson-core:2.17.1'

implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
Expand Down
Empty file added dummy.placeholder.file
Empty file.

0 comments on commit ae15a1c

Please sign in to comment.