Skip to content

Commit

Permalink
Merge pull request #4313 from opsmill/release-0.16
Browse files Browse the repository at this point in the history
Release 0.16
  • Loading branch information
lykinsbd authored Sep 11, 2024
2 parents c2056df + a8e46aa commit e691412
Show file tree
Hide file tree
Showing 811 changed files with 47,147 additions and 33,246 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

git pull
invoke demo.start --wait
invoke demo.start --wait
67 changes: 60 additions & 7 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
description: "Issue related to the frontend (React)"
color: "353755"

- name: "group/infrahubctl"
description: "Issue related to the infrahubctl command line"
color: "77ab64"
- name: "group/ux-design"
description: "Issue related to design or UX"
color: "3380ff"

- name: "group/python-sdk"
description: "Issue related to the Python SDK"
color: "56e8e1"

- name: "group/sync-engine"
description: "Issue related to the Synchronization engine"
color: "56e8e1"
color: "05b259"

- name: "group/ci"
description: "Issue related to the CI pipeline"
Expand Down Expand Up @@ -58,6 +58,7 @@
- name: "type/tech-debt"
description: "Item we know we need to improve way it is implemented"
color: "73FA20"

# ----------------------------------
# TYPE ALL
# ----------------------------------
Expand Down Expand Up @@ -102,15 +103,34 @@
# ----------------------------------
- name: "effort/high"
description: "This issue should be completed in more than a day"
color: "c80464"
color: "b60205"

- name: "effort/medium"
description: "This issue should be completed in a less than a day"
color: "676a43"
color: "ff9f1c"

- name: "effort/low"
description: "This issue should be completed in a couple of hours"
color: "eafee4"
color: "ffcc00"

# ----------------------------------
# SEVERITY
# ----------------------------------
- name: "priority/1"
description: "This issue must be fixed/implemented ASAP, it's a blocker for a release"
color: "b60205"

- name: "priority/2"
description: "This issue stalls work on the project or its dependents, it's a blocker for a release"
color: "ff9f1c"

- name: "priority/3"
description: "Not blocking but should be fixed soon"
color: "ffcc00"

- name: "priority/4"
description: "Low priority and doesn't need to be rushed"
color: "cfda2c"

# ----------------------------------
# STATUS
Expand All @@ -123,6 +143,35 @@
description: "The redaction of the issue is still a work in progress"
color: "dcb518"

- name: "state/need-triage"
description: "This issue needs to be triaged"
color: "333333"

- name: "state/need-more-info"
description: "This issue needs more information"
color: "cccccc"

- name: "state/need-testing"
description: "This issue is ready and needs to be tested."
color: "cccccc"

- name: "state/backlog"
description: "This issue is part of the backlog"
color: "eeeeee"

- name: "state/planned"
description: "This issue is planned to be worked on in an upcoming release."
color: "eeeeee"

- name: "state/not-reproducible"
description: "Unable to reproduce this issue."
color: "eeeeee"

- name: "state/wont-fix"
description: "Issue has been closed and won't be fix/implemented."
color: "eeeeee"

# DEPRECATED
- name: "state/ref"
description: "This issue is referenced in our internal tooling"
color: "c9510c"
Expand All @@ -133,3 +182,7 @@
- name: "ci/skip-changelog"
description: "Don't include this PR in the changelog"
color: "c30664"

- name: "cd/preview"
description: "Deploy preview branch"
color: "d77e96"
42 changes: 42 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# yamllint disable rule:truthy rule:truthy rule:line-length
name: 'Chromatic Publish'
on:
push:
branches:
- develop
paths:
- 'frontend/packages/ui/**'

permissions:
contents: read

