Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Details endpoint #286

Merged
merged 4 commits into from
Jul 10, 2023
Merged

Details endpoint #286

merged 4 commits into from
Jul 10, 2023

Conversation

fengelniederhammer
Copy link
Contributor

resolves #283


private const val DEFAULT_MIN_PROPORTION = 0.05
const val AGGREGATED_GROUP_BY_FIELDS_DESCRIPTION =
"The fields to stratify by. If empty, only the overall count is returned"
Copy link
Contributor

Choose a reason for hiding this comment

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

I had to look up the word stratify but it seems the right one :)

requestContext.filter = request.sequenceFilters

return siloQueryModel.getDetails(
request.sequenceFilters,
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be request.sequenceFilters.filterKeys { !nonSequenceFilterFields.contains(it) }, as for aggregrated? It seems that fields is also passed as a filter?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or is it not necessary above?

Copy link
Contributor Author

@fengelniederhammer fengelniederhammer Jul 6, 2023

Choose a reason for hiding this comment

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

I checked it: It's actually not necessary, since the deserializer of the SequenceFiltersRequestWithFields takes care of that.

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.

Implement /details returning JSON
2 participants