Skip to content

Mcp improvements#189

Merged
mihalikv merged 8 commits into
SmartBase-SK:mainfrom
oko-vac:mcp-improvements
Jun 19, 2026
Merged

Mcp improvements#189
mihalikv merged 8 commits into
SmartBase-SK:mainfrom
oko-vac:mcp-improvements

Conversation

@oko-vac

@oko-vac oko-vac commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8599167617

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/django_smartbase_admin/actions/admin_action_list.py
Comment thread src/django_smartbase_admin/mcp/oauth/validators.py
oko-vac added 2 commits June 19, 2026 14:24
# Conflicts:
#	src/django_smartbase_admin/actions/admin_action_list.py
@oko-vac

oko-vac commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

@codex re-review if all fixed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f065e81fef

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +921 to +924
slot = {
key_name: row[target]
for key_name, target in zip(group_keys, group_targets)
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject aggregate aliases that collide with group keys

When a renamed group column's public name matches a derived aggregate alias, this initializes the slot with that group key and the later slot[alias] = row[alias] assignment overwrites it. For example, an admin method named count backed by @admin.display(ordering="id") with group_by=["count"] and aggregate=[{"fn": "count"}] now returns only the aggregate count under count, losing the group value entirely; before this change the group value was at least kept under the ORM target. Please detect/reject these collisions or namespace one side before merging rows.

Useful? React with 👍 / 👎.

@oko-x

oko-x commented Jun 19, 2026

Copy link
Copy Markdown
Member

@codex re-review fixes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f065e81fef

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

"""
requested = urlsplit(redirect_uri)
if requested.hostname not in LOOPBACK_HOSTS:
if requested.scheme != "http" or requested.hostname not in LOOPBACK_HOSTS:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Validate disallowed redirect schemes before DOT exact-match

When an unauthenticated DCR request registers a non-http URI such as javascript:alert(1), this fallback never runs for an exact authorize redirect because validate_redirect_uri() returns after DOT's exact-match path; the bundled register() endpoint only rejects non-loopback http and saves without full_clean(). This new check only blocks port-mismatch fallbacks, so the scheme allowlist remains bypassable unless schemes are validated during registration or before calling super().

Useful? React with 👍 / 👎.

@mihalikv mihalikv merged commit 42b0a0d into SmartBase-SK:main Jun 19, 2026
1 check passed
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