jobs:
chromatic:
defaults:
run:
working-directory: ./frontend/packages/ui
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0 # In order for Chromatic to correctly determine baseline commits, tot access the full Git history graph.
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies
run: npm install
- name: Run Chromatic
id: chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: ./frontend/packages/ui
- name: Outputs Storybook URL
run: |
echo "Storybook URL: ${{ steps.chromatic.outputs.storybookUrl }}"
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
INFRAHUB_IMAGE_VER: "local"
PYTEST_XDIST_WORKER_COUNT: 4
INFRAHUB_TEST_IN_DOCKER: 1
VALE_VERSION: "3.0.7"
VALE_VERSION: "3.7.1"
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
METRICS_ENDPOINT: ${{ secrets.METRICS_ENDPOINT }}

Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
- name: "Check out repository code"
uses: "actions/checkout@v4"
- name: "Setup environment"
run: "pip install ruff==0.4.6"
run: "pip install ruff==0.5.0"
- name: "Linting: ruff check"
run: "ruff check ."
- name: "Linting: ruff format"
Expand Down Expand Up @@ -604,7 +604,8 @@ jobs:
env:
VALE_VERSION: ${{ env.VALE_VERSION }}
- name: "Validate documentation style"
run: "./vale ."
run: ./vale $(find . -type f \( -name "*.mdx" -o -name "*.md" \) -not -path "./docs/node_modules/*")

# ------------------------------------------ E2E Tests ------------------------------------------
E2E-testing-playwright:
defaults:
Expand Down Expand Up @@ -842,7 +843,7 @@ jobs:
- name: Update PATH
run: "echo ~/.cargo/bin >> $GITHUB_PATH"
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: "poetry run pytest -v backend/tests/benchmark/ --codspeed"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.6
rev: v0.5.0
hooks:
# Run the linter.
- id: ruff
Expand Down
1 change: 1 addition & 0 deletions .vale/styles/Infrahub/branded-terms-case-swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ swap:
(?i:[^/]Graphql): GraphQL
infrahub(?:\s|$): Infrahub
(?i:Openconfig): OpenConfig
opsmill(?:\s|$): OpsMill
12 changes: 12 additions & 0 deletions .vale/styles/Infrahub/sentence-case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,52 @@ exceptions:
- Ansible
- API
- Attributes
- AWS S3
- Beta
- BGP
- CA certificates
- CI
- Codespaces
- CoreArtifactTarget
- CoreRepository
- CoreGroup
- Docker Compose
- E2E
- Generics
- Git
- GitHub
- GitHub Codespaces
- GitLab
- GitPod
- GraphQL
- GraphQLQuery
- include_in_menu & menu_placement
- Helm
- High Availability
- Human Friendly Identifier
- Infrahub
- infrahubctl
- IPHost
- IP
- IPAM
- IPNetwork
- IP Fabric
- JavaScript
- JetStream
- Jinja
- Jinja2
- Namespace
- NATS
- Node
- OpsMill
- Pydantic
- Python
- RabbitMQ
- REST
- RFile
- SDK
- TLS
- Tony Stark
- TransformPython
- Vale
- VS Code
Expand Down
1 change: 1 addition & 0 deletions .vale/styles/Infrahub/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ message: "Did you really mean '%s'?"
level: error
filters:
- '[pP]y.*\b'
- '\bimport_.*\b' # New filter to ignore variables starting with 'import_'
ignore: spelling-exceptions.txt
19 changes: 15 additions & 4 deletions .vale/styles/spelling-exceptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ config
Config
content_type
convert_query_response
CoreRepository
coroutine
cypher
Dagster
datastore
default_branch
default_filter
deserialized
dev
devcontainer
direnv
display_labels
docker
dockerfile
docusaurus
Expand All @@ -41,20 +43,24 @@ graphiql
graphql
greymatter
hfid
Human Friendly Identifier
hostname
httpx
human_friendly_id
idempotency
include_in_menu
Infrahub
Infrahub's
infrahubctl
IP
IPAddress
IPHost
IPNetwork
IPAM
is_empty
is_ip_within
is_not_empty
isort
jinja
Jotai
json
JSONSchema
kbps
Loopbacks
Expand All @@ -75,6 +81,8 @@ npm
o'brian
openconfig
opentelemetry
order_by
Prefetch
PyPI
query_peers
rebase
Expand All @@ -90,8 +98,11 @@ template_path
toml
Towncrier
uncheck
uniqueness_constraints
validator
upsert
Upserting
upserting
validators
Version Control
Vitest
Expand Down
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,55 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang

<!-- towncrier release notes start -->

## [0.16.0](https://github.com/opsmill/infrahub/tree/v0.16.0) - 2024-09-11

### Removed

