Skip to content

packages: akql - #18867

Open
BeryJu wants to merge 11 commits into
mainfrom
packages/akql
Open

packages: akql#18867
BeryJu wants to merge 11 commits into
mainfrom
packages/akql

Conversation

@BeryJu

@BeryJu BeryJu commented Dec 16, 2025

Copy link
Copy Markdown
Member

Fork djangoql
Add support for variables
remove things we don't use
add typing (mostly)
remove code smells

things I want to look into for this:

  • autocomplete support for variables
  • also vendoring the frontend component

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu
BeryJu requested review from a team as code owners December 16, 2025 14:02
@netlify

netlify Bot commented Dec 16, 2025

Copy link
Copy Markdown

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 99a56a5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6941666dc593c200087d601f
😎 Deploy Preview https://deploy-preview-18867--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Dec 16, 2025

Copy link
Copy Markdown

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 99a56a5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6941666d79d18d000864c1f9
😎 Deploy Preview https://deploy-preview-18867--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Dec 16, 2025

Copy link
Copy Markdown

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 99a56a5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6941666d79d18d000864c1fd
😎 Deploy Preview https://deploy-preview-18867--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Dec 16, 2025

Copy link
Copy Markdown

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

# Conflicts:
#	authentik/api/search/fields.py
#	authentik/api/search/ql.py
#	authentik/api/search/schema.py
#	authentik/core/api/groups.py
#	authentik/core/api/users.py
#	authentik/events/api/events.py
#	pyproject.toml
#	uv.lock
Comment thread packages/akql/akql/ast.py
return not self.__eq__(other)


class Expression(Node):
Comment thread packages/akql/akql/ast.py
self.right = right


class Name(Node):
Comment thread packages/akql/akql/ast.py
return ".".join(self.parts)


class Const(Node):
Comment thread packages/akql/akql/ast.py
self.value = value


class List(Node):
Comment thread packages/akql/akql/ast.py
return [i.value for i in self.items]


class Operator(Node):
Comment thread packages/akql/akql/ast.py Fixed
Comment thread authentik/api/search/ql.py Fixed
Comment thread authentik/api/search/ql.py Fixed
[f.name for f in model._meta.get_fields() if f.name != "password"],
)

def get_field_instance(self, model, field_name):
return self._models

@classmethod
def model_label(self, model):
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Comment thread packages/akql/akql/ast.py
pass


class Variable(Node):
from decimal import Decimal

from django.conf import settings
from django.core.exceptions import FieldDoesNotExist
# parsetab.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = "3.10"
Comment thread pyproject.toml
"django-storages[s3]==1.14.6",
"django-tenants==3.10.1",
"django==5.2.15",
"djangoql==0.19.1",

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.

you'll need to add akql as a dep here

@rissson

rissson commented Jun 29, 2026

Copy link
Copy Markdown
Member

packages/akql also needs to be added in lifecycle/container/Dockerfile

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.

3 participants