Skip to content

Conversation

@QuentinRousselet
Copy link
Contributor

What does this PR do ?

This PR changes the search request for the export of measures to a scroll request allowing more than 10000 results.
It also removes the default sort by _id as it is not needed anymore
It also removes the filter on doc _id in AssetGroupsService checkGroupName function.

How should this be manually tested?

  • Step 1 : Try exporting measures for devices and assets
  • Step 2 : Try exporting more than 10000 documents

@QuentinRousselet QuentinRousselet self-assigned this Nov 5, 2025
@QuentinRousselet QuentinRousselet changed the title feat(payload controller): add route endpoint to redirect payloads to … fix(exporter): query more than 10000, avoid sort on _id Nov 5, 2025
Comment on lines +208 to +209
if (groupsCount.total === 1 && groupsCount.hits[0]._id === groupId) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not throwing an error if a group with the same name exists?

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