- Removed isolated branch information from schema topic in the documentation. ([#3968](https://github.com/opsmill/infrahub/issues/3968))

### Added

- Allow adding multiple profiles to an object in the UI. ([#3061](https://github.com/opsmill/infrahub/issues/3061))
- Added "disabled" attribute to accounts to allow more granular user management. ([#3505](https://github.com/opsmill/infrahub/issues/3505))
- Added capabilities to manage API tokens in the Infrahub UI. ([#3527](https://github.com/opsmill/infrahub/issues/3527))
- Added filtering and search to IPAM view. ([#3740](https://github.com/opsmill/infrahub/issues/3740))
- Add number of prefixes to IPAM tree view. ([#3741](https://github.com/opsmill/infrahub/issues/3741))
- Allow navigation to related node in list view. ([#3889](https://github.com/opsmill/infrahub/issues/3889))
- Add support to search a node by human friendly ID within a GraphQL query. ([#3908](https://github.com/opsmill/infrahub/issues/3908))
- Added DB migrations for objects changed to Generic type in 0.16. ([#3915](https://github.com/opsmill/infrahub/issues/3915))
- Add clickable items in the Proposed Change list view. ([#3990](https://github.com/opsmill/infrahub/issues/3990))
- Added the ability to filter out Infrahub internal groups. ([#4027](https://github.com/opsmill/infrahub/issues/4027))
- Add action button to Repository objects. ([#4066](https://github.com/opsmill/infrahub/issues/4066))
- Added documentation for creating custom Infrahub Docker images. ([#4077](https://github.com/opsmill/infrahub/issues/4077))
- Add support for numbers bigger or smaller than signed integers. ([#4179](https://github.com/opsmill/infrahub/issues/4179))

### Changed

- Move GraphQL queries to .infrahub.yml for Repository imports. ([#1938](https://github.com/opsmill/infrahub/issues/1938))
- Improve UI of Git repository form. ([#3893](https://github.com/opsmill/infrahub/issues/3893))
- Consistency improvements in Repository interactions. ([#4068](https://github.com/opsmill/infrahub/issues/4068))
- Enhancements to Repository status reporting. ([#4069](https://github.com/opsmill/infrahub/issues/4069))
- Simplified the Repository view to only show crucial information. ([#4071](https://github.com/opsmill/infrahub/issues/4071))
- Increased visibility during Git sync. ([#4072](https://github.com/opsmill/infrahub/issues/4072))

### Fixed

- Add ability to import repositories with default branch other than 'main'. ([#3435](https://github.com/opsmill/infrahub/issues/3435))
- SchemasLoadAPI should not inherited from SchemaRoot but from BaseModel. ([#3821](https://github.com/opsmill/infrahub/issues/3821))
- Resolve inconsistencies when loading same schema twice. ([#3892](https://github.com/opsmill/infrahub/issues/3892))
- HFID of a node is not properly set by `prefetch_relationship` in Python SDK. ([#3900](https://github.com/opsmill/infrahub/issues/3900))
- Comment input is not cleared upon submission of Proposed Change form. ([#3942](https://github.com/opsmill/infrahub/issues/3942))
- Can not assign Profile when editing Node in the web UI. ([#3999](https://github.com/opsmill/infrahub/issues/3999))
- Allow users to add a new generic to an existing node. ([#4051](https://github.com/opsmill/infrahub/issues/4051))
- Allow users to run artifacts and generators on nodes without name attribute ([#4062](https://github.com/opsmill/infrahub/issues/4062))
- Allow bare Git URL and automatically add `.git`. ([#4070](https://github.com/opsmill/infrahub/issues/4070))
- Schema diff view not functioning in branch detail page. ([#4093](https://github.com/opsmill/infrahub/issues/4093))
- Removed erroneous approval button on Diff view. ([#4094](https://github.com/opsmill/infrahub/issues/4094))
- Edit node form displays empty input field for mandatory relationship of cardinality many. ([#4102](https://github.com/opsmill/infrahub/issues/4102))
- GraphQL query does not appear on Detail page. ([#4105](https://github.com/opsmill/infrahub/issues/4105))
- Do not allow '/' character in repository name to avoid sync failure. ([#4120](https://github.com/opsmill/infrahub/issues/4120))
- Can't close a comment thread on an Artifact. ([#4189](https://github.com/opsmill/infrahub/issues/4189))

## [0.15.3](https://github.com/opsmill/infrahub/tree/v0.15.3) - 2024-08-13

### Added
Expand Down
Loading

0 comments on commit e691412

Please sign in to comment.