Skip to content

Conversation

@jansigi
Copy link
Collaborator

@jansigi jansigi commented Oct 31, 2025

No description provided.

@jansigi jansigi requested a review from pgruntz October 31, 2025 12:52
@jansigi jansigi self-assigned this Oct 31, 2025
@jansigi
Copy link
Collaborator Author

jansigi commented Nov 18, 2025

@codex review

Copy link

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

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.

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 299 to +311
is IField<*> -> {
CouchbaseDopeQuery(
queryString = formatPathToQueryString(typeExpression.name, typeExpression.path),
)
val ks = typeExpression.keySpace
val fieldQuery = when (ks) {
is AliasedKeySpace -> "${formatKeyspace(ks.alias)}.`${typeExpression.name}`"

is UnaliasedKeySpace -> {
val path = when {
ks.collection != null -> ks.collection
ks.scope != null -> ks.scope
else -> ks.bucket
}
"`$path`.`${typeExpression.name}`"
}

Choose a reason for hiding this comment

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

P1 Badge Construct field path with full keyspace

When rendering an IField for an unaliased keyspace, the resolver now selects only one of collection, scope, or bucket to prefix the field. A keyspace like bucket.scope.collection is therefore emitted as collection`.`field instead of ``bucket.scope`.`collection`.`field` (and scope only paths drop the bucket entirely), which will make unaliased queries against scoped collections fail. Building the path with all non‑null components (e.g. `formatKeyspace(ks.bucket, ks.scope, ks.collection)`) would preserve the full keyspace.

Useful? React with 👍 / 👎.

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.

2 participants