Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stable to Develop Mergeback #4795

Merged
merged 204 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
80bba63
Remove stable parameter from installation guide (#4608)
BaptisteGi Oct 11, 2024
1fb02d1
fixes python sdk store guide
wvandeun Oct 15, 2024
1129d9a
Merge pull request #4629 from opsmill/wvd-20241015-docs-fix-sdk-custo…
wvandeun Oct 15, 2024
c6eed12
fixes python sdk store guide
wvandeun Oct 15, 2024
ca5bd95
Merge pull request #4637 from opsmill/wvd-20241015-docs-fix-sdk-custo…
wvandeun Oct 16, 2024
ee6c362
[FIX] Added context on relationship add mutation (#4621)
bilalabbad Oct 12, 2024
ba7535e
added changelog
bilalabbad Oct 17, 2024
d0dcf22
Merge pull request #4651 from opsmill/bab-cherry-pick-4621
wvandeun Oct 17, 2024
8e61647
bump version to v0.16.4
wvandeun Oct 17, 2024
d64c89a
added changelog
wvandeun Oct 17, 2024
8ae679e
add release notes to the documentation
wvandeun Oct 17, 2024
82daaca
Merge pull request #4653 from opsmill/wvd-20241017-release
wvandeun Oct 17, 2024
b64cd47
bring reo.dev into stable docs (#4660)
lykinsbd Oct 18, 2024
71aa00d
Fixed validation for regex list type attributes
ogenstad Oct 22, 2024
b76afb8
Create all allowed global permissions by default (#4679)
gmazoyer Oct 22, 2024
ca35f54
Remove unused task GitBranchCreate
dgarros Oct 22, 2024
890bb0d
address circular imports around GraphQLSchemaManager (#4673)
ajtmccarty Oct 22, 2024
8165cc8
Merge pull request #4680 from opsmill/pog-list-attribute-regex-IFC-170
ogenstad Oct 22, 2024
a1598e5
Animate popover open/close
bilalabbad Oct 22, 2024
1d86a08
Fix service fixture initialization for test_merged
dgarros Oct 22, 2024
63462d1
Merge pull request #4681 from opsmill/dga-20241020-clean-gitcreate
dgarros Oct 22, 2024
d289232
Fix number pool allocation report for deleted nodes
ogenstad Oct 21, 2024
90e87a4
Fix Ruff UP007 for tests and utils
ogenstad Oct 22, 2024
e1b2de8
Add / correct typehints to query.attribute
ogenstad Oct 22, 2024
a72c38a
Merge pull request #4686 from opsmill/pog-up007
ogenstad Oct 23, 2024
6928618
Merge pull request #4687 from opsmill/pog-mypy-query-attribute
ogenstad Oct 23, 2024
cf72c6a
Merge pull request #4676 from opsmill/pog-numberpool-reporting-IFC-773
ogenstad Oct 23, 2024
f0cfc64
Permissions updates - IFC-788 / IFC-794 / IFC-798 / IFC-799 / IFC-800…
pa-lem Oct 23, 2024
e97e8f7
fix(ci): run CI for release branches
fatih-acar Oct 23, 2024
29e35aa
Merge pull request #4684 from opsmill/dga-20241022-fix-test-merged
LucasG0 Oct 23, 2024
49d44f8
Return friendly error for invalid uniqueness_constraint
ogenstad Oct 23, 2024
033eab6
Migrate TriggerArtifactDefinitionGenerate to prefect
LucasG0 Oct 22, 2024
65a025f
Mock WorkflowLocalExecution.submit_workflow
LucasG0 Oct 23, 2024
29d713d
Merge pull request #4690 from opsmill/pog-schema-constraint-IFC-795
ogenstad Oct 23, 2024
243d3e7
Add clear message if view is not authorized + refresh permissions on …
pa-lem Oct 23, 2024
1205f8f
Set services.service.client in TestProposedChangeReconcile
LucasG0 Oct 23, 2024
f2290bf
Added search on role management tables (#4698)
bilalabbad Oct 23, 2024
a64ecd8
Merge pull request #4685 from opsmill/lgu-migrate-trigger-artifacts-def
LucasG0 Oct 23, 2024
ce8b982
Migrate RequestArtifactGenerate to prefect
LucasG0 Oct 23, 2024
202fc86
Add generated docs'
LucasG0 Oct 23, 2024
352495f
Merge pull request #4699 from opsmill/lgu-migrate-artifact-request-ge…
LucasG0 Oct 23, 2024
2a3e2d0
Removing ignored rule as there are no violations left
ogenstad Oct 23, 2024
e5e93a3
Fix Yoda condition rule for ruff
ogenstad Oct 23, 2024
a2f6c41
Convert branch rebase mutation to a workflow
dgarros Oct 24, 2024
4ab4ea3
Merge pull request #4689 from opsmill/dga-20241023-task-branch-rebase2
dgarros Oct 24, 2024
5ccbffc
Disable test_create_proposed_change temporarily
dgarros Oct 24, 2024
7557785
Merge pull request #4702 from opsmill/pog-enable-e721
ogenstad Oct 24, 2024
b66afb8
Merge pull request #4707 from opsmill/dga-20241024-disable-test
dgarros Oct 24, 2024
d63f957
Add tags for deployment and run in prefect
dgarros Oct 24, 2024
a4e0e61
properly delete inherited attribute and relationship on Node
dgarros Oct 23, 2024
17ae0a1
add linter
dgarros Oct 23, 2024
b98754e
Merge pull request #4703 from opsmill/pog-fix-yoda-condition
ogenstad Oct 24, 2024
f0aa6c5
Add final uuid to order_by clause
ogenstad Oct 23, 2024
aee2a7a
Fixes for PEP 484 prohibits implicit `Optional`
ogenstad Oct 24, 2024
d057951
Add note about GraphQL schema endpoint
ogenstad Oct 24, 2024
4041526
Merge pull request #4708 from opsmill/pog-pep-484
ogenstad Oct 24, 2024
721592a
Update resource manager documentation (#4609) (#4695)
BaptisteGi Oct 24, 2024
728f4d7
Merge pull request #4694 from opsmill/dga-20241023-prefect-tags
dgarros Oct 24, 2024
5cdc594
Merge pull request #4704 from opsmill/pog-graphql-pagination-IFC-836
ogenstad Oct 24, 2024
a588743
Add towncrier item for #4700
ogenstad Oct 24, 2024
42128b7
Update Python SDK to latest commit in infrahub-sdk-python@develop
dgarros Oct 24, 2024
b21f019
[FIX] Highlight tab in role management when there is query params in url
bilalabbad Oct 24, 2024
a4ebab8
TestInfrahubApp.client fixture set services.service.client for local …
LucasG0 Oct 24, 2024
865004a
Merge pull request #4701 from opsmill/dga-20241023-fix-4301
dgarros Oct 24, 2024
05e4291
Merge pull request #4711 from opsmill/dga-20241024-update-sdk
dgarros Oct 24, 2024
39f6cd1
Updates relationships display in role management - IFC-835 (#4697)
pa-lem Oct 24, 2024
2d3c9af
Override prefect logs
ogenstad Oct 24, 2024
80bda27
Merge pull request #4710 from opsmill/pog-towncry-4700
ogenstad Oct 24, 2024
b05f70e
only add status=deleted edges if relationship crosses branches (#4688)
ajtmccarty Oct 24, 2024
c459dd3
updated chevron orientation from down to right in sidebar sub menu
bilalabbad Oct 24, 2024
9fa3c4e
Set namespace on node select for object permissions - IFC-802 (#4718)
pa-lem Oct 24, 2024
9064645
Docs and screenshots updates for 1.0 architecture changes (#4721)
petercrocker Oct 24, 2024
8d6d51e
adds JWT token authentication to SDK client guide
wvandeun Oct 24, 2024
3f5dec2
IFC-838 update merge logic to handle AttributeValues of unexpected type
ajtmccarty Oct 24, 2024
cbcd719
Merge pull request #4712 from opsmill/lgu-fix-test-proposed-change
LucasG0 Oct 24, 2024
df4ebee
Migrate RequestArtifactDefinitionGenerate to prefect
LucasG0 Oct 23, 2024
2306b73
Migrate RequestGeneratorRun to prefect
LucasG0 Oct 24, 2024
6be4dc4
Merge pull request #4728 from opsmill/ajtm-10242024-merge-default-val…
dgarros Oct 25, 2024
a95a1d9
Merge pull request #4720 from opsmill/lgu-migrate-request-generator-run
dgarros Oct 25, 2024
5aa626f
Merge pull request #4725 from opsmill/wvd-20241024-fix-sdk-client-guide
dgarros Oct 25, 2024
bba5862
Merge branch 'release-1.0' into lgu-migrate-request-artifact-def-gen
dgarros Oct 25, 2024
3d2a1a2
Merge pull request #4709 from opsmill/pog-graphql-schema-url-node
dgarros Oct 25, 2024
576d288
Merge pull request #4713 from opsmill/lgu-migrate-request-artifact-de…
dgarros Oct 25, 2024
4df5087
fix(helm): load menu during demo data job
fatih-acar Oct 24, 2024
e1cf5b6
fix(models): wrong namespace for manufacturer
fatih-acar Oct 24, 2024
55bfe16
Finalize the migration of the telemetry task to prefect
dgarros Oct 25, 2024
e1dc994
Convert branch merge mutation to a workflow
dgarros Oct 25, 2024
5c12a19
Typo fix.mdx
keanufuchs Oct 25, 2024
f94413d
Add description to permission schema (#4705)
gmazoyer Oct 25, 2024
c884c8d
Merge pull request #4717 from opsmill/pog-logging-battles
ogenstad Oct 25, 2024
0da03be
Merge pull request #4729 from opsmill/dga-20241025-task-merge
dgarros Oct 25, 2024
59f6700
Merge pull request #4730 from opsmill/dga-20241025-ifc-814
dgarros Oct 25, 2024
0e78474
Add support for additional context to the metrics for query execution…
dgarros Oct 25, 2024
e18acb7
Migrate RequestDiffUpdate to prefect
LucasG0 Oct 25, 2024
cc53b44
Merge pull request #4662 from opsmill/dga-20241018-metric-context
dgarros Oct 25, 2024
65414a5
Migrate SendWebhook to prefect
LucasG0 Oct 25, 2024
0a875a4
Update menu generator to better display existing schema
dgarros Oct 25, 2024
9543117
add SSO documentation to authentication topic
wvandeun Oct 24, 2024
c4690c8
update SSO documentation guide
wvandeun Oct 24, 2024
842689a
Merge pull request #4724 from opsmill/wvd-20241024-sso-docs
wvandeun Oct 25, 2024
02fda99
Run git sync every minute
ogenstad Oct 25, 2024
84376d4
Merge pull request #4734 from opsmill/lgu-migrate-send-webhook-event
LucasG0 Oct 25, 2024
604f8e9
Migrate RequestDiffRefresh to prefect
LucasG0 Oct 25, 2024
52933d7
In schema viewer, updated open list view check to be menu agnostic
bilalabbad Oct 25, 2024
ac3bba7
Merge pull request #4733 from opsmill/lgu-migrate-request-diff-update
LucasG0 Oct 25, 2024
fad8776
Added button to filter auto generated groups is items view (#4732)
bilalabbad Oct 25, 2024
9af7a50
exclude some list view from being accessible from schema visualization
bilalabbad Oct 25, 2024
374e008
Merge pull request #4735 from opsmill/pog-git-sync-interval
ogenstad Oct 25, 2024
998915e
Added resizable panel + use it on hierarchical view (#4736)
bilalabbad Oct 25, 2024
94439cf
Make permission report branch relative (#4722)
gmazoyer Oct 25, 2024
78b9112
Merge pull request #4731 from keanufuchs/patch-1
dgarros Oct 25, 2024
17aded9
Biome: Disallow the use of console.log (#4737)
bilalabbad Oct 25, 2024
81421bf
Diagram updates for 1.0 architecture changes (#4723)
petercrocker Oct 25, 2024
e50d59f
fix test
bilalabbad Oct 25, 2024
50d5806
Refactor AttributeAddQuery to support node with an attribute of the s…
dgarros Oct 25, 2024
85e8a80
fix reset form on cancel update (#4738)
pa-lem Oct 25, 2024
a328399
Merge pull request #4716 from opsmill/dga-20241024-ifc-834
dgarros Oct 25, 2024
2fbadce
Merge pull request #4742 from opsmill/dga-20241025-fix-4727
dgarros Oct 25, 2024
d7784f5
If branch not found, show option to create new branch from input (#4741)
bilalabbad Oct 25, 2024
fb6cf59
IFC-841 fixes for relationship count constraint validator (#4743)
ajtmccarty Oct 25, 2024
7316f79
IFC-840 fix serialization problem for node name update migration
ajtmccarty Oct 25, 2024
2f0de9e
chore: use Tailwind animate instead of Transition in search anywhere
bilalabbad Oct 25, 2024
677cb08
Removed unused code (#4747)
bilalabbad Oct 25, 2024
5fe5fd8
Added search input in schema visualizer (#4748)
bilalabbad Oct 25, 2024
0b54d9a
Update docker compose for 1.0.0 (#4655)
BeArchiTek Oct 26, 2024
e2ba494
Merge pull request #4746 from opsmill/ajtm-10252024-node-kind-migrati…
dgarros Oct 26, 2024
6515b66
Revert change to PREFECT_API_URL
dgarros Oct 26, 2024
6c72b1d
Update docker-compose.yml
BeArchiTek Oct 26, 2024
9f059b0
Update docker-compose.yml
BeArchiTek Oct 26, 2024
d3daa36
Merge pull request #4751 from opsmill/dga-20241026-fix-ci
dgarros Oct 26, 2024
57f3889
IFC-759 Add support for anonymous user role (#4692)
gmazoyer Oct 26, 2024
4e08431
Upgrade ruff=0.7.1
ogenstad Oct 26, 2024
43ae563
Merge pull request #4750 from opsmill/pog-upgrade-ruff-071
ogenstad Oct 26, 2024
0fc4bb0
add demo.load-infra-menu invoke task
wvandeun Oct 25, 2024
050cd77
load base_menu when loading the demo schema
wvandeun Oct 25, 2024
d0287d0
add menu guide to the documentation
wvandeun Oct 25, 2024
18bf7a9
add on_delete behaviour of Component relationships to schema topic
wvandeun Oct 27, 2024
dd294e7
add menu definition file reference to the documentation
wvandeun Oct 25, 2024
d02908a
add vale spelling exceptions
wvandeun Oct 25, 2024
d1f7c55
run E2E-testing-invoke-demo-start CI job for develop branch changes
wvandeun Oct 27, 2024
c963da8
Avoid using WHERE $node_kind IN LABELS(n) in query, instead use $node…
dgarros Oct 27, 2024
e3507d1
Merge pull request #4754 from opsmill/wvd-20241027-add-component-rela…
wvandeun Oct 27, 2024
3ac4cde
load menu definition file with dev.load-infra-schema invoke task
wvandeun Oct 27, 2024
1bef840
Merge pull request #4745 from opsmill/wvd-20241025-new-menu
wvandeun Oct 27, 2024
4c2f3bc
Avoid using | to match multiple labels
dgarros Oct 28, 2024
612b56e
Support SSO provider config from infrahub.toml
ogenstad Oct 26, 2024
7091620
Slight change to the load function for settings
ogenstad Oct 28, 2024
99fb262
typo: form -> from on form types
bilalabbad Oct 28, 2024
9baf49b
Update SDK to latest develop commit
ogenstad Oct 28, 2024
9c85693
Expand on meaning and examples of Relationship Kinds (#4631)
BeArchiTek Oct 28, 2024
56dfb3c
Merge pull request #4749 from opsmill/pog-sso-infrahub-toml
ogenstad Oct 28, 2024
b286c9f
Merge pull request #4760 from opsmill/pog-sdk-develop
ogenstad Oct 28, 2024
d61568f
Merge pull request #4757 from opsmill/pog-load-settings
ogenstad Oct 28, 2024
9c88eeb
Retrieve attributes permissions in form to disable fields (#4759)
pa-lem Oct 28, 2024
3002117
Merge pull request #4752 from opsmill/dga-20241026-query
dgarros Oct 28, 2024
6b5d5c6
Remove scope default config from docs
ogenstad Oct 29, 2024
023f81c
Account and Permissions Documentation - IFC-777 (#4726)
BeArchiTek Oct 29, 2024
7167775
Merge pull request #4768 from opsmill/pog-sso-scopes
ogenstad Oct 29, 2024
ab65ad2
fix groups guide in documentation
wvandeun Oct 29, 2024
1ec0d08
use hfid in repository guide to update repository ref
wvandeun Oct 29, 2024
b7b1fd1
use HFID in checks guide
wvandeun Oct 29, 2024
15b4de3
Regenerate SDK docs
ogenstad Oct 29, 2024
9ceb4f6
Merge pull request #4770 from opsmill/pog-sdk-docs-generate
ogenstad Oct 29, 2024
2d14964
improve graphql topic in documentation
wvandeun Oct 29, 2024
65dc254
updates for deleting attrs and rels from schema (#4765)
ajtmccarty Oct 29, 2024
e02a3d3
add more validation to branch rebase and merge (#4667)
ajtmccarty Oct 29, 2024
c319d71
add validation for branch merge
ajtmccarty Oct 29, 2024
60b0ac3
Merge pull request #4772 from opsmill/wvd-20241029-doc-updates
wvandeun Oct 29, 2024
50b551e
Refresh menu on user change + redirect anonymous users on role manage…
pa-lem Oct 29, 2024
7125fdb
Sort hashes of signature fields
ogenstad Oct 29, 2024
bb2633a
move rebase task into global graph lock
ajtmccarty Oct 29, 2024
a2433f5
add merge conflict selection bugfix with tests
ajtmccarty Oct 29, 2024
0751580
add changelog
ajtmccarty Oct 29, 2024
3b5b366
Reload menu when switching branch (#4776)
bilalabbad Oct 29, 2024
7e36ecd
move pre-merge validation to mutation
ajtmccarty Oct 30, 2024
7fa712e
unbound variable fix
ajtmccarty Oct 30, 2024
b5cc435
IFC-758 Add roles, groups and permissions in demo data (#4587)
gmazoyer Oct 30, 2024
e007bed
add order_weight to attributes/relationships in demo schema
wvandeun Oct 30, 2024
638df73
Merge pull request #4767 from opsmill/ajtm-10282024-validate-merge
dgarros Oct 30, 2024
385513e
Merge pull request #4769 from opsmill/pog-sort-hashes
ogenstad Oct 30, 2024
8bb787c
Initialize transform using `__init__()`
ogenstad Oct 30, 2024
5012223
adapt e2e object-filters test
wvandeun Oct 30, 2024
9f7300a
Merge pull request #4782 from opsmill/pog-avoid-using-transform.init
ogenstad Oct 30, 2024
fdbf0fa
Create a sub menu for all elements of the schema that are placed at t…
dgarros Oct 30, 2024
0cd7597
update on Menu accordion UX/UI (#4774)
bilalabbad Oct 30, 2024
4318567
restructure device management menu
wvandeun Oct 30, 2024
6018684
Merge pull request #4787 from opsmill/dga-20241030-fix-menu
dgarros Oct 30, 2024
5e2ed0f
Merge pull request #4779 from opsmill/wvd-20241030-use-order-weight-i…
wvandeun Oct 30, 2024
ad20cbd
Instrument Worker to make it easier to override some of it
dgarros Oct 30, 2024
f9a2e0e
Merge pull request #4783 from opsmill/dga-20241031-worker
dgarros Oct 30, 2024
71b7e4c
update e2e test
bilalabbad Oct 30, 2024
6868028
fix test
bilalabbad Oct 30, 2024
4a46e5d
fixed race condition on test
bilalabbad Oct 30, 2024
992ce06
Merge pull request #4786 from opsmill/wvd-20241030-restructure-device…
wvandeun Oct 30, 2024
f9b4139
edited creating a schema page (#4785)
vsurresh Oct 30, 2024
3539bf1
v1.0.0 release prep (#4764)
lykinsbd Oct 30, 2024
7659247
add unit test to check SchemaAttr and Rel deleted w/ SchemaNode
ajtmccarty Oct 31, 2024
3f9400a
fix and test for is_default on enum attrs
ajtmccarty Oct 31, 2024
6072de7
update userworkflow tests for new diff logic
ajtmccarty Oct 31, 2024
45113dc
Merge branch 'stable' into bdl-20241030-stable-merge-conflicts
lykinsbd Oct 31, 2024
a719476
Merge pull request #4794 from opsmill/bdl-20241030-stable-merge-confl…
lykinsbd Oct 31, 2024
59dc9fa
Merge pull request #4792 from opsmill/release-1.0
lykinsbd Oct 31, 2024
716bcb2
chore: update docker-compose and helm chart
opsmill-bot Oct 31, 2024
2e89e34
Merge pull request #4793 from opsmill/ajtm-10302024-diff-test-cleanup
dgarros Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .devcontainer/welcome
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
--------------------------------------------------------------------
********************************************************************

👋👋👋 Welcome to the Infrahub Demo Codespace environment 👋👋👋
👋👋👋 Welcome to the Infrahub Demo Codespaces environment 👋👋👋

The Infrahub API server, Git agents and dependent services have been
The Infrahub API server, Task workers and dependent services have been
started. Infrahub can be accessed by opening the ports tab, clicking
on the globe icon in the Forwarded Address column of port 8000.

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches:
- develop
- stable
- release-*

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -116,7 +117,7 @@ jobs:
with:
submodules: true
- name: "Setup environment"
run: "pip install ruff==0.6.6"
run: "pip install ruff==0.7.1"
- name: "Linting: ruff check"
run: "ruff check . --exclude python_sdk"
- name: "Linting: ruff format"
Expand Down Expand Up @@ -734,7 +735,8 @@ jobs:
if: |
always() && !cancelled() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
!contains(needs.*.result, 'cancelled') &&
github.base_ref == 'develop'
runs-on:
group: huge-runners
steps:
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.6.6
rev: v0.7.1
hooks:
# Run the linter.
- id: ruff
Expand Down
3 changes: 3 additions & 0 deletions .vale/styles/Infrahub/sentence-case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ exceptions:
- JetStream
- Jinja
- Jinja2
- JWT
- Namespace
- NATS
- Node
Expand All @@ -63,9 +64,11 @@ exceptions:
- RFile
- SDK
- Single sign-on
- SSO
- TLS
- Tony Stark
- TransformPython
- UI
- Vale
- VS Code
- VS Code extensions
Expand Down
3 changes: 3 additions & 0 deletions .vale/styles/spelling-exceptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ APIs
artifact_definitions
artifact_name
async
Authentik
boolean
check_definitions
class_name
Expand Down Expand Up @@ -81,6 +82,7 @@ Newsfragment
Nornir
npm
o'brian
order_weight
openconfig
opentelemetry
order_by
Expand All @@ -95,6 +97,7 @@ REST
ressources
schema_mapping
sdk
subcommand
subnet
template_path
toml
Expand Down
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,64 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang

<!-- towncrier release notes start -->

## [1.0.0](https://github.com/opsmill/infrahub/tree/v1.0.0) - 2024-10-30

### Removed

- Remove previously deprecated GET API endpoint "/api/schema/" ([#3884](https://github.com/opsmill/infrahub/issues/3884))

### Deprecated

- Marked CoreAccount.role as deprecated
Due to the new permissions framework the account roles "admin" / "read-only" / "read-write" are deprecated and will be removed in Infrahub 1.1

### Added

- Reworked branch selector:
- Redesigned the UI
- Added filter for branch
- Improved accessibility & keyboard navigation
- Improved UX on new branch form
- Added quick link to view all branches
- Add support to sign in with OAuth2 and Open ID Connect (OIDC) ([#1568](https://github.com/opsmill/infrahub/issues/1568))
- Add internal HTTP adapter to allow for generic access from Infrahub ([#3302](https://github.com/opsmill/infrahub/issues/3302))
- Add support to search a node by human friendly ID within a GraphQL query ([#3908](https://github.com/opsmill/infrahub/issues/3908))
- Added link to our Discord server in the account menu
- Added permissions framework for global and object kind level permissions

In this first iteration the object permissions are applied to nodes as a whole, in upcoming versions it will be possible to define attribute level permissions as well.
- New permissions system in UI:
- Implemented CRUD views for managing accounts, groups, roles, and permissions
- Updated all components to support new permission system
- Added dynamic message display according to user access levels

### Fixed

- The `infrahub-git` agent service has been renamed to `task-worker` in docker compose and the command to start it has been updated as well ([#1075](https://github.com/opsmill/infrahub/issues/1075))
- Add ability to import repositories with default branch other than 'main' ([#3435](https://github.com/opsmill/infrahub/issues/3435))
- Disable approve/merge/close buttons for merged Proposed Changes ([#3495](https://github.com/opsmill/infrahub/issues/3495))
- Fixed regex validation for List type attributes ([#3929](https://github.com/opsmill/infrahub/issues/3929))
- Allow users to run artifacts and generators on nodes without name attribute ([#4062](https://github.com/opsmill/infrahub/issues/4062))
- In the schema, properly delete inherited attribute and relationship on Node when the original attribute or relationship are being deleted on the Generic ([#4301](https://github.com/opsmill/infrahub/issues/4301))
- "Retry All" button for checks is bigger ([#4315](https://github.com/opsmill/infrahub/issues/4315))
- Add a size restriction on common attribute kinds. Only TextArea and JSON support large values ([#4432](https://github.com/opsmill/infrahub/issues/4432))
- The HFID of a related node is properly returned via GraphQL in all scenarios ([#4482](https://github.com/opsmill/infrahub/issues/4482))
- Add full validation to BranchMerge and BranchRebase mutations ([#4595](https://github.com/opsmill/infrahub/issues/4595))
- Report user-friendly error for invalid uniqueness_constraints when loading schemas ([#4677](https://github.com/opsmill/infrahub/issues/4677))
- Fixed pagination query for nodes with order_by clause using non unique attributes ([#4700](https://github.com/opsmill/infrahub/issues/4700))
- Fixed schema migration when an attribute previously present on a node is added back ([#4727](https://github.com/opsmill/infrahub/issues/4727))
- Add order_weight property to multiple attributes and relationships in the demo schema to improve how some models are displayed in the list views
- Changed the Python SDK connection timeout to 60s
- Fix metric missing the query name in Prometheus data
- Fixes an issue where docker compose would output ANSI control characters that don't support it
- Prevent temporary directories generated by Docusaurus to be imported by Docker

## [0.16.4](https://github.com/opsmill/infrahub/tree/v0.16.4) - 2024-10-17

### Fixed

- Fixed an issue on the UI where a new relationship was being added to the main branch instead of the current branch. ([#4598](https://github.com/opsmill/infrahub/issues/4598))

## [0.16.3](https://github.com/opsmill/infrahub/tree/v0.16.3) - 2024-10-10

### Removed
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ Infrahub from [OpsMill](https://opsmill.com) is taking a new approach to Infrast

## Quick Start

> [!NOTE]
> Infrahub is currently in beta, and the team is actively working towards reaching version 1.0 by the end of the year. The project is committed to ensuring data safety and providing a migration path for future releases. See our [FAQ](https://docs.infrahub.app/faq/) for more information.
Leveraging [GitHub Codespaces](https://docs.github.com/en/codespaces/overview), it's possible to start a new instance of Infrahub in the Cloud in minutes:

| No Data | Demo Data |
Expand Down
18 changes: 7 additions & 11 deletions backend/infrahub/api/artifact.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from __future__ import annotations

from typing import TYPE_CHECKING

from fastapi import APIRouter, Body, Depends, Request, Response
from pydantic import BaseModel, Field

Expand All @@ -11,11 +9,9 @@
from infrahub.core.protocols import CoreArtifactDefinition
from infrahub.database import InfrahubDatabase # noqa: TCH001
from infrahub.exceptions import NodeNotFoundError
from infrahub.git.models import RequestArtifactDefinitionGenerate
from infrahub.log import get_logger
from infrahub.message_bus import messages

if TYPE_CHECKING:
from infrahub.services import InfrahubServices
from infrahub.workflows.catalogue import REQUEST_ARTIFACT_DEFINITION_GENERATE

log = get_logger()
router = APIRouter(prefix="/artifact")
Expand Down Expand Up @@ -68,9 +64,9 @@ async def generate_artifact(
branch=branch_params.branch,
)

service: InfrahubServices = request.app.state.service
await service.send(
message=messages.RequestArtifactDefinitionGenerate(
artifact_definition=artifact_definition.id, branch=branch_params.branch.name, limit=payload.nodes
)
service = request.app.state.service
model = RequestArtifactDefinitionGenerate(
artifact_definition=artifact_definition.id, branch=branch_params.branch.name, limit=payload.nodes
)

await service.workflow.submit_workflow(workflow=REQUEST_ARTIFACT_DEFINITION_GENERATE, parameters={"model": model})
9 changes: 3 additions & 6 deletions backend/infrahub/api/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from infrahub.core.branch import Branch # noqa: TCH001
from infrahub.core.protocols import CoreMenuItem
from infrahub.log import get_logger
from infrahub.menu.generator import generate_menu
from infrahub.menu.generator import generate_restricted_menu
from infrahub.menu.models import Menu # noqa: TCH001

if TYPE_CHECKING:
Expand All @@ -29,9 +29,6 @@ async def get_menu(
) -> Menu:
log.info("menu_request", branch=branch.name)

menu_items = await registry.manager.query(
db=db, schema=CoreMenuItem, branch=branch
) # , prefetch_relationships=True)
menu = await generate_menu(db=db, branch=branch, account=account_session, menu_items=menu_items)

menu_items = await registry.manager.query(db=db, schema=CoreMenuItem, branch=branch)
menu = await generate_restricted_menu(db=db, branch=branch, account=account_session, menu_items=menu_items)
return menu.to_rest()
12 changes: 7 additions & 5 deletions backend/infrahub/api/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,8 @@ async def load_schema(
for permission_backend in registry.permission_backends:
if not await permission_backend.has_permission(
db=db,
account_id=account_session.account_id,
account_session=account_session,
permission=GlobalPermission(
id="",
name="",
action=GlobalPermissions.MANAGE_SCHEMA.value,
decision=(
PermissionDecision.ALLOW_DEFAULT
Expand Down Expand Up @@ -333,7 +331,9 @@ async def load_schema(
migrations=result.migrations,
)
migration_error_msgs = await service.workflow.execute_workflow(
workflow=SCHEMA_APPLY_MIGRATION, expected_return=list[str], parameters={"message": apply_migration_data}
workflow=SCHEMA_APPLY_MIGRATION,
expected_return=list[str],
parameters={"message": apply_migration_data},
)

if migration_error_msgs:
Expand Down Expand Up @@ -381,7 +381,9 @@ async def check_schema(
constraints=result.constraints,
)
error_messages = await service.workflow.execute_workflow(
workflow=SCHEMA_VALIDATE_MIGRATION, expected_return=list[str], parameters={"message": validate_migration_data}
workflow=SCHEMA_VALIDATE_MIGRATION,
expected_return=list[str],
parameters={"message": validate_migration_data},
)
if error_messages:
raise SchemaNotValidError(message=",\n".join(error_messages))
Expand Down
8 changes: 7 additions & 1 deletion backend/infrahub/cli/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from infrahub.core.graph.index import node_indexes, rel_indexes
from infrahub.core.graph.schema import GRAPH_SCHEMA
from infrahub.core.initialization import (
create_anonymous_role,
create_default_menu,
create_default_roles,
create_super_administrator_role,
Expand Down Expand Up @@ -304,7 +305,9 @@ async def update_core_schema( # pylint: disable=too-many-statements
migrations=result.migrations,
)
migration_error_msgs = await service.workflow.execute_workflow(
workflow=SCHEMA_APPLY_MIGRATION, expected_return=list[str], parameters={"message": apply_migration_data}
workflow=SCHEMA_APPLY_MIGRATION,
expected_return=list[str],
parameters={"message": apply_migration_data},
)

if migration_error_msgs:
Expand Down Expand Up @@ -429,3 +432,6 @@ async def setup_permissions(db: InfrahubDatabase) -> None:
await create_super_administrators_group(db=db, role=administrator_role, admin_accounts=existing_accounts)

await create_default_roles(db=db)

if config.SETTINGS.main.allow_anonymous_access:
await create_anonymous_role(db=db)
Loading
Loading