Skip to content

Commit

Permalink
Merge branch 'stable' into bkr-fix-semver-release-tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
BeArchiTek authored Dec 10, 2024
2 parents 81ea74f + 2966727 commit 2e8f750
Show file tree
Hide file tree
Showing 74 changed files with 4,410 additions and 3,746 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,9 @@ jobs:

- name: Add response delay if required
if: needs.files-changed.outputs.e2e_tests == 'true'
run: echo "INFRAHUB_MISC_RESPONSE_DELAY=2" >> $GITHUB_ENV && invoke dev.start
run: echo "INFRAHUB_MISC_RESPONSE_DELAY=0" >> $GITHUB_ENV && invoke dev.start
env:
INFRAHUB_MISC_RESPONSE_DELAY: 2
INFRAHUB_MISC_RESPONSE_DELAY: 0

- name: Set infrahub address
if: needs.files-changed.outputs.e2e_tests == 'true'
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,10 @@ jobs:
secrets: inherit
with:
publish: true

update-submodule:
needs: check_release
uses: ./.github/workflows/update-submodule.yml
secrets: inherit
with:
version: ${{ github.ref_name }}
2 changes: 1 addition & 1 deletion .github/workflows/trigger-submodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Commit and push changes with github-actions-x/commit
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GH_UPDATE_PACKAGE }}
github-token: ${{ secrets.GH_UPDATE_PACKAGE_OTTO }}
push-branch: ${{ env.BRANCH_NAME }}
commit-message: "chore: update submodule ${{ env.SUBMODULE_PATH }} to version ${{ env.SDK_VERSION }}"
files: ${{ env.SUBMODULE_PATH }}/
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/update-submodule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
# yamllint disable rule:truthy rule:line-length
name: Trigger Submodule update

on:
workflow_dispatch:
inputs:
runs-on:
description: "The OS to run the job on"
required: false
default: "ubuntu-22.04"
type: string
version:
type: string
required: false
description: The string to extract semver from.
default: ''
workflow_call:
inputs:
runs-on:
description: "The OS to run the job on"
required: false
default: "ubuntu-22.04"
type: string
version:
type: string
required: false
description: The string to extract semver from.
default: ''

jobs:
trigger-submodule:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Trigger submodule update
run: |
curl -X POST \
-H 'Authorization: token ${{ secrets.GH_UPDATE_PACKAGE_OTTO }}' \
-H 'Accept: application/vnd.github.v3+json' \
'https://api.github.com/repos/${{ secrets.INFRAHUB_ENTERPRISE_REPOSITORY }}/dispatches' \
-d '{"event_type":"trigger-submodule-update","client_payload":{"version":"${{ inputs.version }}"}}'
2 changes: 2 additions & 0 deletions .vale/styles/spelling-exceptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ validator
upsert
Upserting
upserting
uuid
UUID
validators
Version Control
Vitest
Expand Down
1 change: 1 addition & 0 deletions changelog/+schema-viewer.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In schema viewer, we now display `Hierarchical` value for generics.
1 change: 1 addition & 0 deletions changelog/+search-pagination-combobox.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add pagination and backend search in new combobox for relationships
1 change: 1 addition & 0 deletions changelog/4850.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Consistently use "Save" on all object forms submit buttons
1 change: 1 addition & 0 deletions changelog/5099.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correctly refresh menu after access token has expired
5 changes: 3 additions & 2 deletions frontend/app/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"./coverage",
"./dist",
"./playwright-report",
"./src/generated",
"./test-results",
"./tests/e2e/.auth"
"./tests/e2e/.auth",
"./src/generated",
"./src/infraops.d.ts"
]
},
"formatter": {
Expand Down
101 changes: 86 additions & 15 deletions frontend/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions frontend/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"cypress:run:component": "cypress run --component",
"cypress:run:spec": "ELECTRON_ENABLE_LOGGING=1 cypress run --spec",
"biome": "biome check .",
"biome:fix": "biome check --apply ."
"biome:fix": "biome check --write ."
},
"dependencies": {
"@apollo/client": "^3.9.10",
Expand Down Expand Up @@ -53,6 +53,8 @@
"@radix-ui/react-tooltip": "^1.0.7",
"@svgr/rollup": "^8.1.0",
"@tailwindcss/forms": "^0.5.7",
"@tanstack/react-query": "^5.62.3",
"@tanstack/react-query-devtools": "^5.62.3",
"@uiw/react-color": "^2.1.1",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.19",
Expand All @@ -68,6 +70,7 @@
"handlebars": "^4.7.8",
"jotai": "^2.10.0",
"json-to-graphql-query": "^2.2.5",
"openapi-fetch": "^0.13.3",
"prismjs": "^1.29.0",
"query-string": "^9.0.0",
"ramda": "^0.29.1",
Expand Down Expand Up @@ -117,7 +120,7 @@
"cypress": "^13.15.0",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.10",
"openapi-typescript": "^7.0.2",
"openapi-typescript": "^7.4.4",
"postcss": "^8.4.23",
"react-test-renderer": "^18.2.0",
"tailwindcss": "^3.4.3",
Expand Down
11 changes: 6 additions & 5 deletions frontend/app/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ export default defineConfig({
/* Retry on CI only */
retries: process.env.CI ? 1 : 0,
/* 30s timeout for both assertions and tests (2min in CI) */
timeout: process.env.CI
? process.env.INFRAHUB_MISC_RESPONSE_DELAY
? 6 * 60 * 1000
: 2 * 60 * 1000
: 30 * 1000,
// timeout: process.env.CI
// ? process.env.INFRAHUB_MISC_RESPONSE_DELAY
// ? 6 * 60 * 1000
// : 2 * 60 * 1000
// : 30 * 1000,
timeout: process.env.CI ? 2 * 60 * 1000 : 30 * 1000,
expect: {
timeout: process.env.CI
? process.env.INFRAHUB_MISC_RESPONSE_DELAY
Expand Down
28 changes: 17 additions & 11 deletions frontend/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ import { store } from "@/state";
import { ApolloProvider } from "@apollo/client";
import { addCollection } from "@iconify-icon/react";
import mdiIcons from "@iconify-json/mdi/icons.json";
import { QueryClientProvider } from "@tanstack/react-query";

import "./styles/index.css";
import "react-toastify/dist/ReactToastify.css";
import { queryClient } from "@/api/client";
import { TanStackQueryDevtools } from "@/devtools";

addCollection(mdiIcons);

Expand All @@ -22,17 +25,20 @@ export function App() {
<ErrorBoundary FallbackComponent={ErrorFallback}>
<Provider store={store}>
<AuthProvider>
<ApolloProvider client={graphqlClient}>
<ToastContainer
hideProgressBar={true}
transition={Slide}
autoClose={5000}
closeOnClick={false}
newestOnTop
position="bottom-right"
/>
<RouterProvider router={router} />
</ApolloProvider>
<QueryClientProvider client={queryClient}>
<ApolloProvider client={graphqlClient}>
<ToastContainer
hideProgressBar={true}
transition={Slide}
autoClose={5000}
closeOnClick={false}
newestOnTop
position="bottom-right"
/>
<RouterProvider router={router} />
</ApolloProvider>
<TanStackQueryDevtools buttonPosition="bottom-left" />
</QueryClientProvider>
</AuthProvider>
</Provider>
</ErrorBoundary>
Expand Down
Loading

0 comments on commit 2e8f750

Please sign in to comment.