Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 12, 2024
2 parents 0b7e345 + d40e93f commit 897a0b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
18 changes: 11 additions & 7 deletions docs/concepts/query/midpoint-query-language/introduction.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ In its simplest form it is a name of object _property_, or names of items and co
=== Filter Name
Item path is followed by filter name or its alias, which specifies which filtering condition should be used.

Following tables summarizes common property filters:

==== Comparison filters

Following tables summarizes common property filters:

[options="header", cols="15,10,30", width=70]
|====
| Name | Alias | Description
Expand Down Expand Up @@ -91,6 +91,8 @@ List of all matching rules is defined in xref:../../matching-rules.adoc[matching

==== String filters

Following table summarizes additional filters that can be applied on string and polystring values.

[options="header", cols="15,40", width=70]
|====
| Name | Description
Expand All @@ -107,11 +109,13 @@ Value is usually a string literal, enclosed in double quotes.
However, value may take various forms.
For example, it may be a path of another item, e.g. in case when the query compares two items.
The value may be also quite complex.
The exact form of the value part of the filter depends on the operator.

The exact syntax can be best described on examples.
The exact form of the value part of the filter depends on the operator and type of the value.

==== Querying values of different types

The exact syntax of queries for values of different types is described in the following table:

.Examples of queries performed on different value types
[options="header", cols="10,30, 60", width=80]
|====
| Type | Query | Note
Expand All @@ -130,11 +134,11 @@ The exact syntax can be best described on examples.

| int
| `extension/height > 170`
| Number values do not need quotes. Only standard comparison filters (=,>, ..) are defined for number types.
| Number values do not need quotes. Only common property filters (=,>, ..) are defined for number types.

| float
| `extension/perfScore > 1.05`
| Number values do not need quotes. Only standard comparison filters (=,>, ..) are defined for number types.
| Number values do not need quotes. Only common property filters (=,>, ..) are defined for number types.

| dateTime
| `metadata/createTimestamp >= "2024-03-01"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1034,13 +1034,11 @@ public void test359UnassignOrangeAccountFromGuybrushAndRapp() throws Exception {
@Test
public void test360AssignCombinedRole() throws Exception {
when("creating user with combined role (mapmaker/landluber)");
var userOid = traced(
//createModelAndProvisioningLoggingTracingProfile(),
() -> addObject(
var userOid = addObject(
new UserType()
.name("test360")
.assignment(ROLE_MAPMAKER_LANDLUBER.assignmentTo())
.asPrismObject()));
.asPrismObject());

then("operation is OK");
assertSuccess();
Expand Down

0 comments on commit 897a0b6

Please sign in to comment.