-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(profiles): profiles listing was returning the unfiltered list (#497)
- Loading branch information
Showing
3 changed files
with
80 additions
and
7 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
43 changes: 43 additions & 0 deletions
43
tests/fixtures/profiles/good_profile_rules_never_deployed.json
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,43 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/Guts/qgis-deployment-cli/main/docs/schemas/profile/qgis_profile.json", | ||
"name": "QDT excluded by rules", | ||
"folder_name": "qdt_never_deployed", | ||
"description": "QGIS profile made to demonstrate how rules engine can exclude a profile from deployment.", | ||
"author": "Julien Moura", | ||
"email": "[email protected]", | ||
"qgisMinimumVersion": "3.34", | ||
"qgisMaximumVersion": "3.99", | ||
"version": "1.3.0", | ||
"plugins": [ | ||
{ | ||
"name": "QGIS Resource Sharing ", | ||
"folder_name": "qgis_resource_sharing", | ||
"location": "remote", | ||
"official_repository": true, | ||
"plugin_id": 2733, | ||
"version": "1.0.0" | ||
}, | ||
{ | ||
"name": "QTribu", | ||
"folder_name": "qtribu", | ||
"official_repository": true, | ||
"plugin_id": 2733, | ||
"version": "0.16.0" | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"name": "To be not deployed", | ||
"description": "Rules defining that the profile is deployed only during the 1985 year.", | ||
"conditions": { | ||
"all": [ | ||
{ | ||
"path": "$.date.current_year", | ||
"value": 1985, | ||
"operator": "equal" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
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