Skip to content

Docs: CEL filters for commit log, entries, and references #5325 - #12946

Merged
snazy merged 3 commits into
projectnessie:mainfrom
AzazelSensei:docs-5325-cel-filters
Oct 21, 2026
Merged

snazy merged 3 commits into
projectnessie:mainfrom
AzazelSensei:docs-5325-cel-filters

Conversation

@AzazelSensei

Copy link
Copy Markdown
Contributor

Adds a docs page for CEL filter expressions on entries, commit log, references, and diff.

Variables and examples match the OpenAPI filter parameter and the existing tests.

Closes #5325

@CLAassistant

CLAassistant commented Aug 29, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@AzazelSensei

Copy link
Copy Markdown
Contributor Author

Closing. If review was optional, so is waiting.

@AzazelSensei

Copy link
Copy Markdown
Contributor Author

Reopened. Rebased onto current main and added encodedKey / size() examples from the issue thread.

@dimas-b dimas-b left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

Comment thread site/docs/develop/cel-filters.md Outdated

Variables:

* `commit` with `author` (string), `committer` (string), `commitTime` (timestamp),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use the same format in all section (compare to Entries)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switched commit log, references, and diff to the same table format as Entries.

Comment thread site/docs/develop/cel-filters.md Outdated

## Tips

* Start from the OpenAPI examples on the `filter` parameter; those are the

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, the idea behind #5325 was specifically to move examples from code / comments into docs... why add a reference back into code? 😉

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped that. The examples stay on this page.

Examples:

```
entry.namespace.startsWith('a.b.c')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add example for entry.encodedKey (from ClientSideGetMultipleNamespaces.java)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the encodedKey examples from GetMultipleNamespaces.

@dimas-b dimas-b left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Thanks!

@dimas-b
dimas-b requested review from adutra and snazy October 1, 2026 01:57
@dimas-b

dimas-b commented Oct 1, 2026

Copy link
Copy Markdown
Member

I'm planning to merge on Oct 2.

@dimas-b

dimas-b commented Oct 2, 2026

Copy link
Copy Markdown
Member

CI fails with :

Log output from the failed container:
{"t":{"$date":"2026-10-02T19:43:06.220+00:00"},"s":"F",  "c":"CONTROL",  "id":12257600,"ctx":"main","msg":"MongoDB cannot start: Linux kernel versions 6.19 and newer has a known incompatibility with this version of MongoDB. See https://jira.mongodb.org/browse/SERVER-121912 for more information."}

It's unrelated to the change... Could a rebase help? 🤔

…ie#5325

Document the CEL variables the server binds on entries, commit log,
references, and diff, plus the OpenAPI examples.
…ie#5325

Use the same table format in every section, add encodedKey
examples, and keep the examples on this page.
@AzazelSensei
AzazelSensei force-pushed the docs-5325-cel-filters branch from b9a69c7 to ff165a3 Compare October 9, 2026 20:04
@AzazelSensei

Copy link
Copy Markdown
Contributor Author

Rebased onto current main, which has the mongo v9 bump from #13112. Let's see if the intTest jobs come up green now.

@snazy
snazy merged commit c6ef0d6 into projectnessie:main Oct 21, 2026
16 checks passed
@snazy

snazy commented Oct 21, 2026

Copy link
Copy Markdown
Member

Thanks @AzazelSensei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document CEL application to Nessie filters

4 participants