Skip to content

Scc 5203#650

Merged
danamansana merged 8 commits intoscc-5168from
scc-5203
Feb 27, 2026
Merged

Scc 5203#650
danamansana merged 8 commits intoscc-5168from
scc-5203

Conversation

@danamansana
Copy link
Copy Markdown
Contributor

Adds some further NYQL features as specified in SCC-5171 and SCC-5203:

  • date-related queries
  • compatibility with filters
  • and related tests

also adds:

  • some error handling/error messages
  • a compact representation of the parsed query, returned in the API response

@danamansana danamansana requested review from charmingduchess, nonword and yossariano and removed request for charmingduchess February 26, 2026 15:14
@danamansana danamansana merged commit 9c98372 into scc-5168 Feb 27, 2026
4 checks passed
Copy link
Copy Markdown
Member

@nonword nonword left a comment

Choose a reason for hiding this comment

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

Looking good

}

module.exports = { simplify, reverseAST, reverseGrammar, parseRight, parseWithRightCql }
function display (ast) {
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.

What does this expect and what does it return? I'm not sure that "display" conveys it.

}

function displayParsed (string) {
const parsed = rightCqlParser.getAST(reverseString(string))
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.

Is there a way to better ensure that the chain of calls you're making to parse the string in this case matches the chain of calls in parseWithRightCql?

Comment thread lib/resources.js
return query
}
const request = ApiRequest.fromParams(params)
console.log('request: ', request)
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.

rm

const queryJson = ElasticQueryBuilder.forApiRequest(request).query.toJson()
if (queryJson.bool && queryJson.bool.filter) {
return { filter: queryJson.bool.filter }
}
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.

I assume this is a temporary measure until we can migrate the filter stuff into something else?

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